Enabling
--------
-The *crash* module is enabled with::
+Enable the *crash* module by running the following command:
- ceph mgr module enable crash
+.. prompt:: bash #
-The *crash* upload key is generated with::
+ ceph mgr module enable crash
- ceph auth get-or-create client.crash mon 'profile crash' mgr 'profile crash'
+Generate the *crash* upload key by running the following command:
+
+.. prompt:: bash #
+
+ ceph auth get-or-create client.crash mon 'profile crash' mgr 'profile crash'
On each node, you should store this key in
``/etc/ceph/ceph.client.crash.keyring``.
Commands
--------
-::
- ceph crash post -i <metafile>
+.. prompt:: bash #
+
+ ceph crash post -i <metafile>
Save a crash dump. The metadata file is a JSON blob stored in the crash
dir as ``meta``. As usual, the ceph command can be invoked with ``-i -``,
and will read from stdin.
-::
+.. prompt:: bash #
- ceph crash rm <crashid>
+ ceph crash rm <crashid>
Remove a specific crash dump.
-::
+.. prompt:: bash #
- ceph crash ls
+ ceph crash ls
List the timestamp/uuid crashids for all new and archived crash info.
-::
- ceph crash ls-new
+.. prompt:: bash #
+
+ ceph crash ls-new
List the timestamp/uuid crashids for all newcrash info.
-::
- ceph crash stat
+.. prompt:: bash #
+
+ ceph crash stat
Show a summary of saved crash info grouped by age.
-::
+.. prompt:: bash #
- ceph crash info <crashid>
+ ceph crash info <crashid>
Show all details of a saved crash.
-::
+
+.. prompt:: bash #
ceph crash prune <keep>
Remove saved crashes older than 'keep' days. <keep> must be an integer.
-::
+.. prompt:: bash #
ceph crash archive <crashid>
Archive a crash report so that it is no longer considered for the ``RECENT_CRASH`` health check and does not appear in the ``crash ls-new`` output (it will still appear in the ``crash ls`` output).
-::
+.. prompt:: bash #
ceph crash archive-all