From owner-freebsd-current@FreeBSD.ORG Fri Apr 12 13:10:42 2013 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 058BCAE9 for ; Fri, 12 Apr 2013 13:10:42 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: from mail-wi0-x235.google.com (mail-wi0-x235.google.com [IPv6:2a00:1450:400c:c05::235]) by mx1.freebsd.org (Postfix) with ESMTP id 90DDD75A for ; Fri, 12 Apr 2013 13:10:41 +0000 (UTC) Received: by mail-wi0-f181.google.com with SMTP id hj8so1564433wib.8 for ; Fri, 12 Apr 2013 06:10:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=84HW36fmk3JzJ1JZ5QCJ9GH0xJ7nBzU0c6pcXhz4Hp4=; b=aMeK1YtlKjyKyW+FUMx8dEjKAUKHGrnp0LKpDfuY0ls3GSSqYC9FgtIcFteT+3v9a/ echPpZBQdSRv5Q1revUcLDUjhE82RY1obHm9zEK9u8lpc8rnE1+aYqH6Oo2nVo6U225y Z12QSNtV+jk9Rd30nUVG7Z9Yxb8ktFpBWOSZfJyO/SG+iMXI8oCYz0xv4sM1amEDq/1u gJRqMq1ywDiu6Ff/fasdODodFmVyP7AcIrCG5p47jS6RqnOnK/kw349A+RCiZjSp3HGV JpbdxM+PSO3fLKMRlPxrqQ+qsbyWlEnuF4E5k9cq9VPt+nrNsWl4FHM7AENw3yvEnOnM rlqA== X-Received: by 10.194.93.68 with SMTP id cs4mr17552446wjb.17.1365772240678; Fri, 12 Apr 2013 06:10:40 -0700 (PDT) Received: from ithaqua.etoilebsd.net (ithaqua.etoilebsd.net. [37.59.37.188]) by mx.google.com with ESMTPS id bq19sm3592471wib.7.2013.04.12.06.10.39 (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 12 Apr 2013 06:10:39 -0700 (PDT) Sender: Baptiste Daroussin Date: Fri, 12 Apr 2013 15:10:37 +0200 From: Baptiste Daroussin To: "Eggert, Lars" Subject: Re: newnfs pkgng database corruption? Message-ID: <20130412131037.GI95891@ithaqua.etoilebsd.net> References: <746529932.761884.1365721847968.JavaMail.root@erie.cs.uoguelph.ca> <8A9F25C5-C5E6-4373-85F9-C47642CF1BAE@netapp.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="MPkR1dXiUZqK+927" Content-Disposition: inline In-Reply-To: <8A9F25C5-C5E6-4373-85F9-C47642CF1BAE@netapp.com> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Rick Macklem , current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Apr 2013 13:10:42 -0000 --MPkR1dXiUZqK+927 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Apr 12, 2013 at 12:56:10PM +0000, Eggert, Lars wrote: > Hi, >=20 > On Apr 12, 2013, at 1:10, Rick Macklem wrote: > > Well, I have no idea why an NFS server would reply errno 70 if the file > > still exists, unless the client has somehow sent a bogus file handle > > to the server. (I am not aware of any client bug that might do that. I > > am almost suspicious that there might be a memory problem or something > > that corrupts bits in the network layer. Do you have TSO enabled for yo= ur > > network interface by any chance? If so, I'd try disabling that on the > > network interface. Same goes for checksum offload.) > >=20 > > rick > > ps: If you can capture packets between the client and server at the > > time this error occurs, looking at them in wireshark might be > > useful? >=20 > I will try all of those things. >=20 > But first, a question that someone who understands pkgng will be able to = answerr: Is this "fake-pkg" process even running on the NFS mount? The WRKD= IR is /tmp, which is an mfs mount. fake-pkg is run in WRKDIR, but it calls pkgng which will open /var/db/pkg/local.sqlite aka nfs mount. The Error 70 is EX_SOFTWARE returned by pkgng. Can you try the following patch: http://people.freebsd.org/~bapt/patch-libpkg__pkgdb.c Just add that file to /usr/ports/ports-mgmt/pkg/files/ If that works for you, that means the posix advisory locks is somehow faili= ng on nfsv4 files. Given it is already known to be failing on nfsv3 (because people often misconfigure it) I'll probablmy make unix-dotfile the default locking system when local.sqlite is stored on network filesystem. regards, Bapt --MPkR1dXiUZqK+927 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlFoB80ACgkQ8kTtMUmk6EyACwCfcIOtamgGFQV3BlcG5r2NdlRK HLgAn3uLrvcCDzPfhc6S1M8y+lFCz1R9 =hlLR -----END PGP SIGNATURE----- --MPkR1dXiUZqK+927--