Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Mar 2011 16:35:21 +0100
From:      Pietro Cerutti <gahr@freebsd.org>
To:        Julien Laffaye <jlaffaye@freebsd.org>
Cc:        ports@freebsd.org, Alexander Leidinger <Alexander@leidinger.net>, Baptiste Daroussin <bapt@freebsd.org>, hackers@freebsd.org, current@freebsd.org
Subject:   Re: [ECFT] pkgng 0.1-alpha1: a replacement for pkg_install
Message-ID:  <20110325153520.GB23861@gahrfit.gahr.ch>
In-Reply-To: <AANLkTimZ5B4bYp1_wNLHbB_jSwcnzKvf7dpO35W1k1%2B2@mail.gmail.com>
References:  <20110325101111.GA36840@azathoth.lan> <20110325150653.21132ej6abxmjpgk@webmail.leidinger.net> <AANLkTikxi%2BjgnLrFg57o1N-Qzip9juaqXGzK2eYLkpFr@mail.gmail.com> <20110325153814.20287h1594npcu80@webmail.leidinger.net> <AANLkTimZ5B4bYp1_wNLHbB_jSwcnzKvf7dpO35W1k1%2B2@mail.gmail.com>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On 2011-Mar-25, 15:03, Julien Laffaye wrote:
> >>> What about DB corruption/loss? Do you keep the /var/db/pkg/<package>/xxx
> >>> files even with pkgng and only use the DB as a way to speed up some work
> >>> (so
> >>> the DB corruption just requires to run pkg2ng), or are you lost of the 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 service
> > managenemt framework (SMF). It is possible that the DB is corrupt in some
> > bad situations. In this case you have to rebuild the DB (script provided,
> > been there, had to use it).
> 
> 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!
> 
> 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...

No need to look for strange scenarios, I'm surely going to sudo rm -f the file
more sooner than later, so... maybe just save a copy?

-- 
Pietro Cerutti
The FreeBSD Project
gahr@FreeBSD.org

PGP Public Key:
http://gahr.ch/pgp

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (FreeBSD)

iEYEARECAAYFAk2MtjgACgkQwMJqmJVx945uOwCg3+l6a53XfIhLsR8ylmV5es+N
+d0An1d8oFP80eUC0Q4Wz3tUpk4hEOnB
=W0Yb
-----END PGP SIGNATURE-----
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110325153520.GB23861>