HP-UX HB v13.00 Ch-04 - System Recovery

HP-UX Handbook Rev 13.00 Page 36 (of 54)
Chapter 04 System Recovery
October 29, 2013
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
# lvcreate -L 1536 vg00 # /opt
Logical volume "/dev/vg00/lvol4" has been successfully created with
character device "/dev/vg00/rlvol4".
Logical volume "/dev/vg00/lvol4" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
# lvcreate -L 1024 vg00 # /tmp
Logical volume "/dev/vg00/lvol5" has been successfully created with
character device "/dev/vg00/rlvol5".
Logical volume "/dev/vg00/lvol5" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
# lvcreate -L 1024 vg00 # /usr
Logical volume "/dev/vg00/lvol6" has been successfully created with
character device "/dev/vg00/rlvol6".
Logical volume "/dev/vg00/lvol6" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
# lvcreate -L 128 vg00 # /home
Logical volume "/dev/vg00/lvol7" has been successfully created with
character device "/dev/vg00/rlvol7".
Logical volume "/dev/vg00/lvol7" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
# lvcreate -L 1024 vg00 # /var
Logical volume "/dev/vg00/lvol8" has been successfully created with
character device "/dev/vg00/rlvol8".
Logical volume "/dev/vg00/lvol8" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
6. Make the disk bootable and configure LABEL/BDRA.
# mkboot /dev/rdsk/c2t0d0
# mkboot -l /dev/rdsk/c2t0d0
# mkboot -a hpux /dev/rdsk/c2t0d0
# lvlnboot -b /dev/vg00/lvol1
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
# lvlnboot -r /dev/vg00/lvol3
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
# lvlnboot -s /dev/vg00/lvol2
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
# lvlnboot -d /dev/vg00/lvol2
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
# lvlnboot -v vg00
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c2t0d0 (0/0/2/0.0.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c2t0d0
Root: lvol3 on: /dev/dsk/c2t0d0
Swap: lvol2 on: /dev/dsk/c2t0d0
Dump: lvol2 on: /dev/dsk/c2t0d0, 0
7. Create file systems inside the logical volumes. lvol1 is supposed to hold /stand, so it