HP-UX HB v13.00 Ch-13 - LVM

HP-UX Handbook Rev 13.00 Page 72 (of 110)
Chapter 13 LVM
October 29, 2013
8. Modify the fstab in /new_root/etc. Replace occurences of vg00 with vgroot:
# vi /new_root/etc/fstab
/dev/vgroot/lvol1 /stand hfs defaults 0 0 (new boot LV)
/dev/vgroot/lvol3 / vxfs delaylog 0 0 (new root LV)
/dev/vgroot/lvol4 /usr vxfs delaylog 0 0 (new /usr LV)
9. Change the device files for the root disk in /new_stand/bootconf to c1t1d0:
# vi /new_stand/bootconf
l /dev/dsk/c1t1d0
10. Configure disk c1t1d0 as boot path in stable storage and boot from it:
# setboot p <HW path of c1t1d0> -b on
# shutdown -r 0
11. When the system comes up again, backup vgroot’s LVM Configuration:
# vgcfgbackup vgroot
12. And finally remove the old root VG if desired:
# vgchange -a n vg00
# vgexport vg00
If you like to rename vgroot to vg00:
1. Boot to LVM maintenance mode:
ISL> hpux lm
2. Export vgroot and import it as vg00:
# vgexport vgroot
# mkdir /dev/vg00
# mknod /dev/vg00/group c 64 0x000000 (import vg00 with minor 0)
# vgimport vg00 /dev/dsk/c1t1d0