Description
...
Usage
exportfs -v # shows exported file systems
mount -t nfs4 <nfs-server>:/homes /home # mount nfs4 file system /homes from <nfs-server> to /home on current system ...
Configuration
...
Server
aptitude install nfs-kernel-server
portmap
debconf
- Should portmap be bound to the loopback address? yes
mkdir -m 1777 /nfs4 mkdir -m 1777 /nfs4/home mkdir -m 1777 /nfs4/services mkdir -m 1777 /nfs4/opt
/etc/default/nfs-common
-NEED_IDMAPD= +NEED_IDMAPD=yes
/etc/fstab
+/home /nfs4/home none bind 0 0 +/srv /nfs4/services none bind 0 0 +/opt /nfs4/opt none bind 0 0
/etc/exports
+/nfs4 134.96.186.0/24(rw,fsid=0,secure,no_subtree_check,sync) +/nfs4/home 134.96.186.0/24(rw,nohide,secure,no_subtree_check,sync,no_root_squash) +/nfs4/services 134.96.186.0/24(rw,nohide,secure,no_subtree_check,sync,no_root_squash) +/nfs4/opt 134.96.186.0/24(rw,nohide,secure,no_subtree_check,sync,no_root_squash)
mount -a /etc/init.d/nfs-kernel-server restart /etc/init.d/nfs-common restart
Client
aptitude install nfs-common
portmap
debconf
- Should portmap be bound to the loopback address? yes
/etc/default/nfs-common
-NEED_IDMAPD= +NEED_IDMAPD=yes
/etc/init.d/nfs-common restart
/etc/fstab
+ nfs.ps.uni-saarland.de:/home /home nfs4 rw,_netdev,auto,wsize=8192,rsize=8192 0 0
mount -a