>Move LVM Volume Group to another computer

By | November 15, 2009

>

To move a volume group form one system to another, perform the following steps:

  1. Make sure that no users are accessing files on the active volumes in the volume group, then unmount the logical volumes.

  2. Use the -a n argument of the vgchange command to mark the volume group as inactive, which prevents any further activity on the volume group.

  3. Use the vgexport command to export the volume group. This prevents it from being accessed by the system from which you are removing it.

    After you export the volume group, the physical volume will show up as being in an exported volume group when you execute the pvscan command.

  4. When the disks are plugged into the new system, use the vgimport command to import the volume group, making it accessible to the new system.

  5. Activate the volume group with the -a y argument of the vgchange command.

  6. Mount the file system to make it available for use.

Share itShare on FacebookEmail this to someoneTweet about this on TwitterShare on Google+Share on LinkedInPrint this page

Leave a Reply

Your email address will not be published. Required fields are marked *

Current month ye@r day *