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

HP-UX Handbook Rev 13.00 Page 34 (of 54)
Chapter 04 System Recovery
October 29, 2013
# /sbin/pax.rec r pe < /dev/rmt/0m
e.g. for frecover(1M):
# cp /sbin/frecover /sbin/frecover.rec
# /sbin/frecover.rec r -f /dev/rmt/0m -os
5. Restore /stand/rootconf and /stand/bootconf from your previously created backup files.
The valid /stand/rootconf file is required for booting into LVM Maintenance Mode
later!
# cp p /stand/rootconf.min /stand/rootconf
# cp p /stand/bootconf.min /stand/bootconf
6. Modify your restored /etc/fstab file according to the saved /etc/fstab.min. This may be
very important since the layout of the root VG may have changed during minimum OS
installation!
# vi /etc/fstab
7. Create a map file to be used later for re-importing vg00. (Ignore the warning about vg00
still being active.)
# vgexport p s m /etc/lvmconf/vg00.map vg00
8. Reboot your system to LVM Maintenance Mode (see Co-Procedure).
# reboot
9. Re-import the root VG to get the /etc/lvmtab file up-to-date. Otherwise LVM errors like
Cross-device link would be the result.
# vgexport /dev/vg00
# mkdir /dev/vg00
# mknod /dev/vg00/group c 64 0x000000
# vgimport s m /etc/lvmconf/vg00.map /dev/vg00
Warning: A backup of this volume group may not exist on this machine.
Please remember to take a backup using the vgcfgbackup command after activating
the volume group.
# vgchange -a y /dev/vg00
Activated volume group
Volume group "vg00" has been successfully changed.
10. Perform a fresh vgcfgbackup(1M) of your root VG.
# vgcfgbackup /dev/vg00
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
11. Reboot the system to Multi User Mode (see Co-Procedure). Additional tasks like
mirroring the root VG may be necessary later on.
# reboot