]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc/cephfs: mention need of confirmation for "ceph mds fail"
authorRishabh Dave <ridave@redhat.com>
Fri, 19 Apr 2024 11:28:30 +0000 (16:58 +0530)
committerRishabh Dave <ridave@redhat.com>
Mon, 3 Jun 2024 13:46:11 +0000 (19:16 +0530)
Update docs since command "ceph mds fail" will now fail if MDS has either
health warning MDS_TRIM or MDS_CACHE_OVERSIZED and if confirmation flag
is not passed.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit dea22203749bc87a209289f5aed1e78b503ab440)

doc/cephfs/add-remove-mds.rst
doc/cephfs/administration.rst

index 4f5ee06aa8b72f20ed362de20db8a5346f5b252f..240d4d01c91c94569f88f5b911735dd44240ebfc 100644 (file)
@@ -115,4 +115,11 @@ the following method.
 
        $ sudo rm -rf /var/lib/ceph/mds/ceph-${id}
 
+
+.. note:: When an active MDS either has health warning MDS_TRIM or
+   MDS_CACHE_OVERSIZED, confirmation flag (--yes-i-really-mean-it)
+   needs to be passed, else the command will fail. It is not recommended to
+   restart an MDS which has these warnings since slow recovery at restart may
+   lead to more problems.
+
 .. _MDS Config Reference: ../mds-config-ref
index d2f3452d1ad0f580dc87c1dd0174ebac0bc7d30c..4077457b787985d51b644c42c5b3a7b9c42e1bd9 100644 (file)
@@ -210,7 +210,11 @@ respawn as standbys. The file system will be left in a degraded state.
 ::
 
     # For all ranks, 0-N:
-    ceph mds fail <fs_name>:<n>
+    ceph mds fail <fs_name>:<n> {--yes-i-really-mean-it}
+
+.. note:: Note that confirmation flag is optional because it is only required
+   when the MDS is active and has health warning MDS_TRIM or
+   MDS_CACHE_OVERSIZED.
 
 Once all ranks are inactive, the file system may also be deleted or left in
 this state for other purposes (perhaps disaster recovery).