Copying a logical volume while original logical volume remains usable

If your environment requires continued use of the original logical volume, you can use the splitlvcopy command to copy the contents, as shown in the following example.

  1. Mirror the logical volume, using the following SMIT fast path:
    smit mklvcopy 
  2. Stop using the logical volume. Unmount the file system, if applicable, and stop or put into quiescent mode any application that accesses the logical volume.
    Attention: The next step uses the splitlvcopy command. Always close logical volumes before splitting them and unmount any contained file systems before using this command. Splitting an open logical volume can corrupt your file systems and cause you to lose consistency between the original logical volume and the copy if the logical volume is accessed simultaneously by multiple processes.
  3. With root authority, copy the original logical volume (oldlv) to the new logical volume (newlv) using the following command:
    splitlvcopy -y newlv oldlv

    The -y flag designates the new logical volume name. If the oldlv volume does not have a logical volume control block, the splitlvcopy command completes successfully but generates a message that the newlv volume has been created without a logical volume control block.

  4. Mount the file systems, if applicable, and restart applications to begin using the logical volume.

At this point, the logical volume copy is usable.