This blog has moved! Redirecting...
You should be automatically redirected. If not, visit http://scrolls.mafgani.net/ and update your bookmarks.

Tuesday, February 27, 2007

Linux NFSv4 Howto

NFS is commonly used to share files on Linux. NFSv4 is the latest protocol and circumvents firewall related complications experienced with NFSv3 by requiring only ONE fixed tcp port open on the server side. It is surprisingly easy to set up:

Server side:

  1. Edit /etc/exports and add directories to be exported (fsid=0 is a mandatory option for nfs4) and authorized clients (check the exports manpage)

  2. Open up tcp port 2049 on the firewall

  3. # /etc/init.d/nfs restart

  4. # chkconfig --level 345 nfs on



Client side:

  1. # mount -t nfs4 -o rw,intr,hard server:/ /mount/point



It is not necessary to specify the exact path on the "server:/" with NFSv4.

Useful sites:

Learning NFSv4 with Fedora Core 2
RHEL4 NFS manual
Linux NFS-HOWTO

0 Comments:

Post a Comment

<< Home