Monday, September 30, 2013

Linux Simple NFS Sharing (Redhat/Centos/etc..)

This procedures for  simple nfs sharing

Server Side : (192.168.0.1)

1) Install nfs package (nfs,nfs utils,rpcbind are packages are required )
    #yum install nfs*

2) Export nfs sharing folders
    #vi /etc/exports
 
  eg : /nfs folder export to all network with read and write access
               # cat  /etc/exports
                      /nfs *(rw)
3)start the nfs services (nfs using rpcbind port number 2049)

#service rpcbind start
#service nfs start
#chkconfig rpcbind on
#chkconfig nfs on

4)exporting the  shares

   #exportfs -av
 
5)verifying  exports

  #showmount -e localhost
 
Client Side : (192.168.0.2)
  mounting NFS sharing  to local machine 
 
1)create mount directory
   #mkdir /nfs
 
2)installing nfs packages

   #yum install nfs*
 
3)staring the nfs service (first we need to start rpcbind as nfs using rpcbind port number 2049)

   #service rpcbind start
   #service nfs start
   #chkconfig rpcbind on
   #chkconfig nfs on

4)mounting nfs share

  #mount -t nfs 192.168.0.1:/nfs  /nfs

5)check the mount points

  #mount  
  

No comments:

Post a Comment