From owner-freebsd-current@FreeBSD.ORG Wed Apr 10 07:42:37 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 687B4A4A for ; Wed, 10 Apr 2013 07:42:37 +0000 (UTC) (envelope-from lars@netapp.com) Received: from mx12.netapp.com (mx12.netapp.com [216.240.18.77]) by mx1.freebsd.org (Postfix) with ESMTP id 512299EA for ; Wed, 10 Apr 2013 07:42:37 +0000 (UTC) X-IronPort-AV: E=Sophos;i="4.87,444,1363158000"; d="scan'208";a="39038591" Received: from smtp1.corp.netapp.com ([10.57.156.124]) by mx12-out.netapp.com with ESMTP; 10 Apr 2013 00:42:31 -0700 Received: from vmwexceht02-prd.hq.netapp.com (vmwexceht02-prd.hq.netapp.com [10.106.76.240]) by smtp1.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id r3A7gVsp003105 for ; Wed, 10 Apr 2013 00:42:31 -0700 (PDT) Received: from VMWEXCEHT06-PRD.hq.netapp.com (10.106.77.104) by vmwexceht02-prd.hq.netapp.com (10.106.76.240) with Microsoft SMTP Server (TLS) id 14.2.342.3; Wed, 10 Apr 2013 00:42:30 -0700 Received: from SACEXCMBX01-PRD.hq.netapp.com ([169.254.2.218]) by vmwexceht06-prd.hq.netapp.com ([10.106.77.104]) with mapi id 14.02.0342.003; Wed, 10 Apr 2013 00:42:30 -0700 From: "Eggert, Lars" To: "current@freebsd.org" Subject: newnfs pkgng database corruption? Thread-Topic: newnfs pkgng database corruption? Thread-Index: AQHONb70L4N2OxTqe06kCtiGiwd7ag== Date: Wed, 10 Apr 2013 07:42:30 +0000 Message-ID: <4C9A5BAE-8607-4E3A-8E69-E3993EA9873F@netapp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.106.53.51] Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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: Wed, 10 Apr 2013 07:42:37 -0000 Hi, on a diskless server, I keep the ports tree and pkgng databases on a newnfs= NFSv4 mount. After a bunch of "portmaster -a" runs, the pkgng sqlite datab= ase appears to get corrupted. For example, when I try to update an existing= port, this happens: root@five:~ # portmaster ports-mgmt/pkg ... =3D=3D=3D> Registering installation for pkg-1.0.11 Installing pkg-1.0.11...pkg: sqlite: database disk image is malformed (pkgd= b.c:925) pkg: sqlite: database disk image is malformed (pkgdb.c:1914) *** [fake-pkg] Error code 70 I have removed all ports and the pkgng databases and reinstalled, but the c= orruption seems to return after a few days or weeks of installing and deins= talling ports. On another system that has a disk, that corruption of the pkgng database ha= s not happened over six months or so. I therefore wonder if storing the sql= ite database on an NFS-mount is triggering some sort of bug, either in pkgn= g or in newnfs. AFAIK, pkgng is using locks on the database quite liberally= , could that be where a bug is lurking? I'm happy to help debug this, but someone would need to let me know what to= try. Thanks, Lars=