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.

Leave a Reply

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

You May Also Like
Read More

Linux performance tuning – vm.swappiness

vm.swappiness takes a value between 0 and 100 to change the balance between swapping applications and freeing cache. At 100, the kernel will always prefer to find inactive pages and swap them out
Read More

Some Netapp terms..

Snapshot – is a technology that helps to create point-in-time copies of file systems, which you can use…