From 93f9007da314da4639ad62c0d24d700e0f4a1202 Mon Sep 17 00:00:00 2001 From: rune Date: Tue, 28 Nov 2017 16:25:17 +0800 Subject: [PATCH] doc: add pre-requisite to enable CephFS snapshot Signed-off-by: Jian Su --- doc/dev/cephfs-snapshots.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/doc/dev/cephfs-snapshots.rst b/doc/dev/cephfs-snapshots.rst index 67e680dedbdaf..6069ce57c309c 100644 --- a/doc/dev/cephfs-snapshots.rst +++ b/doc/dev/cephfs-snapshots.rst @@ -33,6 +33,14 @@ Important Data Structures Creating a snapshot ------------------- +Because CephFS snapshot currently is an experimental feature, we are supposed +to enable it explicitly by the command below before testing. + +.. code:: + + $ ceph fs set allow_new_snaps true --yes-i-really-mean-it + + To make a snapshot on directory "/1/2/3/foo", the client invokes "mkdir" on "/1/2/3/foo/.snap" directory. This is transmitted to the MDS Server as a CEPH_MDS_OP_MKSNAP-tagged `MClientRequest`, and initially handled in -- 2.39.5