From: dparmar18 Date: Wed, 14 Sep 2022 12:26:15 +0000 (+0530) Subject: doc/scrub: documented stray evaluation using recursive scrub X-Git-Tag: v19.0.0~1485^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d22e60fa6900449e443a23087b16f0c451d79c2b;p=ceph.git doc/scrub: documented stray evaluation using recursive scrub Also documented the use of new flag introduced in this PR Fixes: https://tracker.ceph.com/issues/53724 Signed-off-by: Dhairya Parmar --- diff --git a/doc/cephfs/scrub.rst b/doc/cephfs/scrub.rst index 114f7580a40..d99aea72b5a 100644 --- a/doc/cephfs/scrub.rst +++ b/doc/cephfs/scrub.rst @@ -143,3 +143,14 @@ The types of damage that can be reported and repaired by File System Scrub are: * BACKTRACE : Inode's backtrace in the data pool is corrupted. +Evaluate strays using recursive scrub +===================================== + +- In order to evaluate strays i.e. purge stray directories in ``~mdsdir`` use the following command:: + + ceph tell mds.:0 scrub start ~mdsdir recursive + +- ``~mdsdir`` is not enqueued by default when scrubbing at the CephFS root. In order to perform stray evaluation + at root, run scrub with flag ``scrub_mdsdir``:: + + ceph tell mds.:0 scrub start / scrub_mdsdir