From 01b94b8aebbfe3a2b41016956dd3dc6702572c98 Mon Sep 17 00:00:00 2001 From: dparmar18 Date: Wed, 14 Sep 2022 17:56:15 +0530 Subject: [PATCH] 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 (cherry picked from commit d22e60fa6900449e443a23087b16f0c451d79c2b) --- doc/cephfs/scrub.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/doc/cephfs/scrub.rst b/doc/cephfs/scrub.rst index 114f7580a400..d99aea72b5a7 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 -- 2.47.3