HP-UX Reference (11i v2 03/08) - 1M System Administration Commands N-Z (vol 4)
s
savecrash(1M) savecrash(1M)
directory. If no swap devices are used as dump devices (dedicated dump devices), only the
INDEX file and kernel 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 doesn’t 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 remain free for ordinary user files after
savecrash completes, in addition to space reserved for the superuser. If necessary, only part
of the dump will be saved to achieve this requirement. 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 system. 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 writ-
ten 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 written out to the dump tape. This file is written a second time once all the dump files
have been written. The first copy of the file only contains crash dump header information and its
filename on tape is tmpindex. It does not contain information for the module and image files.
Section 1M−−724 Hewlett-Packard Company − 2 − HP-UX 11i Version 2: August 2003