From 7e316117c4127841a2161df98e6b96387b5da0d5 Mon Sep 17 00:00:00 2001 From: Rishabh Dave Date: Mon, 2 Sep 2024 19:41:17 +0530 Subject: [PATCH] doc/cephfs: add note for config option pause_purging and pause_cloning Update documentation for add information about mgr/vol config options "pause_purging" and "pause_cloning". Signed-off-by: Rishabh Dave (cherry picked from commit 1f0bfe1c599769ac67d3b1b41f37bb3482e27839) --- doc/cephfs/fs-volumes.rst | 26 ++++++++++++++++++++++++++ doc/cephfs/troubleshooting.rst | 25 +++++++++++++++++++++++++ 2 files changed, 51 insertions(+) diff --git a/doc/cephfs/fs-volumes.rst b/doc/cephfs/fs-volumes.rst index d313cfe471f..477bd55cb0f 100644 --- a/doc/cephfs/fs-volumes.rst +++ b/doc/cephfs/fs-volumes.rst @@ -829,6 +829,32 @@ Configure the maximum number of concurrent clone operations. The default is 4: ceph config set mgr mgr/volumes/max_concurrent_clones +Pause the threads that asynchronously purge trashed subvolumes. This option is +useful during cluster recovery scenarios: + +.. prompt:: bash # + + ceph config set mgr/volumes/pause_purging true + +To resume purging threads: + +.. prompt:: bash # + + ceph config set mgr/volumes/pause_purging false + +Pause the threads that asynchronously clone subvolume snapshots. This option is +useful during cluster recovery scenarios: + +.. prompt:: bash # + + ceph config set mgr/volumes/pause_cloning true + +To resume cloning threads: + +.. prompt:: bash # + + ceph config set mgr/volumes/pause_cloning false + Configure the ``snapshot_clone_no_wait`` option: The ``snapshot_clone_no_wait`` config option is used to reject clone-creation diff --git a/doc/cephfs/troubleshooting.rst b/doc/cephfs/troubleshooting.rst index 94eb6adaedb..a8a593ede48 100644 --- a/doc/cephfs/troubleshooting.rst +++ b/doc/cephfs/troubleshooting.rst @@ -242,6 +242,31 @@ Do the following when restoring your file system: ceph config set mgr mgr/volumes/pause_cloning false +* **Turn off async purge threads** The volumes plugin spawns threads for + asynchronously purging trashed/deleted subvolumes. To help troubleshooting or + recovery effort, these purge threads can be disabled using: + +.. code:: bash + + ceph config set mgr mgr/volumes/pause_purging true + + To resume purging run:: + + ceph config set mgr mgr/volumes/pause_purging false + +* **Turn off async cloner threads** The volumes plugin spawns threads for + asynchronously cloning subvolume snapshots. To help troubleshooting or + recovery effort, these cloner threads can be disabled using: + +.. code:: bash + + ceph config set mgr mgr/volumes/pause_cloning true + + To resume cloning run:: + + ceph config set mgr mgr/volumes/pause_cloning false + + Expediting MDS journal trim =========================== -- 2.39.5