mirror of
https://github.com/ceph/ceph
synced 2025-01-24 12:05:46 +00:00
9bcd7b673d
Signed-off-by: Varsha Rao <varao@redhat.com>
87 lines
2.3 KiB
ReStructuredText
87 lines
2.3 KiB
ReStructuredText
=======================
|
|
CephFS Exports over NFS
|
|
=======================
|
|
|
|
CephFS namespaces can be exported over NFS protocol using the
|
|
`NFS-Ganesha NFS server <https://github.com/nfs-ganesha/nfs-ganesha/wiki>`_.
|
|
|
|
Requirements
|
|
============
|
|
|
|
- Latest Ceph file system with mgr and dashboard enabled
|
|
- 'nfs-ganesha', 'nfs-ganesha-ceph' and nfs-ganesha-rados-grace packages
|
|
(version 2.7.6-2 and above)
|
|
|
|
Create NFS Ganesha Cluster
|
|
==========================
|
|
|
|
.. code:: bash
|
|
|
|
$ ceph nfs cluster create <type=cephfs> <clusterid> [<placement>]
|
|
|
|
This creates a common recovery pool for all Ganesha daemons, new user based on
|
|
cluster_id and common ganesha config rados object.
|
|
|
|
Here type is export type and placement specifies the size of cluster and hosts.
|
|
For more details on placement specification refer the `orchestrator doc
|
|
<https://docs.ceph.com/docs/master/mgr/orchestrator/#placement-specification>`_.
|
|
Currently only CephFS export type is supported.
|
|
|
|
Update NFS Ganesha Cluster
|
|
==========================
|
|
|
|
.. code:: bash
|
|
|
|
$ ceph nfs cluster update <clusterid> <placement>
|
|
|
|
This updates the deployed cluster according to the placement value.
|
|
|
|
Delete NFS Ganesha Cluster
|
|
==========================
|
|
|
|
.. code:: bash
|
|
|
|
$ ceph nfs cluster delete <clusterid>
|
|
|
|
This deletes the deployed cluster.
|
|
|
|
Create CephFS Export
|
|
====================
|
|
|
|
.. code:: bash
|
|
|
|
$ ceph nfs export create cephfs <fsname> <clusterid> <binding> [--readonly] [--path=/path/in/cephfs]
|
|
|
|
It creates export rados objects containing the export block. Here binding is
|
|
the pseudo root name and type is export type.
|
|
|
|
Delete CephFS Export
|
|
====================
|
|
|
|
.. code:: bash
|
|
|
|
$ ceph nfs export delete <clusterid> <binding>
|
|
|
|
It deletes an export in cluster based on pseudo root name (binding).
|
|
|
|
Configuring NFS-Ganesha to export CephFS with vstart
|
|
====================================================
|
|
|
|
.. code:: bash
|
|
|
|
$ MDS=1 MON=1 OSD=3 NFS=1 ../src/vstart.sh -n -d
|
|
|
|
NFS: It denotes the number of NFS-Ganesha clusters to be created.
|
|
|
|
Mount
|
|
=====
|
|
|
|
After the exports are successfully created and Ganesha daemons are no longer in
|
|
grace period. The exports can be mounted by
|
|
|
|
.. code:: bash
|
|
|
|
$ mount -t nfs -o port=<ganesha-port> <ganesha-host-name>:<ganesha-pseudo-path> <mount-point>
|
|
|
|
.. note:: Only NFS v4.0+ is supported.
|