Linux NFS Configuration: Difference between revisions
Line 5: | Line 5: | ||
=Export Options= | =Export Options= | ||
The following export options are used in | The following export options are used in <tt>[[/etc/exports]]</tt>: | ||
==<tt>rw</tt>== | ==<tt>rw</tt>== |
Revision as of 08:57, 21 August 2016
Internal
Export Options
The following export options are used in /etc/exports:
rw
This option allows both read and write.
sync
The requests to the exported directory are confirmed only after the changes are committed.
no_subtree_check
This option prevents the subtree checking. When a shared directory is the subdirectory of a larger filesystem, nfs performs scans of every directory above it, in order to verify its permissions and details. Disabling the subtree check may increase the reliability of NFS, but reduce security.
no_root_squash
This phrase allows root to connect to the designated directory.
Mount Options
dirsync
All directory updates within the filesystem should be done synchronously. This affects the following system calls: creat, link, unlink, symlink, mkdir, rmdir, mknod and rename.
nolock
_netdev, bg
_netdev prevents the mount before the network is up. bg is background so it will proceed with boot if nfs server not available, it will keep trying in background until available.