Skip to content

Commit

Permalink
Merge PR ceph#38742 into master
Browse files Browse the repository at this point in the history
* refs/pull/38742/head:
	doc/cephfs/nfs: Add more details about path and pseudo path
	doc/cephfs/nfs: Add note about how to fetch port details with rook
	doc/cephfs/nfs: Add warning note about management of dashboard created exports

Reviewed-by: Rishabh Dave <[email protected]>
Reviewed-by: Patrick Donnelly <[email protected]>
Reviewed-by: Jeff Layton <[email protected]>
  • Loading branch information
batrick committed Jan 5, 2021
2 parents 20141ed + 948ea79 commit edd6d3d
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion doc/cephfs/fs-nfs-exports.rst
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,13 @@ Show NFS Ganesha Cluster Information
This displays ip and port of deployed cluster.

.. note:: This will not work with rook backend. Instead expose port with
kubectl patch command and fetch the port details with kubectl get services
command::

$ kubectl patch service -n rook-ceph -p '{"spec":{"type": "NodePort"}}' rook-ceph-nfs-<cluster-name>-<node-id>
$ kubectl get services -n rook-ceph rook-ceph-nfs-<cluster-name>-<node-id>

Set Customized NFS Ganesha Configuration
========================================

Expand All @@ -109,6 +116,11 @@ This removes the user defined configuration.
Create CephFS Export
====================

.. warning:: Currently, the volume/nfs interface is not integrated with dashboard. Both
dashboard and volume/nfs interface have different export requirements and
create exports differently. Management of dashboard created exports is not
supported.

.. code:: bash
$ ceph nfs export create cephfs <fsname> <clusterid> <binding> [--readonly] [--path=/path/in/cephfs]
Expand All @@ -120,7 +132,15 @@ serve this export.

``clusterid`` is the NFS Ganesha cluster ID.

``binding`` is the pseudo root path (must be an absolute path).
``binding`` is the pseudo root path (must be an absolute path and unique). It
specifies the export position within the NFS v4 Pseudo Filesystem.

``path`` is the path within cephfs. Valid path should be given and default path
is '/'. It need not be unique. Subvolume path can be fetched using:

.. code::
$ ceph fs subvolume getpath <vol_name> <subvol_name> [--group_name <subvol_group_name>]
Delete CephFS Export
====================
Expand Down

0 comments on commit edd6d3d

Please sign in to comment.