On each node, the file
/opt/mapr/conf/exports lists the clusters and mount points available to mount with NFS.
Access control for hosts
Specify access control for hosts with a space-separated list of hosts, appending (
rw) for read-write or
(ro) for read-only access after each host. To specify a default access for all hosts not otherwise specified, add
(ro) after a space at the end of a line. The
exports file follows the same semantics as a standard UNIX exports table. The following export options are supported:
|ro||Provides read-only access.|
|rw||Provides read-write access.|
Squashes root privileges for remote users.
For example, you can use:
This entry prevents the
|no_root_squash||Turns off root squashing for remote users.|
|all_squash||Squashes every remote user, including root.|
|anonuid, anongid||Specifies user and group IDs to use with remote users from a particular host.|
Restricting clusters to specific hosts
To restrict access to a specific export path to particular hosts, use the following format:
For example, the line
/mapr/cluster1 host01(rw) host02(ro) restricts read-write access to the cluster in
/mapr/cluster1 to host
host01, and restricts read-only access to host
host02. No other hosts have access.
After making changes to this file, you do not have to restart the NFS server. You can run a maprcli command to refresh the exports definition without a restart. See nfsmgmt refresh exports.
Enabling Central Configuration
To enable Central Configuration for
exports, specify a value for the
AutoRefreshExportsTimeInterval parameter in the
/opt/mapr/conf/nfsserver.conf file. The value of the
AutoRefreshExportsTimeInterval parameter determines the number of minutes after which the NFS server refreshes the
exports file. The default value of 0 disables central configuration for NFS exports.