• To export from Solaris: add line to /etc/dfs/dfstab
    • eg. share -F nfs -o,log=global -d "EDSUN CDLR" /disks/gkulm1/cdlr
  • To mount on linux
    • eg. mount /disks/users/cdlr/moodle_archives

linux servers

On nfs server

Add this line to /etc/exports file.


Add these lines in /etc/sysconfig/iptables file. (portmap uses tcp 111 and udp 111. nfsd uses tcp 2049.) This is not a full protection, but easy to configure.

-A RH-Firewall-1-INPUT -s -p tcp -m multiport --dports 111,2049 -m tcp --tcp-flags SYN,RST,ACK SYN -j ACCEPT 
-A RH-Firewall-1-INPUT -s -p udp -m multiport --dports 111 -j ACCEPT 

Add this line in /etc/hosts.allow file.


Restart services.

service iptables restart
service portmap restart
service nfs restart
service rpcsvcgssd restart

chkconfig nfs on (one time)

chkconfig nfs on
chkconfig nfs --list

On nfs client

Add to fstab

/etc/fstab /disks/nfs/dbweb-data nfs noauto,rw,bg,soft 0 0

(notuto means you have to remount it in case there was a server reboot.)

Turn on / restart nfs server

chkconfig nfs on (one time)

 /etc/init.d/nfs restart

mount and see if there's a problem.

 mount -vvv /disks/nfs/dbweb-data