HP-UX 11i v3 LVM Volume Group Migration

LV Name /dev/vg01/lvol2
LV Status available/syncd
LV Size (Mbytes) 640
Current LE 20
Allocated PE 60
Used PV 3
LV Name /dev/vg01/lvol3
LV Status available/syncd
LV Size (Mbytes) 640
Current LE 20
Allocated PE 80
Used PV 4
--- Physical volumes ---
PV Name /dev/disk/disk117
PV Status available
Total PE 63
Free PE 3
Autoswitch On
Proactive Polling On
PV Name /dev/disk/disk116
PV Status available
Total PE 63
Free PE 3
Autoswitch On
Proactive Polling On
PV Name /dev/disk/disk118
PV Status available
Total PE 63
Free PE 23
Autoswitch On
Proactive Polling On
PV Name /dev/disk/disk119
PV Status available
Total PE 63
Free PE 43
Autoswitch On
Proactive Polling On
The volume group has 4 disks and 3 logical volumes with 1, 2, 3 mirrors.
2. Generate the disk map file using the four destination disks as follows:
# echo "/dev/disk/disk120" > /tmp/newdisk.txt
# echo "/dev/disk/disk121" >> /tmp/newdisk.txt
# echo "/dev/disk/disk122" >> /tmp/newdisk.txt
# echo "/dev/disk/disk123" >> /tmp/newdisk.txt
# vgmove -i /tmp/newdisk.txt -f /tmp/diskmap.txt /dev/vg01
3. Verify the diskmap.txt file as follows:
# cat /tmp/diskmap.txt
/dev/disk/disk117 /dev/disk/disk120
/dev/disk/disk116 /dev/disk/disk121
/dev/disk/disk118 /dev/disk/disk122
/dev/disk/disk119 /dev/disk/disk123
4. Run the vgmove command in preview mode as follows:
# vgmove -p -f /tmp/diskmap.txt /dev/vg01
The vgmove command can be successfully run.
5. Perform the actual migration as follows:
7