mirror of
https://github.com/ceph/ceph
synced 2025-02-22 18:47:18 +00:00
mgr/nfs: use keyword args for 'nfs export create rgw'
Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
parent
9467f1e89e
commit
aef952bc46
@ -275,24 +275,24 @@ To export a bucket
|
||||
|
||||
.. code::
|
||||
|
||||
$ ceph nfs export create rgw <bucket_name> <cluster_id> <pseudo_path> [--readonly] [--client_addr <value>...] [--squash <value>]
|
||||
$ ceph nfs export create rgw --cluster-id <cluster_id> --pseudo-path <pseudo_path> --bucket <bucket_name> [--readonly] [--client_addr <value>...] [--squash <value>]
|
||||
|
||||
For example, to export *mybucket* via NFS cluster *mynfs* at the pseudo-path */bucketdata* to any host in the ``192.168.10.0/24`` network
|
||||
|
||||
.. code::
|
||||
|
||||
$ ceph nfs export create rgw mybucket mynfs /bucketdata --client_addr 192.168.10.0/24
|
||||
$ ceph nfs export create rgw --cluster-id mynfs --pseudo-path /bucketdata --bucket mybucket --client_addr 192.168.10.0/24
|
||||
|
||||
.. note:: Export creation is supported only for NFS Ganesha clusters deployed using nfs interface.
|
||||
|
||||
``<bucket_name>`` is the name of the bucket that will be exported.
|
||||
|
||||
.. note:: Currently, if multi-site RGW is enabled, Ceph can only export RGW buckets in the default realm.
|
||||
|
||||
``<cluster_id>`` is the NFS Ganesha cluster ID.
|
||||
|
||||
``<pseudo_path>`` is the export position within the NFS v4 Pseudo Filesystem where the export will be available on the server. It must be an absolute path and unique.
|
||||
|
||||
``<bucket_name>`` is the name of the bucket that will be exported.
|
||||
|
||||
.. note:: Currently, if multi-site RGW is enabled, Ceph can only export RGW buckets in the default realm.
|
||||
|
||||
``<client_addr>`` is the list of client address for which these export
|
||||
permissions will be applicable. By default all clients can access the export
|
||||
according to specified export permissions. See the `NFS-Ganesha Export Sample`_
|
||||
|
@ -40,7 +40,7 @@ tasks:
|
||||
|
||||
- cephadm.shell:
|
||||
host.a:
|
||||
- ceph nfs export create rgw foobucket foo --pseudo-path /foobucket
|
||||
- ceph nfs export create rgw --bucket foobucket --cluster-id foo --pseudo-path /foobucket
|
||||
|
||||
- cephadm.wait_for_service:
|
||||
service: nfs.foo
|
@ -1670,7 +1670,7 @@ if [ $GANESHA_DAEMON_NUM -gt 0 ]; then
|
||||
if [ "$CEPH_NUM_RGW" -gt 0 ]; then
|
||||
pseudo_path="/rgw"
|
||||
do_rgw_create_bucket
|
||||
prun ceph_adm nfs export create rgw "nfs-bucket" $cluster_id $pseudo_path
|
||||
prun ceph_adm nfs export create rgw --cluster-id $cluster_id --pseudo-path $pseudo_path --bucket "nfs-bucket"
|
||||
echo "Mount using: mount -t nfs -o port=$port $IP:$pseudo_path mountpoint"
|
||||
fi
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user