]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
doc: outline steps to take CephFS fs down 21265/head
authorPatrick Donnelly <pdonnell@redhat.com>
Fri, 6 Apr 2018 03:06:29 +0000 (20:06 -0700)
committerPatrick Donnelly <pdonnell@redhat.com>
Fri, 6 Apr 2018 03:06:29 +0000 (20:06 -0700)
Fixes: https://tracker.ceph.com/issues/23427
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
doc/cephfs/administration.rst

index bcba78de3754b214a913eb229f34c5acb1d4d4bf..2b70fa0e872b958f7648e06942433d78e0e0ddcc 100644 (file)
@@ -74,6 +74,22 @@ appear to be eg. exabytes in size, causing load on the MDS as it tries
 to enumerate the objects during operations like stats or deletes.
 
 
+Taking the cluster down
+-----------------------
+
+Taking a CephFS cluster down is done by reducing the number of ranks to 1,
+setting the cluster_down flag, and then failing the last rank. For example:
+
+::
+    ceph fs set <fs_name> max_mds 1
+    ceph mds deactivate <fs_name>:1 # rank 2 of 2
+    ceph status # wait for rank 1 to finish stopping
+    ceph fs set <fs_name> cluster_down true
+    ceph mds fail <fs_name>:0
+
+Setting the ``cluster_down`` flag prevents standbys from taking over the failed
+rank.
+
 Daemons
 -------