From: Jos Collin Date: Wed, 4 Jan 2023 13:25:36 +0000 (+0530) Subject: doc: document the relevance of mds_namespace mount option X-Git-Tag: v18.1.0~549^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=86f8fa19e5ab1defea925e44b07bed11b2b4c7d4;p=ceph.git doc: document the relevance of mds_namespace mount option Fixes: https://tracker.ceph.com/issues/57673 Signed-off-by: Jos Collin --- diff --git a/doc/cephfs/mount-using-fuse.rst b/doc/cephfs/mount-using-fuse.rst index 27768f5034a9..bd098dc91de3 100644 --- a/doc/cephfs/mount-using-fuse.rst +++ b/doc/cephfs/mount-using-fuse.rst @@ -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 ================= diff --git a/doc/cephfs/mount-using-kernel-driver.rst b/doc/cephfs/mount-using-kernel-driver.rst index 3130f4f3efd9..9d9a4a683bae 100644 --- a/doc/cephfs/mount-using-kernel-driver.rst +++ b/doc/cephfs/mount-using-kernel-driver.rst @@ -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:: diff --git a/doc/man/8/mount.ceph.rst b/doc/man/8/mount.ceph.rst index 914cdc5068a8..fbe8790ddbdc 100644 --- a/doc/man/8/mount.ceph.rst +++ b/doc/man/8/mount.ceph.rst @@ -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=` + Specify the non-default file system to be mounted, when using the old syntax. + +:command: `mds_namespace=` + 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 ============