]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
doc/cephfs: document usage of set option with 'fs new' 51993/head
authorDhairya Parmar <dparmar@redhat.com>
Sun, 18 Jun 2023 11:57:58 +0000 (17:27 +0530)
committerDhairya Parmar <dparmar@redhat.com>
Tue, 26 Dec 2023 10:24:24 +0000 (15:54 +0530)
Fixes: https://tracker.ceph.com/issues/58072
Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
doc/cephfs/createfs.rst

index 4a282e562fe3c79c41e461bdec60c9db86093045..ce91660c2ef2e73036a5cfdf03552f9335c07c11 100644 (file)
@@ -52,13 +52,16 @@ Once the pools are created, you may enable the file system using the ``fs new``
 
 .. code:: bash
 
-    $ ceph fs new <fs_name> <metadata> <data> [--force] [--allow-dangerous-metadata-overlay] [<fscid:int>] [--recover]
+    $ ceph fs new <fs_name> <metadata> <data> [--force] [--allow-dangerous-metadata-overlay] [<fscid:int>] [--recover] [--yes-i-really-really-mean-it] [<set>...]
 
 This command creates a new file system with specified metadata and data pool.
 The specified data pool is the default data pool and cannot be changed once set.
 Each file system has its own set of MDS daemons assigned to ranks so ensure that
 you have sufficient standby daemons available to accommodate the new file system.
 
+.. note::
+   ``--yes-i-really-really-mean-it`` may be used for some ``fs set`` commands
+
 The ``--force`` option is used to achieve any of the following:
 
 - To set an erasure-coded pool for the default data pool. Use of an EC pool for the
@@ -82,11 +85,14 @@ failed. So when a MDS daemon eventually picks up rank 0, the daemon reads the
 existing in-RADOS metadata and doesn't overwrite it. The flag also prevents the
 standby MDS daemons to join the file system.
 
+The ``set`` option allows to set multiple options supported by ``fs set``
+atomically with the creation of the file system.
+
 For example:
 
 .. code:: bash
 
-    $ ceph fs new cephfs cephfs_metadata cephfs_data
+    $ ceph fs new cephfs cephfs_metadata cephfs_data set max_mds 2 allow_standby_replay true
     $ ceph fs ls
     name: cephfs, metadata pool: cephfs_metadata, data pools: [cephfs_data ]