From: Avan Thakkar Date: Tue, 27 Aug 2024 07:42:06 +0000 (+0530) Subject: doc: cmount_path documentation for CEPHFS nfs exports X-Git-Tag: v20.0.0~1047^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d38858da360afdaf15b331d89ddd72c689465dfe;p=ceph.git doc: cmount_path documentation for CEPHFS nfs exports Signed-off-by: Avan Thakkar --- diff --git a/doc/mgr/nfs.rst b/doc/mgr/nfs.rst index 746ab4247f39..a43323000396 100644 --- a/doc/mgr/nfs.rst +++ b/doc/mgr/nfs.rst @@ -283,7 +283,7 @@ Create CephFS Export .. code:: bash - $ ceph nfs export create cephfs --cluster-id --pseudo-path --fsname [--readonly] [--path=/path/in/cephfs] [--client_addr ...] [--squash ] [--sectype ...] + $ ceph nfs export create cephfs --cluster-id --pseudo-path --fsname [--readonly] [--path=/path/in/cephfs] [--client_addr ...] [--squash ] [--sectype ...] [--cmount_path ] This creates export RADOS objects containing the export block, where @@ -318,6 +318,11 @@ values may be separated by a comma (example: ``--sectype krb5p,krb5i``). The server will negotatiate a supported security type with the client preferring the supplied methods left-to-right. +```` specifies the path within the ceph filesystem to mount this export on. It is +allowed to be any complete path hierarchy between ``/`` and the ``EXPORT {path}``. (i.e. if ``EXPORT { Path }`` parameter is ``/foo/bar`` then cmount_path could be ``/``, ``/foo`` or ``/foo/bar``). +!! If this and the other ``EXPORT { FSAL {} }`` options are the same between multiple exports, those exports will share a single cephfs client. +If not specified, the default is ``/``. + .. note:: Specifying values for sectype that require Kerberos will only function on servers that are configured to support Kerberos. Setting up NFS-Ganesha to support Kerberos is outside the scope of this document. @@ -477,9 +482,9 @@ For example,:: ], "fsal": { "name": "CEPH", - "user_id": "nfs.mynfs.1", "fs_name": "a", - "sec_label_xattr": "" + "sec_label_xattr": "", + "cmount_path": "/" }, "clients": [] } @@ -493,6 +498,8 @@ provided JSON should fully describe the new state of the export (just as when creating a new export), with the exception of the authentication credentials, which will be carried over from the previous state of the export where possible. +The ``user_id`` in the ``fsal`` block should not be modified or mentioned in the JSON file as it is auto-generated for CephFS exports. +It's auto-generated in the format ``nfs...``. :: @@ -514,9 +521,9 @@ previous state of the export where possible. ], "fsal": { "name": "CEPH", - "user_id": "nfs.mynfs.1", "fs_name": "a", - "sec_label_xattr": "" + "sec_label_xattr": "", + "cmount_path": "/" }, "clients": [] }