Managing NFS exports
You can reconfigure and delete existing NFS exports.
Prerequisites
- NFS exports are created, as described in Creating NFS exports.
To reconfigure an NFS export
Admin panel
- Go to the Storage services > NFS > Shares tab, and then click the number in the Exports column in the row of the desired share. This will open the share screen.
- Select an export, and then click Configure.
- On the Configure export pane, change the access or advanced settings, and then click Done.
Command-line interface
Use the following command:
vinfra service nfs export set [--path <path>] [--access-type <access-type>] [--security-types <security-types>] [--client <address=ip_addresses:access=access_type:security=security_types>] [--squash <squash>] [--anonymous-gid <anonymous-gid>] [--anonymous-uid <anonymous-uid>] <share-name> <export-name>
--path <path>
- Path to the NFS export
--access-type <access-type>
- Type of access to the NFS export (
none
,rw
, orro
) --security-types <security-types>
- Types of NFS export security (
none
,sys
,krb5
,krb5i
, orkrb5p
) --client <address=ip_addresses:access=access_type:security=security_types>
- Client access list of the NFS export
--squash <squash>
- NFS export squash (
root_squash
,root_id_squash
,all_squash
, ornone
) --anonymous-gid <anonymous-gid>
- Anonymous GID of the NFS export
--anonymous-uid <anonymous-uid>
- Anonymous UID of the NFS export
<share-name>
- NFS share name
<export-name>
- NFS export name
For example, to change the access type of the export export1
from the share share1
to read-only, run:
# vinfra service nfs export set share1 export1 --access-type ro
To delete an NFS export
Admin panel
- Go to the Storage services > NFS > Shares tab, and then click the number in the Exports column in the row of the desired share. This will open the share screen.
- Select an export, and then click Remove.
- Click Yes in the confirmation window.
Command-line interface
Use the following command:
vinfra service nfs export delete <share-name> <export-name>
<share-name>
- NFS share name
<export-name>
- NFS export name
For example, to delete the export export1
from the share share1
, run:
# vinfra service nfs export delete share1 export1