Linux NFS Configuration: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 22: Line 22:


=Mount Options=
=Mount Options=
==<tt>dirsync</tt>==
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.
==<tt>nolock</tt>==
|[Rpc.statd#HandlingNFSLockingInAbsenceOfRpc.statd]
==<tt>_netdev, bg</tt>==
<tt>_netdev</tt> prevents the mount before the network is up. <tt>bg</tt> is background so it will proceed with boot if nfs server not available, it will keep trying in  background until available.

Revision as of 06:48, 21 August 2016

Internal

Export Options

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

|[Rpc.statd#HandlingNFSLockingInAbsenceOfRpc.statd]

_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.