From owner-freebsd-stable@FreeBSD.ORG Mon May 6 21:58:30 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 474B93AE for ; Mon, 6 May 2013 21:58:30 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) by mx1.freebsd.org (Postfix) with ESMTP id 0CCC9A1A for ; Mon, 6 May 2013 21:58:29 +0000 (UTC) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost1.zedat.fu-berlin.de (Exim 4.80.1) with esmtp (envelope-from ) id <1UZTQT-002pmE-0X>; Mon, 06 May 2013 23:58:29 +0200 Received: from f052014224.adsl.alicedsl.de ([78.52.14.224] helo=[192.168.0.128]) by inpost2.zedat.fu-berlin.de (Exim 4.80.1) with esmtpsa (envelope-from ) id <1UZTQS-002voA-S8>; Mon, 06 May 2013 23:58:28 +0200 Subject: Re: multiple NFS mounts with bg,retrycount=0 From: "O. Hartmann" To: Navdeep Parhar In-Reply-To: <5187ECE6.2030205@gmail.com> References: <5187ECE6.2030205@gmail.com> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-SU8coZc9EdGw++XBD2KQ" Date: Mon, 06 May 2013 23:58:28 +0200 Message-ID: <1367877508.2552.12.camel@thor.walstatt.dyndns.org> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port X-Originating-IP: 78.52.14.224 Cc: freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 May 2013 21:58:30 -0000 --=-SU8coZc9EdGw++XBD2KQ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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. >=20 > I have this in /etc/fstab: > xxxx:/remote/yyyy /local/zzzz nfs rw,bg,retrycnt=3D0 0 0 >=20 > And this in /etc/rc.conf: > rpcbind_enable=3D"YES" > nfs_client_enable=3D"YES" > nfs_server_enable=3D"YES" > nfsv4_server_enable=3D"YES" > nfsuserd_flags=3D"-domain XXXXXX" > rpc_lockd_enable=3D"YES" > rpc_statd_enable=3D"YES" >=20 > 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. >=20 > # mount | grep /local > xxxx:/remote/yyyy on /local/zzzz (nfs) > xxxx:/remote/yyyy on /local/zzzz (nfs) >=20 > 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. >=20 > 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=3D0". 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 --=-SU8coZc9EdGw++XBD2KQ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.13 (FreeBSD) iQEcBAABAgAGBQJRiCd/AAoJEOgBcD7A/5N8Fw4H/1KAm5Mfc1VUzmCQdvbKychW 6ErqU8gjL67YTGVheCJXC/6pCyQ3eKSzzoXclQIMgysqwdNMNbC5K7Ad/bvgM0Mt +WLhd1WMSKIKr6/KRFwRU8Kc1c+blEZffdMi7eq0lQtKmHrgyKLX7uklGROUylui TSGmv6/5mxcthIGQBdehptpuVeswJAr6piTzNUZGyVU68JKM58WZflRzwOTyN0pP hFfrY1xOlZxGoPGJ4AFX9lZLWY/VU/lcsfA/h6g/m+DSk9h58PgOcQ0dDdvp7diz Sh10kA60vOIdD+7m3k5Hp0B+8bY5778tXCrNKf2nU7lIo8JzAsPLjkczRlkLN68= =164N -----END PGP SIGNATURE----- --=-SU8coZc9EdGw++XBD2KQ--