BSD 4_4_Lite2 development
[unix-history] / usr / share / man / cat8 / savecore.0
SAVECORE(8) BSD System Manager's Manual SAVECORE(8)
N\bNA\bAM\bME\bE
s\bsa\bav\bve\bec\bco\bor\bre\be - save a core dump of the operating system
S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
s\bsa\bav\bve\bec\bco\bor\bre\be -\b-c\bc
s\bsa\bav\bve\bec\bco\bor\bre\be [-\b-f\bfv\bvz\bz] [-\b-N\bN _\bs_\by_\bs_\bt_\be_\bm] _\bd_\bi_\br_\be_\bc_\bt_\bo_\br_\by
D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
S\bSa\bav\bve\bec\bco\bor\bre\be copies the currently running kernel and its associated core dump
into _\bd_\bi_\br_\be_\bc_\bt_\bo_\br_\by, and enters a reboot message and information about the
core dump into the system log.
The options are as follows:
-\b-c\bc Clears the dump, so that future invocations of s\bsa\bav\bve\bec\bco\bor\bre\be will
ignore it.
-\b-f\bf Forces a dump to be taken even if the dump doesn't appear cor-
rect or there is insufficient disk space.
-\b-N\bN Use _\bs_\by_\bs_\bt_\be_\bm as the kernel instead of the default ``/vmunix''.
-\b-v\bv Prints out some additional debugging information.
-\b-z\bz Compresses the core dump and kernel (see compress(1)).
S\bSa\bav\bve\bec\bco\bor\bre\be checks the core dump in various ways to make sure that it is
current and that it corresponds to the currently running system. If it
passes these checks, it saves the core image in _\bd_\bi_\br_\be_\bc_\bt_\bo_\br_\by_\b/_\bv_\bm_\bc_\bo_\br_\be_\b._\b# and
the system in _\bd_\bi_\br_\be_\bc_\bt_\bo_\br_\by_\b/_\bv_\bm_\bu_\bn_\bi_\bx_\b._\b# The ``#'' is the number from the first
line of the file _\bd_\bi_\br_\be_\bc_\bt_\bo_\br_\by_\b/_\bb_\bo_\bu_\bn_\bd_\bs, and it is incremented and stored back
into the file each time s\bsa\bav\bve\bec\bco\bor\bre\be successfully runs.
S\bSa\bav\bve\bec\bco\bor\bre\be also checks the available disk space before attempting to make
the copies. If there is insufficient disk space in the filesystem con-
taining _\bd_\bi_\br_\be_\bc_\bt_\bo_\br_\by, or if the file _\bd_\bi_\br_\be_\bc_\bt_\bo_\br_\by_\b/_\bm_\bi_\bn_\bf_\br_\be_\be exists and the number
of free kilobytes (for non-superusers) in the filesystem after the copies
were made would be less than the number in the first line of this file,
the copies are not attempted.
If s\bsa\bav\bve\bec\bco\bor\bre\be successfully copies the kernel and the core dump, the core
dump is cleared so that future invocations of s\bsa\bav\bve\bec\bco\bor\bre\be will ignore it.
S\bSa\bav\bve\bec\bco\bor\bre\be is meant to be called near the end of the initialization file
_\b/_\be_\bt_\bc_\b/_\br_\bc (see rc(8)).
F\bFI\bIL\bLE\bES\bS
/vmunix current UNIX
B\bBU\bUG\bGS\bS
The minfree code does not consider the effect of compression.
S\bSE\bEE\bE A\bAL\bLS\bSO\bO
compress(1), syslogd(8)
H\bHI\bIS\bST\bTO\bOR\bRY\bY
The s\bsa\bav\bve\bec\bco\bor\bre\be command appeared in 4.1BSD.
4th Berkeley Distribution June 5, 1993 1