mirror of
https://github.com/ceph/ceph
synced 2024-12-26 21:43:10 +00:00
1b2a0669b9
This puts in place an init script and a command it runs to save a kernel core dump to a remote server when a panic or other kernel failure occurs. The content of a crash file generated by the "kdump" init script (which uses the Ubuntu "apport" kernel_crashdump command) is re-packaged and copied (via scp) to a remote server specified by variables in /etc/default/ceph-kdump-copy. This packaging (as well as the work done by the apport script) is done on the next boot of the kernel following a crash. Note: Although the init script, its config file, and shell script are known to work, the packaging of these things should not be expected to be. I (now) know, for example, that the init script belongs in src/init-ceph-kdump-copy.in if it is to follow the pattern used by the ceph init script. And there are likely other problems with the build/install portions of this patch. Signed-off-by: Alex Elder <elder@dreamhost.com>
34 lines
1.3 KiB
Plaintext
34 lines
1.3 KiB
Plaintext
# ceph-kdump-copy configuration
|
|
# ---------------------------------------------------------------------------
|
|
|
|
# ---------------------------------------------------------------------------
|
|
# Remote host information:
|
|
#
|
|
# These first two MUST be specified
|
|
# KDUMP_HOST - The remote host to which kdumps will be copied.
|
|
# KDUMP_HOST_USER - The ssh user on KDUMP_HOST that has write
|
|
# permission in KDUMP_HOST_COREDIR.
|
|
KDUMP_HOST="YOU_MUST_SPECIFY_THIS"
|
|
KDUMP_HOST_USER="YOU_MUST_SPECIFY_THIS_TOO"
|
|
|
|
# KDUMP_HOST_COREDIR - Full path to the directory on KDUMP_HOST that
|
|
# will contain copied kdumps. If not set, "/var/crash/remote" is
|
|
# the default.
|
|
# KDUMP_HOST_COREDIR="/var/crash/remote"
|
|
|
|
# KDUMP_HOST_MY_ID - Name for "me", used as the directory name
|
|
# under KDUMP_HOST_COREDIR under which all kdumps from this
|
|
# host are placed. Each kdump is identified by a date stamp.
|
|
# If not set, "$(hostname)" is the default.
|
|
# KDUMP_HOST_MY_ID="$(hostname)"
|
|
|
|
# ---------------------------------------------------------------------------
|
|
# Local host information:
|
|
#
|
|
# The local directory in which dumps are saved. If not set, "/var/crash"
|
|
# is the default.
|
|
# KDUMP_COREDIR="/var/crash"
|
|
|
|
# ---------------------------------------------------------------------------
|
|
# Architecture specific Overrides:
|