Information Technology Reference
In-Depth Information
Table 11.4
dumpadm Command-Line Arguments
(continued)
Argument
Purpose
-m
threshold
Sets the minimum amount of free space that must be available
in the
savecore
directory after a crash dump is saved. The
threshold
is specified as a number followed by
k
(Kbytes),
m
(Mbytes), or
%
(percentage). This specified threshold is stored
in the
minfree
file in the
savecore
directory.
-n
Disables the
savecore
procedure. That is, does not save the
crash dump.
-r
root
Specifies an alternative root for the
savecore
directory. If not
specified, the system root (
/
) is assumed.
-i
savecore-directory
Sets the
savecore
directory to
savecore-directory
.
-u
Updates the configuration based on the
/etc/dumpadm.conf
file.
-y
Enables the
savecore
procedure.
Note that if swap is being used as the dump device, the crash dump must be saved
during system reboot (by enabling the
savecore
procedure) or immediately after the
system boots. Otherwise, the crash dump will be overwritten when
swap
is used.
The following example shows the
dumpadm
command changing the dump
device:
# dumpadm -d /dev/dsk/c0t3d0s7
Dump content: kernel pages
Dump device: /dev/dsk/c0t3d0s7 (dedicated)
Savecore directory: /var/crash/solaris9
Savecore enabled: yes
The savecore Command
The
savecore
command (if enabled) runs during system boot to copy a crash
dump from the dump device to the
savecore
directory. It is executed by the
/etc/init.d/savecore
script. The crash dump is written as a pair of files
with the names
unix.
X
and
vmcore.
X
, where
X
is the next number in sequence
based on the other crash dump files in the
savecore
directory.
The
savecore
command examines the
minfree
file in the
savecore
directo-
ry (if present) and will not save the crash dump if doing so will cause the
amount of
savecore
directory free space to drop below the minimum thresh-
old. Table 11.5 lists the command-line arguments of the
savecore
command.