Differenze
Queste sono le differenze tra la revisione selezionata e la versione attuale della pagina.
Entrambe le parti precedenti la revisione Revisione precedente Prossima revisione | Revisione precedente Ultima revisione Entrambe le parti successive la revisione | ||
vlsi:workbook:computing:unix:sysadmin:nfs [20/01/2014 14:57] pacher |
vlsi:workbook:computing:unix:sysadmin:nfs [20/01/2014 15:08] pacher |
||
---|---|---|---|
Linea 24: | Linea 24: | ||
[[http://www.unixmen.com/nfs-server-installation-and-configuration-in-centos-6-3-rhel-6-3-and-scientific-linux-6-3/]] | [[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 38: | Linea 51: | ||
+ | |||
+ | 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> | ||
====== ====== | ====== ====== |