Skip to contentSkip to conversation

nfs.man: clarify effect of 'retry' option.

PATCH In review NeilBrown 2 participants 2 messages Jun 22, 2016

Subsystems (2)
lore
Share & tools
lore

NeilBrown

author
#0 lore raw

PATCH 1/1 nfs.man: clarify effect of 'retry' option.

The total timeout for a "mount" attempt to an non-responsive server will always be a multiple of time a single mount attempt in the kernel takes, which for TCP defaults to about 4 minutes.
The documentation for the "retry" option seems to suggest that this can be used to set a maximum but it really sets a time after which to stop retrying. The total can be as much as "retry" plus the time for a single attempt.

So clarify the documentation a bit, and also note that retrans defaults are different for UDP and TCP:
#define NFS_DEF_UDP_RETRANS (3)
#define NFS_DEF_TCP_RETRANS (2)

utils/mount/nfs.man +7 -0
index e541cdc95cb1..fab24f898f64 100644
@@ -391,6 +391,13 @@ is 2 minutes, and the default value for background mounts is 10000 minutes
 If a value of zero is specified, the
 .BR mount (8)
 command exits immediately after the first failure.
+.IP
+Note that the total timeout will always be a multiple of the time
+determined by the
+.BR timeo
+and
+.BR retrans
+options, which by default will be 30 minutes.
 .TP 1.5i
 .BI sec= flavors
 A colon-separated list of one or more security flavors to use for accessing
#1 lore raw
Quoted 29 lines · NeilBrown

The total timeout for a "mount" attempt to an non-responsive server will always be a multiple of time a single mount attempt in the kernel takes, which for TCP defaults to about 4 minutes.
The documentation for the "retry" option seems to suggest that this can be used to set a maximum but it really sets a time after which to stop retrying. The total can be as much as "retry" plus the time for a single attempt.

So clarify the documentation a bit, and also note that retrans defaults are different for UDP and TCP:
#define NFS_DEF_UDP_RETRANS (3)
#define NFS_DEF_TCP_RETRANS (2)

utils/mount/nfs.man +0 -0
index e541cdc95cb1..fab24f898f64 100644
@@ -391,6 +391,13 @@ is 2 minutes, and the default value for background mounts is 10000 minutes

If a value of zero is specified, the
.BR mount (8)
command exits immediately after the first failure. +.IP

utils/mount/nfs.man is 2 minutes, and the default value for background mounts is 10000 minutes · line 400

Quoted 6 lines
utils/mount/nfs.man +6 -0
+Note that the total timeout will always be a multiple of the time
+determined by the
+.BR timeo
+and
+.BR retrans
+options, which by default will be 30 minutes.

How do we get to 30 minutes?