]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc: document the relevance of mds_namespace mount option 49688/head
authorJos Collin <jcollin@redhat.com>
Wed, 4 Jan 2023 13:25:36 +0000 (18:55 +0530)
committerJos Collin <jcollin@redhat.com>
Tue, 10 Jan 2023 11:40:32 +0000 (17:10 +0530)
Fixes: https://tracker.ceph.com/issues/57673
Signed-off-by: Jos Collin <jcollin@redhat.com>
(cherry picked from commit 86f8fa19e5ab1defea925e44b07bed11b2b4c7d4)

doc/cephfs/mount-using-fuse.rst
doc/cephfs/mount-using-kernel-driver.rst
doc/man/8/mount.ceph.rst

index 27768f5034a93bc1b63db9fa97fc03d623cdaaa6..bd098dc91de32fc2505aa8a7e0a259b8f54a1dc6 100644 (file)
@@ -53,7 +53,8 @@ If you have more than one FS on your Ceph cluster, use the option
 
     ceph-fuse --id foo --client_fs mycephfs2 /mnt/mycephfs2
 
-You may also add a ``client_fs`` setting to your ``ceph.conf``
+You may also add a ``client_fs`` setting to your ``ceph.conf``. Alternatively, the option
+``--client_mds_namespace`` is supported for backward compatibility.
 
 Unmounting CephFS
 =================
index 5bd98dd51a7cb84532c6c36377f6298e1f111f74..4aaf480df978722bfe76a5db74a645df950d722a 100644 (file)
@@ -96,6 +96,28 @@ non-default FS as follows::
 
     mount -t ceph :/ /mnt/mycephfs2 -o name=fs,fs=mycephfs2
 
+Backward Compatibility
+======================
+The old syntax is supported for backward compatibility.
+
+To mount CephFS with the kernel driver::
+
+    mkdir /mnt/mycephfs
+    mount -t ceph :/ /mnt/mycephfs -o name=admin
+
+The key-value argument right after option ``-o`` is CephX credential;
+``name`` is the username of the CephX user we are using to mount CephFS.
+
+To mount a non-default FS ``cephfs2``, in case the cluster has multiple FSs::
+
+    mount -t ceph :/ /mnt/mycephfs -o name=admin,fs=cephfs2
+
+    or
+
+    mount -t ceph :/ /mnt/mycephfs -o name=admin,mds_namespace=cephfs2
+
+.. note:: The option ``mds_namespace`` is deprecated. Use ``fs=`` instead when using the old syntax for mounting.
+
 Unmounting CephFS
 =================
 To unmount the Ceph file system, use the ``umount`` command as usual::
index 1c67a12f8fc45e13978e84f16131ad4b99156c11..41cbcaea2962ff0b20659fec95cd376d2c8ad930 100644 (file)
@@ -110,6 +110,12 @@ Basic
       them. If an inode contains any stale file locks, read/write on the inode
       is not allowed until applications release all stale file locks.
 
+:command: `fs=<fs-name>`
+    Specify the non-default file system to be mounted, when using the old syntax.
+
+:command: `mds_namespace=<fs-name>`
+    A synonym of "fs=" (Deprecated).
+
 Advanced
 --------
 :command:`cap_release_safety`
@@ -236,6 +242,10 @@ history::
     mount.ceph :/ /mnt/mycephfs -o name=fs_username,secretfile=/etc/ceph/fs_username.secret
 
 
+To mount using the old syntax::
+
+    mount -t ceph 192.168.0.1:/ /mnt/mycephfs
+
 Availability
 ============