From owner-freebsd-current@FreeBSD.ORG Fri Mar 25 15:35:23 2011 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 45E121065677; Fri, 25 Mar 2011 15:35:23 +0000 (UTC) (envelope-from gahr@gahrfit.gahr.ch) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 0E9238FC13; Fri, 25 Mar 2011 15:35:23 +0000 (UTC) Received: from gahrfit.gahr.ch (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p2PFZLUb037512; Fri, 25 Mar 2011 15:35:22 GMT (envelope-from gahr@gahrfit.gahr.ch) Received: by gahrfit.gahr.ch (Postfix, from userid 1001) id 44E1345025; Fri, 25 Mar 2011 16:35:21 +0100 (CET) Date: Fri, 25 Mar 2011 16:35:21 +0100 From: Pietro Cerutti To: Julien Laffaye Message-ID: <20110325153520.GB23861@gahrfit.gahr.ch> References: <20110325101111.GA36840@azathoth.lan> <20110325150653.21132ej6abxmjpgk@webmail.leidinger.net> <20110325153814.20287h1594npcu80@webmail.leidinger.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="6TrnltStXW4iwmi0" Content-Disposition: inline In-Reply-To: X-PGP-Key: 0x9571F78E X-PGP-Fingerprint: 1203 92B5 3919 AF84 9B97 28D6 C0C2 6A98 9571 F78E User-Agent: Mutt/1.5.21 (2010-09-15) Cc: ports@freebsd.org, Alexander Leidinger , Baptiste Daroussin , hackers@freebsd.org, current@freebsd.org Subject: Re: [ECFT] pkgng 0.1-alpha1: a replacement for pkg_install X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gahr@freebsd.org List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Mar 2011 15:35:23 -0000 --6TrnltStXW4iwmi0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2011-Mar-25, 15:03, Julien Laffaye wrote: > >>> What about DB corruption/loss? Do you keep the /var/db/pkg//= xxx > >>> files even with pkgng and only use the DB as a way to speed up some w= ork > >>> (so > >>> the DB corruption just requires to run pkg2ng), or are you lost of th= e DB > >>> is > >>> lost? > >>> > >> > >> Nothing is done about DB corruption/loss, I am not sure we need to do > >> something. > >> Maybe. > > > > I would say "for sure". Info: In Solaris 10 sqlite is used for the serv= ice > > managenemt framework (SMF). It is possible that the DB is corrupt in so= me > > bad situations. In this case you have to rebuild the DB (script provide= d, > > been there, had to use it). >=20 > If sqlite is properly used with transactions, it is very hard to > corrupt the database. But if hardware lies to us and say that the data > is on disk whereas it isnt... what can we do? > Another potential problem is fsync(), but if it is broken on FreeBSD > we want to fix it! >=20 > BTW, the goal is to only have the database and not the flat files. > If you are paranoid about power outage, use something like zfs snapshots.= =2E. No need to look for strange scenarios, I'm surely going to sudo rm -f the f= ile more sooner than later, so... maybe just save a copy? --=20 Pietro Cerutti The FreeBSD Project gahr@FreeBSD.org PGP Public Key: http://gahr.ch/pgp --6TrnltStXW4iwmi0 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iEYEARECAAYFAk2MtjgACgkQwMJqmJVx945uOwCg3+l6a53XfIhLsR8ylmV5es+N +d0An1d8oFP80eUC0Q4Wz3tUpk4hEOnB =W0Yb -----END PGP SIGNATURE----- --6TrnltStXW4iwmi0--