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

HP-UX Handbook Rev 13.00 Page 33 (of 54)
Chapter 04 System Recovery
October 29, 2013
step 7: Refer back to RECOVERY.DOC step 2.
*** NOTE ***
If the same volume group contains more than one corrupted boot disk,
repeat the above steps for each disk that needs to be repaired.
Manual Procedure 1: Recovery after Minimum OS Cold
Installation
This procedure can be used to restore a complete system upon an OS Cold Installation. It is
sufficient to cold-install only the base components of the OS. Additional components and
patched will be restored from backup.
1. Install a Minimum OS from installation media (see Co-Procedure).
2. All file systems of the root VG should be mounted now. Check what additional file
systems outside the root VG are part of the backup. Either those file systems are also
mounted or excluded from restore! Especially the root file system, could get overflowed
otherwise.
If VGs are imported at this point we need to take care that all names used for them and
their logical volumes are absolutely identical with the ones contained in the backup! We
need to ensure that all LVM device files in /dev are uniqe after restore.
3. Backup some important files before restoring
# cp p /etc/fstab /etc/fstab.min
# cp p /etc/ioconfig /etc/ioconfig.min
# cp p /etc/lvmtab /etc/lvmtab.min
# cp -rp /etc/lvmconf /etc/lvmconf.min
# cp p /stand/rootconf /stand/rootconf.min
# cp p /stand/bootconf /stand/bootconf.min
4. Perform the full restore from backup. Usually you should use pax(1) to restore cpio(1)
and tar(1) backups. We should take care to keep at least files as possible busy during
restore. So we run killall and use our own shell with our own pax/frecover executable.
In the following examples our tape drive is accessed as /dev/rmt/0m. Use ioscan
fnkCtape to find the appropriate device on your system.
# cd /
# init s
# killall
# cp /sbin/sh /sbin/sh.rec
# exec /sbin/sh.rec
e.g. for pax(1):
# cp /sbin/pax /sbin/pax.rec