]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
doc/scrub: documented stray evaluation using recursive scrub
authordparmar18 <dparmar@redhat.com>
Wed, 14 Sep 2022 12:26:15 +0000 (17:56 +0530)
committerDhairya Parmar <dparmar@redhat.com>
Fri, 3 Mar 2023 06:14:55 +0000 (11:44 +0530)
Also documented the use of new flag introduced in this PR

Fixes: https://tracker.ceph.com/issues/53724
Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
doc/cephfs/scrub.rst

index 114f7580a400561ea3d90c96748314aa7b2e5abe..d99aea72b5a715b8816c3b17cbf37002133a013f 100644 (file)
@@ -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.<fsname>: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.<fsname>:0 scrub start / scrub_mdsdir