HP-UX 11i v3 - LVM Volume Group Version Migration (September 2010)
13
Verify the volume group
# vgdisplay vg01
--- Volume groups ---
VG Name /dev/vg01
VG Write Access read/write
VG Status available
Max LV 2047
Cur LV 0
Open LV 0
Max PV 2048
Cur PV 2
Act PV 2
Max PE per PV 131072
VGDA 4
PE Size (Mbytes) 128
Total PE 32766
Alloc PE 0
Free PE 32766
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 2.1
VG Max Size 32766g
VG Max Extents 262128
This completes the migration of a volume group from Version 1.0 to 2.1.
Migrating a Version 2.0 volume group to Version 2.1
By default, a Version 2.0 volume group fulfills all the prerequisites to migrate it to Version 2.1.
Deactivate the volume group and run the vgversion command as follows:
# vgversion -V 2.0 vg01
Performing "vgchange -a y -l -p -s vg01" to collect data
Activated volume group.
Volume group "vg01" has been successfully changed.
Old Volume Group configuration for "/dev/vg01" has been saved in
"/etc/lvmconf/vgversion_vg01/vg01_2.1.conf"
New Volume Group configuration for "/dev/vg01" has been saved in
"/etc/lvmconf/vgversion_vg01/vg01_2.0.conf"
Deactivating Volume Group "vg01"
Volume group "vg01" has been successfully changed.
Removing the Volume Group /dev/vg01 from /etc/lvmtab_p
Applying the configuration to all Physical Volumes from
"/etc/lvmconf/vgversion_vg01/vg01_2.0.conf"
Volume Group configuration has been restored to /dev/rdisk/disk349
Volume Group configuration has been restored to /dev/rdisk/disk348
Adding the Volume Group /dev/vg01 to /etc/lvmtab_p
Original Volume Group Version was 2.1
New Volume Group Version is 2.0
Volume Group version has been successfully changed to 2.0