@@ -438,36 +438,53 @@ To disable debug logging, run a command of the following form:
438438In-memory Log Dump
439439==================
440440
441- In-memory logs can be dumped by setting ``mds_extraordinary_events_dump_interval ``
442- during a lower level debugging (log level < 10). ``mds_extraordinary_events_dump_interval ``
443- is the interval in seconds for dumping the recent in-memory logs when there is an Extra-Ordinary event.
441+ In-memory logs can be dumped by setting
442+ ``mds_extraordinary_events_dump_interval `` when
443+ the log level is set to less than ``10 ``.
444+ ``mds_extraordinary_events_dump_interval `` is the interval in seconds for
445+ dumping the recent in-memory logs when there is an extraordinary event.
444446
445- The Extra-Ordinary events are classified as :
447+ Extraordinary events include the following :
446448
447449* Client Eviction
448450* Missed Beacon ACK from the monitors
449451* Missed Internal Heartbeats
450452
451- In-memory Log Dump is disabled by default to prevent log file bloat in a production environment.
452- The below commands consecutively enables it::
453+ In-memory log dump is disabled by default. This prevents production
454+ environments from experiencing log file bloat by default.
453455
454- $ ceph config set mds debug_mds <log_level>/<gather_level>
455- $ ceph config set mds mds_extraordinary_events_dump_interval <seconds>
456+ Run the following two commands in order to enable in-memory log dumping:
456457
457- The ``log_level `` should be < 10 and ``gather_level `` should be >= 10 to enable in-memory log dump.
458- When it is enabled, the MDS checks for the extra-ordinary events every
459- ``mds_extraordinary_events_dump_interval `` seconds and if any of them occurs, MDS dumps the
460- in-memory logs containing the relevant event details in ceph-mds log.
458+ #.
459+ .. prompt :: bash $
461460
462- .. note :: For higher log levels (log_level >= 10) there is no reason to dump the In-memory Logs and a
463- lower gather level (gather_level < 10) is insufficient to gather In-memory Logs. Thus a
464- log level >=10 or a gather level < 10 in debug_mds would prevent enabling the In-memory Log Dump.
465- In such cases, when there is a failure it's required to reset the value of
466- mds_extraordinary_events_dump_interval to 0 before enabling using the above commands.
461+ ceph config set mds debug_mds <log_level>/<gather_level>
462+ Set ``log_level `` to a value of less than ``10 ``. Set ``gather_level `` to a
463+ value greater than ``10 ``. When those two values have been set, in-memory
464+ log dump is enabled.
465+ #.
466+ .. prompt :: bash #
467+
468+ ceph config set mds mds_extraordinary_events_dump_interval <seconds>
469+ When in-memory log dumping is enabled, the MDS checks for
470+ extraordinary events every ``mds_extraordinary_events_dump_interval ``
471+ seconds. If any extraordinary event occurs, the MDS dumps the in-memory logs
472+ that contain relevant event details to the Ceph MDS log.
473+
474+ .. note :: When higher log levels are set (``log_level`` greater than or equal
475+ to ``10 ``) there is no reason to dump the in-memory logs. A lower gather
476+ level (``gather_level `` less than ``10 ``) is insufficient to gather in-
477+ memory logs. This means that a log level of greater than or equal to ``10 ``
478+ or a gather level of less than ``10 `` in ``debug_mds `` prevents enabling
479+ in-memory-log dumping. In such cases, if there is a failure, you must reset
480+ the value of ``mds_extraordinary_events_dump_interval `` to ``0 `` before
481+ enabling the use of the above commands.
467482
468- The In-memory Log Dump can be disabled using::
483+ Disable in-memory log dumping by running the following command:
484+
485+ .. prompt :: bash #
469486
470- $ ceph config set mds mds_extraordinary_events_dump_interval 0
487+ ceph config set mds mds_extraordinary_events_dump_interval 0
471488
472489Filesystems Become Inaccessible After an Upgrade
473490================================================
0 commit comments