Saturday 3 December 2011

Fedora 16: NFS Server

in /etc/exports, add the path you want to share, and the ip addresss or range you want to give access to, followed by some options

/mnt/raid 192.168.1.0/255.255.255.0(rw,no_subtree_check,async)

rw: read-write access
no_subtree_check: speeds up access by turning off the check that the current folder is a subtree in the same volume
async: speeds up access by turning off synchronous acks

start the requisite services

systemctl start rpcbind.service
systemctl start nfs-server.service
systemctl start nfs-lock.service
systemctl start nfs-idmap.service

enable automatic restart
systemctl enable rpcbind.service
systemctl enable nfs-server.service
systemctl enable nfs-lock.service
systemctl enable nfs-idmap.service

display exported directories
showmount --exports

No comments:

Post a Comment