Which mount options are used with NFS "defaults"?

From Brandonhutchinson.com

(Difference between revisions)
Jump to: navigation, search
(New page: You've mounted an NFS volume using the mount options of "defaults". Which mount options were used? e.g., ''/etc/fstab'' entry: NFS_server:volume /mount_point nfs '''defaults''' 0 0 To l...)
Line 3: Line 3:
NFS_server:volume /mount_point nfs '''defaults''' 0 0
NFS_server:volume /mount_point nfs '''defaults''' 0 0
-
To list the mount options used for the NFS volume, run '''nfsstat -m'''
+
To list the mount options used for the NFS volume, run '''nfsstat -m''':
# '''nfsstat -m'''
# '''nfsstat -m'''
Line 9: Line 9:
Flags: '''rw,vers=3,rsize=65536,wsize=65536,hard,proto=tcp,timeo=600,retrans=2,sec=sys,addr=NFS_server'''
Flags: '''rw,vers=3,rsize=65536,wsize=65536,hard,proto=tcp,timeo=600,retrans=2,sec=sys,addr=NFS_server'''
-
Let's say I want to use the options above, but want to use '''intr''' in order to be able to interrupt the hard-mounted file system. To do so, either of the following will work:
+
Let's say I want to use the options above, but want to use '''intr''' in order to be able to interrupt operations on the hard-mounted file system. To do so, either of the following will work:
NFS_server:volume /mount_point nfs '''intr''' 0 0
NFS_server:volume /mount_point nfs '''intr''' 0 0

Revision as of 16:16, 10 April 2009

You've mounted an NFS volume using the mount options of "defaults". Which mount options were used? e.g., /etc/fstab entry:

NFS_server:volume /mount_point nfs defaults 0 0

To list the mount options used for the NFS volume, run nfsstat -m:

# nfsstat -m
/mount_point from NFS_server:volume
Flags:	rw,vers=3,rsize=65536,wsize=65536,hard,proto=tcp,timeo=600,retrans=2,sec=sys,addr=NFS_server

Let's say I want to use the options above, but want to use intr in order to be able to interrupt operations on the hard-mounted file system. To do so, either of the following will work:

NFS_server:volume /mount_point nfs intr 0 0
NFS_server:volume /mount_point nfs defaults,intr 0 0

I personally prefer the latter, as it is obvious that the "defaults" are used, with the non-default option "intr" added.

Personal tools