Rename VG in HP UX
1.Unmount the FS in that VG
#umount /mountpoint
2.Export the VG
#vgexport -s -v -m /tmp/vgname.map /dev/vgname
3.#mkdir /dev/newvgname
#mknod /dev/newvgname/group c 64 "minor no"
4.Import the VG now
#vgimport -s -v -m /tmp/vgname.map /dev/newvgname
5.Vgchange -a y newvgname
6.vgcfgbackup newvgname
7.Edit the /etc/fstab and change the mount point to new VG name.
8. # mount -a
Rename a Lvol in HP UX
1. #umount /
2. #mv /dev/vgxx/ /dev/vgxx/
#mv /dev/vgxx/r /dev/vgxx/r
3. Modify the /etc/fstab file to reflect the newname.
4. #mount /dev/vgxx/ /
or
#mount -a
1.Unmount the FS in that VG
#umount /mountpoint
2.Export the VG
#vgexport -s -v -m /tmp/vgname.map /dev/vgname
3.#mkdir /dev/newvgname
#mknod /dev/newvgname/group c 64 "minor no"
4.Import the VG now
#vgimport -s -v -m /tmp/vgname.map /dev/newvgname
5.Vgchange -a y newvgname
6.vgcfgbackup newvgname
7.Edit the /etc/fstab and change the mount point to new VG name.
8. # mount -a
Rename a Lvol in HP UX
1. #umount /
2. #mv /dev/vgxx/
#mv /dev/vgxx/r
3. Modify the /etc/fstab file to reflect the newname.
4. #mount /dev/vgxx/
or
#mount -a
2 Comments
Wat xactly it does? for rename the LV??
ReplyDelete2. #mv /dev/vgxx/ /dev/vgxx/
3. #mv /dev/vgxx/r /dev/vgxx/r
Thanks for notifying ...It seems some editor prob in blogger...i have modified ..check now ..
ReplyDelete