logo

Manual Pages


Table of Contents

NAME

na_savecore - save a core dump

SYNOPSIS

savecore [ -w | -s | -f | -i | -k | -l ]

DESCRIPTION

savecore is meant to be called near the end of the initialization file /etc/rc. Its function is to save the core dump of the system (assuming one was made) and to write the panic string to /etc/messages. savecore saves the (compressed) core dump in the file /etc/crash/core.n.nz (/crash/core.n.nz for NetCache) and a smaller, minimal core file in /etc/crash/minicore.n (/crash/minicore.n for NetCache). The value of n is determined by the /etc/crash/bounds file.

Before savecore writes out a core image, it reads a number from the file /etc/crash/minfree. If the number of free kilobytes in the filesystem after saving the core would be less than the number obtained from minfree, the core dump is not saved. If minfree does not exist, savecore always writes out the core file (assuming that a core dump was taken).

savecore is done in parallel with enabling services such as NFS. If a panic occurs prior to the completion of the savecore then the filer will do a synchronous savecore once it reboots.

OPTION

-w
Waits for the savecore admin to complete before enabling services such as NFS.

-s
Displays the progress of the savecore admin when it is saving a core asychronously.

-f
Force the core to be saved synchronously, instead of asynchronously.

-i
Displays information about whether sprayed cores are available. They are available only if there are enough fibre channel disks to hold the memory content without compression.

-k
Invalidates the special core area that resides on each of the disks. Typically this is used when a savecore command cannot complete due to an error such as a disk read error.

-l
Lists all of the saved core files currently in the /etc/crash directory, along with the panic string, panic time, and OS version.

FILES

/etc/crash/core.*
saved core files
/etc/crash/bounds
suffix for next core file /etc/crash/minfree free KB in FS to maintain after savecore

CLUSTER CONSIDERATIONS

If the live filer in a cluster has the savecore command in its /etc/rc file, it can save the cores created by its partner when its partner crashes. The cores are saved to the partner's /etc/crash directory.

SEE ALSO

na_partner(1), na_rc(5).


Table of Contents