Saturday, October 30, 2021

Oracle Linux 7 -- Configure NFS mount points


You need to setup and configure NFS mount points for an Oracle ASM installation or other use by an Oracle Database

This applies only to a lab or development environment and is not intended for production use.


1. Install nfs-utils package:

# yum install nfs-utils

2. Edit the /etc/exports file to define the directories that the server will make available for clients to mount in the format:

<path> <client>[(<params>)]

For example:


In case of any modifications to the /etc/exportfs file after NFS server is started, use the below command to re-export the file systems:

# exportfs -r

3. Start the NFS server and enable to start automatically on reboot:

# systemctl start nfs-server
# systemctl enable nfs-server

4. Verify the exported file systems:

# showmount -e

5. On the client, install nfs-utils package, and edit the /etc/fstab file to add an entry to mount the exported file system:

<host>:<export_path>      <local_path>      nfs      rw,fg,hard,rsize=32768,wsize=32768,timeo=600,retry=0,tcp,actimeo=0  0 0

Mount the file system:

# mount <local_path>

No comments: