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

HP-UX Handbook Rev 13.00 Page 35 (of 54)
Chapter 04 System Recovery
October 29, 2013
Manual Procedure 2: Recovery from Scratch with Root VG
Creation
This procedure is mainly for reference. It shows a complete recovery of a system that was booted
from a recovery medium. It contains most of the configuration steps that are performed
automatically during a cold installation. It is intended to help understanding these steps.
1. Boot the system to the Recovery Main Menu (see Co-Procedure).
2. From the main menu select Exit to shell.
3. Optional: get more RAM file system space for recovery (see Co-Procedure).
4. Create a new root VG on your desired installation disk(s). Use ioscan fnkCdisk to get
the devices. In our example we create vg00 with default options on c2t0d0 only. First we
need to load some commands into our RAM file system using the loadfile command.
# loadfile lvchange vgdisplay vgchange pvcreate vgcreate
# loadfile lvcreate lvlnboot mkboot ioscan
# mkdir /dev/vg00
# mknod /dev/vg00/group c 64 0
# pvcreate -fB /dev/rdsk/c2t0d0
Creating "/etc/lvmtab".
Physical volume "/dev/rdsk/c2t0d0" has been successfully created.
# vgcreate vg00 /dev/dsk/c2t0d0
Increased the number of physical extents per physical volume to 2170.
Volume group "/dev/vg00" has been successfully created.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
5. Create all needed logical volumes in the root VG. Be sure to choose appropriate sizes to
hold the data to be recovered from your backup. The first 3 logical volumes are created
with contiguos allocation policy and without bad block relocation.
# lvcreate -C y -r n -L 128 vg00 # /stand
Logical volume "/dev/vg00/lvol1" has been successfully created with
character device "/dev/vg00/rlvol1".
Logical volume "/dev/vg00/lvol1" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
# lvcreate -C y -r n -L 512 vg00 # /
Logical volume "/dev/vg00/lvol2" has been successfully created with
character device "/dev/vg00/rlvol2".
Logical volume "/dev/vg00/lvol2" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
# lvcreate -C y -r n -L 160 vg00 # swap
Logical volume "/dev/vg00/lvol3" has been successfully created with
character device "/dev/vg00/rlvol3".
Logical volume "/dev/vg00/lvol3" has been successfully extended.