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.
- Determine if you are migrating a single logical volume.
- 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.
- Determine if you have a volume group made up of several logical
volumes.
- 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.
- Determine if you are migrating physical volumes.
- 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