HP-UX Virtual Partitions Administrator's Guide (includes A.05.02)

Crash Processing and Recovery
Crash Processing
Chapter 10
316
Step 1. (11i v2 and above) Beginning with HP-UX 11i v2 and therefore vPars A.04, the savecrash
processing has changed. Instead of copying the kernel file that was in use during the crash, the
directory /stand/crashconfig is copied. Therefore, prior to executing the crashconf and
savecrash steps below, create the /stand/crashconfig directory using
# kconfig -s crashconfig
Or if the kernel configuration used in the last boot is different from the current kernel
configuration, use the -c option. For example, if the saved kernel configuration is named kc.custom,
the command is
# kconfig -c kc.custom crashconfig
For more information on using the kconfig command, see the manpages kconfig (5) and kconfig
(1M)
Step 2. Obtain of list of dump devices, noting the DEVICE and OFFSET information:
# crashconf -v
DEVICE OFFSET(kB) SIZE(kB) LOGICAL VOL. NAME
-------------- ---------- --------- ------------- --------------
31:0X022000 314208 4194304 64:0X000002 /dev/vg00/lvol2
The DEVICE is 31:0X022000, and the OFFSET is 314208.
Step 3. Map the device number from the DEVICE information to a device file:
# ls -l /dev/dsk /dev/disk | grep "31.*022000"
brw-r----- 1 bin sys 31 0x022000 Oct 13 2001 c2t2d0
The corresponding device file is /dev/dsk/c2t2d0.
Step 4. Using the OFFSET information and the device file, save the dump to /var/adm/crash:
# savecrash -r -f -D /dev/dsk/c2t2d0 -O 314208