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

HP-UX Handbook Rev 13.00 Page 5 (of 54)
Chapter 04 System Recovery
October 29, 2013
NOTE: Things are different on a virtual partition (vPars) system. You do not load the
kernel directly but through the vPars monitor vpmon. Refer to the vPars Chapter for
details.
7. The HPUX program (also known as the secondary loader or Mongoose) figures out what
HP-UX kernel to load, and what arguments to pass to it (like init state).
8. The secondary loader relocates itself to the end of the initial memory module, loads the
kernel at the beginning and starts running it. The kernel needs to fit into that area!
9. Kernel initialization (real mode):
initialize all of the memory, read /stand/ioconfig and /stand/rootconf files using
the hpux loader’s system calls, initialize all modules (1
st
level I/O configuration), allocate
equivalently-mapped data structures, PDIR and hash table, optimize assembly, craft
process 0, go virtual.
10. Kernel initialization (virtual mode):
start the clock, start up the other processors, finish the I/O configuration (2
nd
level),
initialize subsystems, initialize LVM/swap/dump, mount root file system read-only,
fork() off system daemons.
11. fork() off /sbin/pre_init_rc and mount root file system read-write afterwards.
12. Start /etc/init process which, depending on the passed init state, starts working
through /etc/inittab or launches a shell in the case of a Single User or LVM
Maintenance boot.
13. Become swapper as process with PID 0.
Do also refer to the Boot Chapter.
Automated Recovery Procedures
If your system should become so compromised or corrupt that it will not boot at the login
prompt, or the system boots, but critical files are corrupted, adversely affecting overall system
performance, it may be useful to restore system elements with core recovery media. Before you
attempt to recover an HP-UX system, you should have the following information about your
system disk available:
Revision of the HP-UX system which you are attempting to recover. Generally you
should only attempt to recover HP-UX systems that match the version number of the
recovery tools you are using. Data corruption could occur if you attempt to recover e.g. a
9.X file system with 11.X recovery tools.