Verify if NFS is enabled:
At the restorer Command-Line Interface (CLI) enter the command "nfs enable":
# nfs enable
Verify that the correct mount options are set on the Data Domain system:
# nfs show clients path client options ------- ---------------------- ---------------------------------------- /backup * (rw,no_root_squash,no_all_squash,secure) /ddvar * (rw,no_root_squash,no_all_squash,secure) ------- ---------------------- ----------------------------------------
Enabling access to NFS on the Data Domain Restorer:
Add NFS clients that can access the Data Domain system. Use a comma- or space-separated (or both) list for multiple clients. A client can be a fully-qualified domain hostname, class-C IP addresses, IP addresses with either netmasks or length, or an asterisk (*) wildcard with a domain name, such as *.yourcompany.com. An asterisk (*) by itself means no restrictions. A client added to a sub-directory under /backup has access only to that sub-directory.
The <nfs-options> are a comma-separated or space-separated (or both) list bounded by parentheses. With no options specified, the default options are rw, root_squash, no_all_squash, and secure. The following options are allowed:
ro |
Read only permission. |
rw |
Read and write permissions. |
root_squash |
Map requests from uid/gid 0 to the anonymous uid/gid. |
no_root_squash |
Turn off root squashing. |
all_squash |
Map all user requests to the anonymous uid/gid. |
no_all_squash |
Turn off the mapping of all user requests to the anonymous uid/gid. |
secure |
Require that all requests originate on an Internet port that is less than IPPORT_RESERVED (1024). |
insecure |
Turns off the secure option. |
anonuid=id |
Set an explicit uid for the anonymous account. The id is an integer bounded from -65635 to 65635. |
anongid=id |
Set an explicit gid for the anonymous account. The id is an integer bounded from -65635 to 65635. |
nolock |
Do not use file locking. |
llock |
Requests that files lock locally at the NFS client. NFS network file locking requests are not sent to the NFS server if the llock option is used. |
Example:
# nfs add /backup 192.168.29.30/24 (rw,no_root_squash,no_all_squash,secure)
Export for specific user
CLI Commands - user show detailed - nfs add export-path <client-IP> (rw,root_squash, all_squash, anonuid=user-ID, anongid=group-ID) - nfs export modify export-path clients <client-IP> options rw,root_squash, all_squash, anonuid=user-ID, anongid=group-ID
The following steps detail the requirements for configuring an NFS client. The examples demonstrate configuration on a Linux host. See the clients operating-specific documentation for additional information.
# /sbin/service nfs status rpc.mountd is stopped nfsd is stopped rpc.rquotad is stopped Currently NFS service is NOT enabled.
# /sbin/service nfs start Starting NFS services: [ OK ] Starting NFS quotas: [ OK ] Starting NFS daemon: [ OK ] Starting NFS mountd: [ OK ]
#/sbin/service nfs status rpc.mountd (pid 7748) is running... nfsd (pid 7746 7745 7744 7743 7742 7741 7740 7739) is running... rpc.rquotad (pid 7723) is running...
The following procedure provides an example of configuring Linux and Solaris clients to mount NFS shares from the Data Domain system. The procedure is similar for other operating systems; although the specific commands may differ for each step. See the client Operating Systems documentation for specifics.
Examples
Linux:
# mkdir /ddr # cd /ddr # mkdir backup # mkdir ddvar # mount -t nfs -o hard,intr,nolock,nfsvers=3,tcp,rsize=1048600,wsize=1048600,bg HOSTNAME:/backup /ddr/backup # mount -t nfs -o hard,intr,nolock,nfsvers=3,tcp,rsize=1048600,wsize=1048600,bg HOSTNAME:/ddvar /ddr/ddvar # ls /ddr/backup
Where "HOSTNAME" is the hostname or IP address of your Data Domain system.
Solaris:
# mkdir /ddr # cd /ddr # mkdir backup # mkdir ddvar # mount -F nfs -o hard,intr,llock,vers=3,proto=tcp,rsize=1048600,wsize=1048600 HOSTNAME:/backup /ddr/backup # mount -F nfs -o hard,intr,llock,vers=3,proto=tcp,rsize=1048600,wsize=1048600 HOSTNAME:/ddvar /ddr/ddvar # ls /ddr/backup
Where "HOSTNAME" is the hostname or IP address of your Data Domain system.
AIX:
dir /ddr # cd /ddr # mkdir backup # mkdir ddvar # mount -V nfs o intr,hard,llock,rsize=65536,wsize=65536,vers=3,proto=tcp,combehind,timeo=600,retrans=2 -p HOSTNAME:/backup /ddr # mount -V nfs o intr,hard,llock,rsize=65536,wsize=65536,vers=3,proto=tcp,combehind,timeo=600,retrans=2 -p HOSTNAME:/ddvar /ddr # ls /ddr/backup
Where "HOSTNAME" is the hostname or IP address of your Data Domain system.
Example of how to mount a mtree on a nfs client.
# mount -t nfs -o hard,intr,nolock,nfsvers=3,tcp,rsize=1048600,wsize=1048600,bg HOSTNAME:/data/col1/mtree1 /ddr/mtree1