From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 30 07:13:44 2007 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6977216A418 for ; Fri, 30 Nov 2007 07:13:44 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout5.cac.washington.edu (mxout5.cac.washington.edu [140.142.32.135]) by mx1.freebsd.org (Postfix) with ESMTP id 30C8313C442 for ; Fri, 30 Nov 2007 07:13:44 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.139]) by mxout5.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.09) with ESMTP id lAU7DhuD013627 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 29 Nov 2007 23:13:43 -0800 X-Auth-Received: from [128.208.5.25] (shiina-1.dyn.cs.washington.edu [128.208.5.25]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW07.09) with ESMTP id lAU7DhtI012684 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Thu, 29 Nov 2007 23:13:43 -0800 In-Reply-To: <1196393699.474f84e3e7d1b@webmail.rawbw.com> References: <1196388002.474f6ea2bcf32@webmail.rawbw.com> <1196388666.474f713a7d756@webmail.rawbw.com> <474F8191.5080807@u.washington.edu> <1196393699.474f84e3e7d1b@webmail.rawbw.com> Mime-Version: 1.0 (Apple Message framework v752.2) X-Gpgmail-State: !signed Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Garrett Cooper Date: Thu, 29 Nov 2007 23:12:27 -0800 To: Yuri X-Mailer: Apple Mail (2.752.2) X-PMX-Version: 5.3.3.310218, Antispam-Engine: 2.5.2.313940, Antispam-Data: 2007.11.29.225925 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='LEO_OBFU_SUBJ_RE 0.1, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0' Cc: hackers@freebsd.org Subject: Re: pkgdb failures X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Nov 2007 07:13:44 -0000 On Nov 29, 2007, at 7:34 PM, Yuri wrote: > Quoting Garrett Cooper : > >> Yes, it's partly caused by pkgdb and/or how Ruby / pkgdb >> handles the >> DB I think... >> 1. What type of BDB structure do you use [most likely btree(1) -- >> says this during the pkgdb rebuild..]? > bdb_btree >> 2. What version of BDB are you using (1.85, 2.x or 4.x) [(cd >> /usr/ports/ports-mgmt/portinstall && make config) will give you >> that info]? > 4.x >> 3. uname -a says? > BSD xxx.xxx.xxx 7.0-BETA3 FreeBSD 7.0-BETA3 #1: Tue Nov 27 13:11:12 > PST 2007 > yuri@xxx.xxx.xxx:/usr/obj/usr/src/sys/GENERIC i386 > > Yuri I'd try using BDB 1.85 as it appeared to be a bit more stable than 4.x (at least that's what I remember from using it..). You'll have to delete the .db files and fix things via portsdb and pkgdb (IIRC), but after that it's essentially the same song and dance.. Interrupting pkgdb while it's doing its thing will corrupt the .db files though as BDB isn't an atomic database API.. Cheers, -Garrett