]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
doc: document the relevance of mds_namespace mount option
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 09:18:20 +0000 (14:48 +0530)
Fixes: https://tracker.ceph.com/issues/57673
Signed-off-by: Jos Collin <jcollin@redhat.com>
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 3130f4f3efd936eac96e604f76dda4f8a5eb5b65..9d9a4a683bae71c8221006bb6ac1529b79a4f165 100644 (file)
@@ -103,6 +103,28 @@ To mount a subtree of the CephFS root, append the path to the device string::
 
   mount -t ceph cephuser@.cephfs=/subvolume/dir1/dir2 /mnt/mycephfs -o secretfile=/etc/ceph/cephuser.secret
 
+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 914cdc5068a8465a1dd75fd50fc5475bad7c32c8..fbe8790ddbdca11f53126fe4628994d16928784c 100644 (file)
@@ -116,6 +116,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`
@@ -229,6 +235,10 @@ If authentication is disabled on Ceph cluster, omit the credential related optio
 
     mount.ceph fs_user@.mycephfs2=/ /mnt/mycephfs
 
+To mount using the old syntax::
+
+    mount -t ceph 192.168.0.1:/ /mnt/mycephfs
+
 Availability
 ============