NFS

From wiki.techunit.org
Jump to: navigation, search

Serveur

Configuration

  • Install nfs-kernel-server
  • Edit /etc/exports
/srv/share      10.0.0.0/24(rw,sync,no_subtree_check) 192.168.94.0/24(rw,sync,no_subtree_check)
/srv/backup     *.admin.example.com(rw,sync,no_subtree_check,no_root_squash) *.servers.example.com(rw,sync,no_subtree_check,no_root_squash)
  • Restart service
/etc/init.d/nfs-kernel-server restart

Client

Configuration

Mount NFS CLI

mkdir /mnt/mountpoint
mount -t nfs <server>:/srv/share /mnt/mountpoint

Make persistent

  • Edit /etc/fstab, add this line
<server>:/srv/share /mnt/mountpoint nfs rsize=8192,wsize=8192,timeo=14,intr

Elliot
techUnit's cofounder