User Tools

Site Tools


nfs_server_and_client_configuration

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

nfs_server_and_client_configuration [2011/09/26 14:06]
root created
nfs_server_and_client_configuration [2012/01/10 15:10] (current)
root [NFS client]
Line 25: Line 25:
 Export NFS shares Export NFS shares
  
-  exportfs+  exportfs ​-a
  
 Check NFS procs. Check NFS procs.
    
-  ​rpcinfo -p+ rpcinfo -p
   ​   ​
 ===== NFS client ===== ===== NFS client =====
Line 40: Line 40:
   chkconfig nfslock on    chkconfig nfslock on 
   chkconfig rpcbind on   chkconfig rpcbind on
 +  chkconfig netfs on
  
 Start services: Start services:
   service nfslock start   service nfslock start
   service rpcbind start   service rpcbind start
 +  service netfs start
  
 Check share: Check share:
Line 55: Line 57:
   mount <​nfsserver>:/<​sharename>​ /<​localmountpoint>​   mount <​nfsserver>:/<​sharename>​ /<​localmountpoint>​
   ​   ​
-===== NFS client ​behind a firewall =====+===== NFS server ​behind a firewall ===== 
 + 
 +Edit /​etc/​sysconfig/​nfs 
 + 
 +Specify: 
 +  MOUNTD_PORT=<​fixedport0>​ 
 +  STATD_PORT=<​fixedport1>​ 
 +  LOCKD_TCPPORT=<​fixedport2>​ 
 +  LOCKD_UDPPORT=<​fixedport3>​ 
 + 
 +Restart NFS service: 
 +  service nfs restart 
 + 
 +Verify the fixed ports are in use: 
 +  rpcinfo -p  
 +   
 +Open up FW for following ports: 
 + 
 +    Allow TCP and UDP port 2049 for NFS. 
 +    Allow TCP and UDP port 111 (rpcbind/​sunrpc). 
 +    Allow the TCP and UDP port specified in <​fixedport0>​ 
 +    Allow the TCP and UDP port specified in <​fixedport1>​ 
 +    Allow the TCP port specified in <​fixedport2>​ 
 +    Allow the UDP port specified in <​fixedport3>​
  
 References: References:
nfs_server_and_client_configuration.1317046013.txt.gz · Last modified: 2011/09/26 14:06 by root