NFS Sharing

From Server Side:

1- check if NFS server is installed and running:

Check package availability:

# rpm -qa | grep nfs

If no output, then install the package:

# yum install nfs-utils nfs4-acl-tools

Verify service status:

# service nfs status

rpc.mountd (pid 9382) is running…
nfsd (pid 9379 9378 9377 9376 9375 9374 9373 9372) is running…
rpc.rquotad (pid 9308) is running…

if no output, then start the service:

# service nfs start

2- Configuration files:

Main Config file:

/etc/exports                     Contain list of resource will be exported to clients.

Additonal Files:

/etc/sysconfig/nfs         Contain the main config for NFS Service.

/var/lib/nfs/etab           List of currently exported reources.

/var/lib/nfs/rmtab        List of remotely mounted resources.

Adding locations and permission to /etc/exports:

file syntax  <mountpoint> <host><permissions/options>

exmaple :

#vi /etc/exports

/home/sharefolder    *(rw,sync)        note: there in no space between host and permissions.

* :mean allow all host to mount this resource.

rw  :set read/write permissions to folder.

sync :All changes must be written to disk.


3- Reexports all directory:

#exportfs -arv


# service nfs restart


From Client Side:

4- check rpcbind service is up and running.

5- create local directory :

# mkdir /home/shared_from_remote_server

6- mount NFS share:

Check available shared on remote server:

# showmount -e
Export list for
/home/sharefolder    *

Mount the sharefolder NFS share:

# mount -t nfs    /home/shared_from_remote_server

7- add entry to /etc/fstab to have them mounted automatically at system boot

# vi /etc/fstab      /home/shared_from_remote_server   nfs       rw,sync    0  0

To verify correct added line to /etc/fstab:

#umount  /home/shared_from_remote_server

# mount -a

if no error message appear its mean your syntax is correct.

8- Verify that the resources was mounted properly :

# mount | grep nfs
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) on /home/shared_from_remote_server type nfs (rw,addr=

9-  enable nfs service at boot time:

# chkconfig nfs on



#mount -t nfs -o rw,bg,hard,nointr,tcp,vers=3,timeo=600,rsize=32768,wsize=32768,actimeo=0 /u02

Use this option if you were cloning Oracle Products to nfs share folder.

#mount -t nfs /terdb2

#mount -t nfs /terdb1



#mount -t nfs -o rw,bg,hard,nointr,tcp,vers=3,timeo=600,rsize=32768,wsize=32768,actimeo=0 /rman


 #mount on /terdb1 type nfs (rw,addr= on /terdb2 type nfs (rw,addr=


Leave a Reply

Your email address will not be published. Required fields are marked *

8 + 8 =