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
 5. Transfer/tmp/map_file to the target server
 6. vgimport -p -v -m /tmp/map_file /dev/vg_name /dev/dsk/device
 7. If OK, repeat the command without the -p flag
 8. vgchange -a y /dev/vg_name

Recent Changes

Contribute to this wiki

Why not help others by sharing your knowledge? Contribute something to this wiki and join out hall of fame!
Contact us for a user name and password