NFS

Instructions

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

linux servers

On nfs server

Add this line to /etc/exports file.

/disks/www/data/ 	dbhost.cehd.tamu.edu(rw,sync,no_root_squash)

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 128.194.246.151 -p tcp -m multiport --dports 111,2049 -m tcp --tcp-flags SYN,RST,ACK SYN -j ACCEPT 
-A RH-Firewall-1-INPUT -s 128.194.246.151 -p udp -m multiport --dports 111 -j ACCEPT 

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

portmap:128.194.246.151

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

 165.91.232.44:/disks/www/data /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
Taxonomy: