Migrating data using a logical volume manager

The logical volume manager (LVM) software migrates data at a single logical volume level, a physical volume (DDM) level, or the entire contents of a volume group. The LVM software is different between the operating systems that use it. However, the concepts and commands are similar enough to support this scenario.

The primary tasks involved in migrating data using a logical volume manager rely upon the use of LVM commands that affect the following functions:
  • Copying
  • Mirroring
  • Migrating

You must determine which command and combination of commands are most effective to migrate your data.

  1. Determine if you are migrating a single logical volume.
  2. Use the cplv command to copy the logical volume and create a new logical volume or overwrite an existing logical volume.
    Note: Depending on your logical volume manager software, the use of options is necessary to complete this process. Refer to the documentation that accompanies your software for the exact details.
  3. Determine if you have a volume group made up of several logical volumes.
  4. Use the mklvcopy command to mirror the volumes.
    Note: Depending on your logical volume manager software, the use of options is necessary to complete this process. Refer to the documentation that accompanies your software for the exact details.
  5. Determine if you are migrating physical volumes.
  6. Use the migratepv command to migrate data that is associated with physical volumes.
    Note: Depending on your logical volume manager software, the use of options is necessary to complete this process. Refer to the documentation that accompanies your software for the exact details.
    The migratepv command migrates data by performing the following actions:
    • Creating a mirror of the logical volumes that you are moving
    • Synchronizing the logical volumes
    • Removing the original logical volume
Library | Support | Terms of use | Feedback
© Copyright IBM Corporation 2004, 2007. All Rights Reserved.