Following example shows, how vgexport/vgimport can be used to change the Volume Group Names
# bdf /opt/test
Filesystem kbytes used avail %used Mounted on
/dev/vg01/lvol01 102400 1133 94945 1% /opt/test
# umount /opt/test
Step 1: Create a mapfile in the preview mode
# vgexport -p -v -s -m /tmp/vg01.map /dev/vg01
Beginning the export process on Volume Group "/dev/vg01".
Volume group "/dev/vg01" is still active.
/dev/dsk/c0t9d0
# vgchange -a n /dev/vg01
Volume group "/dev/vg01" has been successfully changed.
Step 2: Export the Volume Group
# vgexport /dev/vg01
# ll /dev/*/group
crw-r----- 1 root sys 64 0x000000 Oct 31 13:15 /dev/vg00/group
# mkdir /dev/vg01_renamed
# mknod /dev/vg01_renamed/group c 64 0x010000
Step 2: Import the Volume Group with a new name
# vgimport -v -s -m /tmp/vg01.map /dev/vg01_renamed
Beginning the import process on Volume Group "/dev/vg01_renamed".
Logical volume "/dev/vg01_renamed/lvol01" has been successfully created
with lv number 1.
Volume group "/dev/vg01_renamed" has been successfully created.
# vgchange -a y /dev/vg01_renamed
Activated volume group
Volume group "/dev/vg01_renamed" has been successfully changed.
# vgdisplay -v | grep "VG Name"
VG Name /dev/vg00
VG Name /dev/vg01_renamed