Moving LVM disk

  1. Backup data and lvm configuration (vgcfgbackup)

  2. vgchange -a n /dev/vg_name to deactivate volume group

  3. vgexport /dev/vg_name to remove volume group

  4. move disk

  5. vgscan -v

  6. vgimport /dev/vg_name /dev/dsk/device to re-add volume

  7. vgchange -a y /dev/vg_name to reactivate volume group

  8. backup the LVM configuration again

Moving a disk to a different server

  1. vgchange -a n /dev/vg_name

  2. vgexport -p -v -m /tmp/map_file vg_name

  3. If OK, repeat command omitting the -p flag

  4. create volume group directory on the target server, mkdir /dev/vg_name and mknod the group file

Transfer /tmp/map_file to the target server

vgimport -p -v -m /tmp/map_file /dev/vg_name /dev/dsk/device

If OK, repeat the command without the -p flag

vgchange -a y /dev/vg_name