Mounting the NFS Server to the RSS
This section describes mounting the NFS server to the RSS.
Set Up the Server
The following is an example of a server setup. Depending on your
needs, your configuration may differ slightly. For more information, contact
your Oracle representative. For information on configuring Oracle Linux, see
Oracle Linux
Administrator's Guide.
yum install nfs-utils yum install lsof Note: Ensure a writeable folder exists to share. vi /etc/exports <local>/<folder> 10.138.217.0/24(rw,no_root_squash) - no_root_squash allows root user to write without it getting converted to nfsnobody user/group systemctl start nfs-server systemctl enable nfs-server vi /etc/idmapd.conf Domain = <domain> firewall-cmd --zone=public --add-service=nfs firewall-cmd --permanent --zone=public --add-service=nfs vi /etc/sysconfig/nfs # Port rpc.statd should listen on. STATD_PORT=662 # Port rpc.mountd should listen on. MOUNTD_PORT=892 vi /etc/sysctl.conf fs.nfs.nlm_tcpport = 32803 fs.nfs.nlm_udpport = 32769 check no return for: lsof -i tcp:32803 lsof -i udp:32769 lsof -i :892 lsof -i :662 systemctl reboot systemctl restart firewalld firewall-cmd --zone=public --add-port=2049/tcp --add-port=2049/udp --add-port=111/tcp --add-port=111/udp --add-port=32803/tcp --add-port=32769/udp --add-port=892/tcp --add-port=892/udp --add-port=662/tcp --add-port=662/udp firewall-cmd --permanent --zone=public --add-port=2049/tcp --add-port=2049/udp --add-port=111/tcp --add-port=111/udp --add-port=32803/tcp --add-port=32769/udp --add-port=892/tcp --add-port=892/udp --add-port=662/tcp --add-port=662/udp 16 .Verify the share is available (can be done from localhost, better to do from a non-RSS remote host): $ showmount -e <nas_ip> Export list for <client_ip>: /home/nfs_share <client_ip>/<prefix>,<e.g.10.10.248.102/24>
Set Up the RSS as the Client
This section describes configuring the RSS as the client. For
information on configuring Oracle Linux, see
Oracle Linux
Administrator's Guide.
- Execute the yum install nfs-utils command.
- Ensure the local folder,
/opt/isr/ArchivedRecordings
, exists and mount the directory using the following command:mount -t nfs -o rw,nosuid <NFS Server IP>:/home/shareDir /opt/isr/ArchivedRecordings
- Execute the
ls -ltr command to ensure the directory is
mounted properly. The following is a successful example output.
drwxrwxrwx. 4 isr isr 83 Dec 2 00:51 ArchivedRecordings
- Ensure the directory is a
part of an ISR group.
chown isr:isr /opt/isr/ArchivedRecordings
The ISR is now able to read and write files.
Troubleshooting the RSS on Oracle Linux
- Unable to "showmount" when
you execute the following command:
$ showmount 11.145.333.05 clnt_create: RPC: Port mapper failure - Unable to receive: errno 113 (No route to host)
This indicates a problem with the firewalld configuration. - Unable to write to share.
$ touch tmpshare/foo.txt touch: cannot touch `tmpshare/foo.txt': Permission denied
This indicates an issue with the permissions. Change the mode and ownership of the share on the NFS server with the commands chmod and chown.