SAVECORE(8) COMMAND REFERENCE SAVECORE(8)
NAME
savecore - save a core dump of the operating system
SYNOPSIS
/etc/savecore dirname [ -d dumpdev ] [ -s system ]
DESCRIPTION
Savecore is meant to be called near the end of the /etc/rc
file. Its function is to save the core dump of the system
(assuming one was made) and to write a reboot message in the
shutdown log.
Savecore checks the core dump to be certain it corresponds
with the current running system. If it does it saves the
core image in the file dirname/vmcore.n and its brother, the
namelist, in dirname/vmunix.n The trailing .n in the
pathnames is replaced by a number which grows every time
savecore is run in that directory. This number is read from
the second line of the file dirname/savecore.bounds, and is
incremented whenever a core image is saved.
Before savecore writes out a core image, it reads an
additional number from the first line of the file
dirname/savecore.bounds. If there are fewer free blocks on
the filesystem which contains dirname than this number
obtained from the savecore.bounds file, the core dump is not
done. If the savecore.bounds file does not exist, savecore
always writes out the core file (assuming that a core dump
was taken).
Savecore also writes a reboot message in the shut down log.
If the system crashed as a result of a panic, savecore
records the panic string in the shut down log too.
OPTIONS
-d dumpdev
The name of the device containing the dump may be
supplied as dumpdev. Otherwise, the dump device is
read from the kernel.
-s system If the core dump was from a system other than the
default, the name of that system may be supplied
as system.
FILES
/usr/adm/shutdownlog
shut down log
dirname/savecore.bounds
/dev/cvt table of kernel symbols
Printed 4/6/89 1
SAVECORE(8) COMMAND REFERENCE SAVECORE(8)
RETURN VALUE
[NO_ERRS] Command completed without error.
[USAGE] Incorrect command line syntax. Execution
terminated.
[NP_WARN] An error warranting a warning message
occurred. Execution continues.
[NP_ERR] An error occurred that was not a system
error. Execution terminated.
[P_WARN] A system error occurred. Execution continues.
See intro(2) for more information on system
errors.
[P_ERR] A system error occurred. Execution
terminated. See intro(2) for more
information on system errors.
CAVEATS
Savecore can be fooled into thinking a core dump is the
wrong size.
SEE ALSO
cvt(4).
Printed 4/6/89 2
%%index%%
na:336,103;
sy:439,356;
de:795,2244;
op:3039,511;
fi:3550,286;
rv:4244,836;
ca:5080,237;
se:5317,126;
%%index%%000000000135