Some important nfs mount options in Linux.

  • tcp – Specifies for the NFS mount to use the TCP protocol instead of UDP.
  • rsize=8192 and wsize=8192 – These settings speed up NFS communication for reads (rsize) and writes (wsize) by setting a larger data block size, in bytes, to be transferred at one time. Do performance tests before changing these values.
  • hard or soft – Specifies whether the program using a file via an NFS connection should stop and wait (hard) for the server to come back online if the host serving the exported file system is unavailable, or if it should report an error (soft). If hard is specified, the user cannot terminate the process waiting for the NFS communication to resume unless the intrsoft, is specified, the user can set an additional timeo=<value> option, where <value> specifies the number of seconds to pass before the error is reported. option is also specified.
  • nolock – Disables file locking. This setting is occasionally required when connecting to older NFS servers.
  • noexec – Prevents execution of binaries on mounted file systems. This is useful if the system is mounting a non-Linux file system via NFS containing incompatible binaries.
  • intr – Allows NFS requests to be interrupted if the server goes down or cannot be reached.
  • nfsvers=2 or nfsvers=3 – Specifies which version of the NFS protocol to use.
  • nosuid – Disables set-user-identifier or set-group-identifier bits. This prevents remote users from gaining higher privileges by running a setuid program.

There are many other options. But the above ones are very important.

0 Shares:
Leave a Reply

Your email address will not be published. Required fields are marked *

You May Also Like
Read More

Download using wget

You can use “wget” on Linux machine CLI to download files from http or ftp sites. Proxy configuration…
Read More

Steps to create initrd

Creating initrd using mkinitrd # mkinitrd  -v -f –with=e1000 /tmp/initrd.gz 2.6.9-55 Extracting the initrd image to add contents…
Read More

rsyslogd

Rsyslog is an enhanced multi-threaded syslogd system utility providing support for message logging.  Support of both internet and…