HP-UX Reference (11i v2 07/12) - 1M System Administration Commands N-Z (vol 4)

s
savecrash(1M) savecrash(1M)
devices are configured as swap devices, the entire dump will be preserved in the crash directory. If
no swap devices are used as dump devices (dedicated dump devices), only the
INDEX file and ker-
nel modules will be copied into the crash directory.
-r Resaves a dump that a previous invocation of
savecrash has marked as already saved. This is
useful if the first invocation did ran out of space, and enough space has since been freed to try
again.
-v Enables additional progress messages and diagnostics.
-z savecrash will compress all physical memory image files and kernel module files in the dump
directory. This option is ignored if the dump image on the dump device is already compressed. See
crashconf(2). In this case, a warning message will be printed.
-Z savecrash will not compress any files in the dump directory.
If neither -z nor -Z is specified and the amount of free disk space is less than the total dump
size, savecrash will compress the image files.
-D dumpdevice
dumpdevice is the name of the device containing the header of the raw crash image. The console
messages from the time of the panic will identify the major and minor numbers of this device. This
option, in combination with -O, can be used to tell savecrash where to find the dump in the
rare instances that savecrash doesn’t know where to look.
-O offset
offset is the offset in kBytes, relative to the beginning of the device specified with
-D above, of the
header of the raw crash image. The console messages from the time of the panic will identify this
offset. This option, in combination with
-D, can be used to tell savecrash where to find the
dump in the rare instances that
savecrash doesnt know where to look.
-d sysfile
sysfile is the name of a file containing the image of the system that produced the core dump (that
is, the system running when the crash occurred). If this option is not specified, savecrash
gets
the file name from the dump itself. If the file containing the image of the system that caused the
crash has changed, use this option to specify the new file name.
-m minfree
minfree is the amount of free space (in kBytes) that must be available for ordinary user files in the
file system into which the dump will be saved, in addition to space reserved for the superuser. If
necessary, only part of the dump will be saved to achieve this requirement. savecrash calcu-
lates the amount of disk space available when it starts saving the dump. Any space used by other
processes while dump is being saved is not taken into account.
minfree may be specified in bytes (
b), kilobytes (k), megabytes (
m), or gigabytes (g). The default
minfree value is zero, and the default unit is kilobytes.
-s chunksize
chunksize is the size (default kBytes) of a single physical memory image file before compression.
The kByte value must be a multiple of page size (divisible by 4) and between 64 and 1048576.
chunksize may be specified in units of bytes (
b), kilobytes (k), megabytes (
m), or gigabytes (g).
Larger numbers increase compression efficiency at the expense of both
savecrash time and
debugging time. If -s is not specified, a default is chosen based on the physical memory size and
the amount of available file system space. If the dump image on the dump device is compressed,
then the chunksize specification is only used as a size limit for the images copied into the file sys-
tem. See crashconf(2). If the size specified is smaller than the chunk size used for compression
while dumping, then a warning message will be printed and the compression chunk size used by
the dump will be used to create the file system images.
-t tapedevice
tapedevice is the tape device where the crash dump will be written. Crash dumps that are written
to tape are written using a tar format. The crash dump tape can be read using tar(1).
When the -t option is specified, the -p option is not allowed and the whole dump is always
preserved. In addition, -c and -l, are not allowed and -m is ignored. Also, when -t is specified,
savecrash will not perform any compression.
When dirname is specified with the -t option, dirname is the name of the existing directory where
the INDEX file is created; the default directory is /tmp. The INDEX file is the first file that is
HP-UX 11i Version 2: December 2007 Update 2 Hewlett-Packard Company 297