]> git-server-git.apps.pok.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>
Fri, 19 Apr 2024 11:46:46 +0000 (17: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>
doc/cephfs/add-remove-mds.rst
doc/cephfs/administration.rst

index 2fec7873d228b55cc1df4fe1a80dfc746f3ced35..b96d354454ebea3a8876b5c875999aa520f2bcec 100644 (file)
@@ -117,4 +117,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 dd9a8e25b1683a42b858a50f2dcdd5554f3e438a..06a57e9ce44462444f1d02eaa5428351165921b7 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).