]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc: add note about checking pending stray directory entries before initiating upgrade 46237/head
authorVenky Shankar <vshankar@redhat.com>
Thu, 12 May 2022 06:52:06 +0000 (12:22 +0530)
committerVenky Shankar <vshankar@redhat.com>
Fri, 13 May 2022 10:54:14 +0000 (16:24 +0530)
Signed-off-by: Venky Shankar <vshankar@redhat.com>
doc/releases/pacific.rst

index d33ea3298634ad8f72c1b058e445b341486c8e83..2a4e83afaecf155b6333ee206001663658b0eaa0 100644 (file)
@@ -974,6 +974,19 @@ recovering OSDs).  (This is optional, but recommended.)
   <= 16.2.6, because this can lead to data corruption, details in
   https://tracker.ceph.com/issues/53062.
 
+.. note::
+   When using multiple active Ceph Metadata Servers, ensure that there are
+   no pending stray entries which are directories for active ranks except rank 0 as
+   starting an upgrade (which sets `max_mds` to 1) could crash the Ceph
+   Metadata Server. The following command should return zero (0) stray entries
+   for all stray directories::
+
+     # for idx in {0..9}; do ceph tell mds.<rank> dump tree ~mdsdir/stray$idx| jq '.[] | select (.nlink == 0 and .dir_layout.dir_hash > 0) | .stray_prior_path' | wc -l; done
+
+   Ensure that all active ranks except rank 0 are checked for absence of stray
+   entries which are directories (using the above command). Details are captured
+   in http://tracker.ceph.com/issues/53597.
+
 Upgrading cephadm clusters
 ~~~~~~~~~~~~~~~~~~~~~~~~~~