1833777 Members
1935 Online
110063 Solutions
New Discussion

rename VG

 
SOLVED
Go to solution
Scott Van Kalken
Esteemed Contributor

rename VG

Is it possible to rename a volume group?

for example:

if I want to change vg05 to vg04 what would be the process for renaming this?

Any ideas much appreciated

Scott.
2 REPLIES 2
S.K. Chan
Honored Contributor
Solution

Re: rename VG

Eg .. to change vg01 to vg02

# vgchange -a n /dev/vg01
==> umount the FS and deactivate it
# vgexport ???m /tmp/mapfile /dev/vg01
# mkdir /dev/vg02
# mknod /dev/vg02/group c 64 0x020000
# vgimport ???m /tmp/mapfile /dev/vg02 /dev/dsk/ /dev/dsk/ ..
# vgchange -a y /dev/vg02
# vgcfgbackup /dev/vg02

S.K. Chan
Honored Contributor

Re: rename VG

.. sorry .. just replace the appropriate vg names .. make sure "group" file has unique minor number ..

# ll /dev/vg*/group