multiple NFS mounts with bg,retrycount=0
O. Hartmann
ohartman at zedat.fu-berlin.de
Mon May 6 21:58:30 UTC 2013
On Mon, 2013-05-06 at 10:48 -0700, Navdeep Parhar wrote:
> I updated a FreeBSD 9-STABLE system to r250290 and noticed an NFS oddity
> -- fstab entries that specify a retrycnt are mounted multiple times.
>
> I have this in /etc/fstab:
> xxxx:/remote/yyyy /local/zzzz nfs rw,bg,retrycnt=0 0 0
>
> And this in /etc/rc.conf:
> rpcbind_enable="YES"
> nfs_client_enable="YES"
> nfs_server_enable="YES"
> nfsv4_server_enable="YES"
> nfsuserd_flags="-domain XXXXXX"
> rpc_lockd_enable="YES"
> rpc_statd_enable="YES"
>
> If I run mount immediately after the system boots up I don't see
> anything mounted on /local/zzzz. If I wait a minute or so and recheck I
> see two identical mounts on /local/zzzz.
>
> # mount | grep /local
> xxxx:/remote/yyyy on /local/zzzz (nfs)
> xxxx:/remote/yyyy on /local/zzzz (nfs)
>
> It is almost as if the system tried to mount the remote FS, failed, and
> then forked multiple (?) processes to retry the operation, and all of
> them succeed later. Unfortunately, I can't reboot the system for a
> couple of days so I can't go looking for mount_nfs processes right after
> a fresh boot.
>
> Regards,
> Navdeep
I see the very same here on FreeBSD 10.0-CURRENT boxes (two boxes acting
as NFSv4 server). The clients (all FBSD 10, one 9.1-STABLE) have two(!)
identical mounts of the very same filesystem.
/etc/fstab does contain the mount option "bg", but not "retrycnt=0".
This behaviour happens on ALL FBSD 10.0-CURRENT boxes I administer
(10.0-CURRENT #0 r250275: Sun May 5 18:40:17 CEST 2013 amd64).
Regards,
Oliver
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20130506/18801128/attachment.sig>
More information about the freebsd-stable
mailing list