]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
doc: add dump stray folder command to the docs
authorIgor Golikov <igolikov@ibm.com>
Sun, 16 Feb 2025 08:33:44 +0000 (08:33 +0000)
committerIgor Golikov <igolikov@ibm.com>
Mon, 3 Mar 2025 13:19:57 +0000 (13:19 +0000)
Fixes: https://tracker.ceph.com/issues/56442
Signed-off-by: Igor Golikov <igolikov@ibm.com>
doc/cephfs/scrub.rst

index 9d6745ef7bf0aa2e7767846db15bd9be85ea2e51..b3e4774059b4e81380dbf0f446ef654f2b3cfb0a 100644 (file)
@@ -162,3 +162,30 @@ Evaluate strays using recursive scrub
   at root, run scrub with flags ``scrub_mdsdir`` and ``recursive``::
 
     ceph tell mds.<fsname>:0 scrub start / recursive,scrub_mdsdir
+
+Dump stray folder content
+=====================================
+
+- In order to dump stray folder content on a specific MDS, use the following command::
+
+    ceph tell mds.<fsname>:0 dump stray
+    {
+    "strays": [
+        {
+            "ino": "0x100000001f7",
+            "stray_prior_path": "/dir/dir1",
+            "client_caps": [
+                {
+                    "client_id": 4156,
+                    "pending": "pAsLsXsFscr",
+                    "issued": "pAsLsXsFscr",
+                    "wanted": "-",
+                    "last_sent": 3
+                }
+            ],
+            "loner": -1,
+            "want_loner": -1,
+            "mds_caps_wanted": [],
+            "is_subvolume": false
+        }
+    ]}