Managing NFS exports

You can reconfigure and delete existing NFS exports.

Prerequisites

To reconfigure an NFS export

Admin panel

  1. Go to the Storage services > NFS > Shares tab, and then click the name of the desired share. This will open the share screen.
  2. Select an export, and then click Edit on the right pane.
  3. In the Edit export window, change the access or root squashing settings, and then click Save.

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, or ro)
--security-types <security-types>
Types of NFS export security (none, sys, krb5, krb5i, or krb5p)
--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, or none)
--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

  1. Go to the Storage services > NFS > Shares tab, and then click the name of the desired share. This will open the share screen.
  2. Select an export, and then click Delete on the right pane.
  3. Click Delete 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