Rename VG in HP UX
1.Unmount the FS in that VG
#umount /mountpoint
2.Export the VG
#vgexport -s -v -m -N /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
a. #umount /
b. #mv /dev/vgxx/ /dev/vgxx/
c. #mv /dev/vgxx/r /dev/vgxx/r
e. Modify the /etc/fstab file to reflect the newname.
f. mount /dev/vgxx/ /
or
mount -a
No comments:
Post a Comment