1833826 Members
2189 Online
110063 Solutions
New Discussion

Re: Volume group

 
SOLVED
Go to solution
CLUTIER
Advisor

Volume group

Hi,
how can i rename a volume group ? :)
5 REPLIES 5
Pete Randall
Outstanding Contributor

Re: Volume group

You can vgexport it then reimport it like this:

vgexport -s -m /tmp/vgXXmap /dev/vgXX
mkdir /dev/vgYY
mknod /dev/vgYY/group c64 0xYY0000
vgimport -s -m /tmp/vgXXmap /dev/vgyy

Note that the map name remains the same while the VG name changes.


Pete


Pete
Steve Steel
Honored Contributor

Re: Volume group

Hi

Looks ok

see

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xa4d57680e012d71190050090279cd0f9,00.html


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Simone Benzi_1
Frequent Advisor

Re: Volume group

Hi,

For a non root filesystem I followed this way (from HP k-mine):

1. umount /filesys (for each mounted filesys)

2. vgchange -a n /dev/vgname

3. vgexport -m mapfile /dev/vgname

4. vi mapfile (to set up new logical volume names)

5. mkdir /dev/vgnewname

6. mknod /dev/vgnewname/group c 64 0x

7. vgimport -m mapfile /dev/vgnewname /dev/dsk/cxtyd0

Where x and y are the device files for the physical volumes in the VG.

Hope it'll help.

Simone
T G Manikandan
Honored Contributor
Zeev Schultz
Honored Contributor
Solution

Re: Volume group

I usually do (more or less) :
1)vgcfgbackup vg_name
1)b)umount all file systems using this vg.
2)vgchange -a n vg_name
2)b) go to /dev and preserve /dev/vg_name to
/dev/vg_new_name
3)vgexport /dev/vg_name
4)vgimport /dev/vg_name PV...
5)vgchange -a y vg_new_name
5)vgcfgbackup vg_new_name
6)fix names in /etc/fstab
7)mount all back

Zeev
So computers don't think yet. At least not chess computers. - Seymour Cray