Differenze

Queste sono le differenze tra la revisione selezionata e la versione attuale della pagina.

Link a questa pagina di confronto

Prossima revisione
Revisione precedente
vlsi:workbook:computing:unix:sysadmin:nfs [20/01/2014 14:53]
pacher creata
vlsi:workbook:computing:unix:sysadmin:nfs [06/06/2014 12:39] (versione attuale)
pacher
Linea 2: Linea 2:
 ====== NFS setup and references ====== ====== NFS setup and references ======
  
-__[[vlsi:​workbook:​computing:​unix:​sysadmin|Back]]__ ​+__[[vlsi:​workbook:​computing:​unix:​sysadmin|Back]]__ ​]
  
  
Linea 21: Linea 21:
 ====== /tmp ====== ====== /tmp ======
  
-[[http://​www.tldp.org/​HOWTO/​NFS-HOWTO/​server.html]]+[[http://​www.tldp.org/​HOWTO/​NFS-HOWTO/​server.html]]   \\ 
 +[[http://​www.unixmen.com/​nfs-server-installation-and-configuration-in-centos-6-3-rhel-6-3-and-scientific-linux-6-3/​]]
  
  
-Server ​configuration files:+ 
 +Start NFS services: 
 + 
 +<​code>​ 
 +# service rpcbind start 
 +# chkconfig rpcbind on 
 +# service nfs start 
 +# chkconfig nfs on 
 +</​code>​ 
 + 
 + 
 + 
 +Edit server ​configuration files:
  
    * ''/​etc/​exports''​    * ''/​etc/​exports''​
Linea 34: Linea 47:
  
  
 +   * ''/​etc/​hosts.allow''​ (optional)
 +   * ''/​etc/​hosts.deny''​ (optional)
 +
 +
 +
 +Restart NFS:
 +
 +<​code>​
 +# service nfs restart
 +</​code>​
 +
 +
 +
 +====== Fixing firewall errors ======
 +
 +Connection timeout error means that **the firewall is blocking NFS on the server machine**.
 +
 +
 +
 +Edit ''/​etc/​sysconfig/​iptables'' ​
 +
 +<​code>​
 +-A INPUT -m state --state NEW -m tcp -p tcp --dport 2049 -j ACCEPT  ​
 +-A INPUT -m state --state NEW -m tcp -p tcp --dport 111 -j ACCEPT ​
 +-A INPUT -m state --state NEW -m tcp -p tcp --dport 32803 -j ACCEPT ​
 +-A INPUT -m state --state NEW -m tcp -p tcp --dport 892 -j ACCEPT  ​
 +-A INPUT -m state --state NEW -m tcp -p tcp --dport 875 -j ACCEPT ​
 +-A INPUT -m state --state NEW -m tcp -p tcp --dport 662 -j ACCEPT ​
 +</​code>​
 +
 +then restart iptables service,
 +
 +<​code>​
 +# service iptables restart
 +</​code>​
  
 ====== ====== ====== ======