.. code:: bash
- $ ceph nfs export get <clusterid> <pseudo-path>
+ $ ceph nfs export info <clusterid> <pseudo-path>
This displays export block for a cluster based on pseudo root name,
where:
.. prompt:: bash #
- ceph nfs export get *<pseudo-path>*
+ ceph nfs export info *<pseudo-path>*
An export can be created or modified by importing a JSON description in the
same format:
For example,::
- $ ceph nfs export get vstart /cephfs > update_cephfs_export.json
+ $ ceph nfs export info mynfs /cephfs > update_cephfs_export.json
$ cat update_cephfs_export.json
{
"export_id": 1,
"path": "/",
- "cluster_id": "vstart",
+ "cluster_id": "mynfs",
"pseudo": "/cephfs",
"access_type": "RW",
"squash": "no_root_squash",
],
"fsal": {
"name": "CEPH",
- "user_id": "vstart1",
+ "user_id": "nfs.mynfs.1",
"fs_name": "a",
"sec_label_xattr": ""
},
{
"export_id": 1,
"path": "/",
- "cluster_id": "vstart",
+ "cluster_id": "mynfs",
"pseudo": "/cephfs_testing",
"access_type": "RO",
"squash": "no_root_squash",
],
"fsal": {
"name": "CEPH",
- "user_id": "vstart1",
+ "user_id": "nfs.mynfs.1",
"fs_name": "a",
"sec_label_xattr": ""
},
}
-Configuring NFS Ganesha to export CephFS with vstart
-====================================================
-
-1) Using ``cephadm``
-
- .. code:: bash
-
- $ MDS=1 MON=1 OSD=3 NFS=1 ../src/vstart.sh -n -d --cephadm
-
- This will deploy a single NFS Ganesha daemon using ``vstart.sh``, where
- the daemon will listen on the default NFS Ganesha port.
-
-2) Using test orchestrator
-
- .. code:: bash
-
- $ MDS=1 MON=1 OSD=3 NFS=1 ../src/vstart.sh -n -d
-
- Environment variable ``NFS`` is the number of NFS Ganesha daemons to be
- deployed, each listening on a random port.
-
- .. note:: NFS Ganesha packages must be pre-installed for this to work.
-
Mount
=====
--- /dev/null
+Configuring NFS Ganesha to export CephFS with vstart
+====================================================
+
+1) Using ``cephadm``
+
+ .. code:: bash
+
+ $ MDS=1 MON=1 OSD=3 NFS=1 ../src/vstart.sh -n -d --cephadm
+
+ This will deploy a single NFS Ganesha daemon using ``vstart.sh``, where
+ the daemon will listen on the default NFS Ganesha port.
+
+2) Using test orchestrator
+
+ .. code:: bash
+
+ $ MDS=1 MON=1 OSD=3 NFS=1 ../src/vstart.sh -n -d
+
+ Environment variable ``NFS`` is the number of NFS Ganesha daemons to be
+ deployed, each listening on a random port.
+
+ .. note:: NFS Ganesha packages must be pre-installed for this to work.
+
'''
Returns export block in json format
'''
- return json.loads(self._nfs_cmd('export', 'get', self.cluster_id, self.pseudo_path))
+ return json.loads(self._nfs_cmd('export', 'info', self.cluster_id, self.pseudo_path))
def _test_get_export(self):
'''
exec_cmd_invalid('export', 'ls')
exec_cmd_invalid('export', 'delete')
exec_cmd_invalid('export', 'delete', 'clusterid')
- exec_cmd_invalid('export', 'get')
- exec_cmd_invalid('export', 'get', 'clusterid')
+ exec_cmd_invalid('export', 'info')
+ exec_cmd_invalid('export', 'info', 'clusterid')
exec_cmd_invalid('export', 'update')
"""List exports of a NFS cluster"""
return self.export_mgr.list_exports(cluster_id=cluster_id, detailed=detailed)
- @CLICommand('nfs export get', perm='r')
- def _cmd_nfs_export_get(self, cluster_id: str, pseudo_path: str) -> Tuple[int, str, str]:
+ @CLICommand('nfs export info', perm='r')
+ def _cmd_nfs_export_info(self, cluster_id: str, pseudo_path: str) -> Tuple[int, str, str]:
"""Fetch a export of a NFS cluster given the pseudo path/binding"""
return self.export_mgr.get_export(cluster_id=cluster_id, pseudo_path=pseudo_path)