-------------------------------------------
On all machines:
sudo apt-get install portmap nfs-common nfs-kernel-server
----------------
On the exporting machine(s):
Edit /etc/exports. Specify local folders to export. Eg.
/home/mymachine/data/d4 192.168.1.1/24(rw,async) 213.334.248.237(rw,async)
opens the directories to all local machines, and the address 213.334 etc.
After change:
sudo /etc/init.d/nfs-kernel-server restart
----------------
On the mounting machines: On the fly:
sudo mount server.mydomain.com:/files /files
Possible restart required:
sudo /etc/init.d/portmap restart
sudo /etc/init.d/nfs-common restart
---------------On the mounting machines: With fstab:
Add lines:
server.mydomain.com:/files /files nfs rsize=8192,wsize=8192,timeo=14,intr
---------------
Firewall ports:
Open 32771, 111 and 2049
No comments:
Post a Comment