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

HP-UX Handbook Rev 13.00 Page 31 (of 54)
Chapter 04 System Recovery
October 29, 2013
# cd /ROOT
# chroot /ROOT /sbin/sh
Please remember that your system is currently booted using a generic recovery kernel.
This kernel may be incompatible with executables that reside inside your root VG. Never
try to bring the system up to Multi User Mode from this state! Even basic LVM or VxFS
commands are known to make trouble under such conditions.
Contents of RECOVERY.DOC and LVM.RECOVER files
After performing one of the automatic recovery procedures, you will find two files in the root
file system of your recovered system: /RECOVERY.DOC and /LVM.RECOVER. These in
instructions need to be followed to complete an automatic recovery procedure after reboot.
1. Contents of /RECOVERY.DOC:
# cat /RECOVERY.DOC
1) If you have an lvm root, refer to /LVM.RECOVER .
2) Restore valid copies of the following files (either from backup or
from the <filename>BK files created during the recovery process).
/etc/fstab, /etc/inittab, /stand/ioconfig,
/etc/ioconfig, /etc/passwd, /sbin/pre_init_rc,
/.profile, and /etc/profile
NOTE: The backup archive may be extracted using '/sbin/frecover' or
'/sbin/pax' (for backups made with 'tar' or 'cpio').
If using '/sbin/pax', linking it to 'tar' or 'cpio' will force 'pax'
to emulate the respective command line interface.
3) Replace /stand/vmunix from backup, since the present kernel is probably
missing desired drivers.
4) Reboot the System Processing Unit (SPU) using the following commands:
# sync
# sync
# reboot
5) Restore desired files from backup.
2. Contents of /LVM.RECOVER:
# cat /LVM.RECOVER
INSTRUCTIONS to complete your LVM recovery:
The system must now be up now in "maintenance mode".
NOTE: In order for the following steps to lead to a successful lvm recovery the
LVM label information must be valid. If the bootlif was updated from the
RAM-based recovery system, then "mkboot -l" has already been run to
repair the this label.
step 1. If the autofile was altered to force the system to boot in
maintenance mode, use "mkboot -a" to remove the "-lm" option.