From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@9fans.net Date: Wed, 27 Jul 2011 08:39:53 +0000 From: kin loo Message-ID: <2c9f04ea-3e73-4350-8762-ece5a4b7d133@a2g2000prf.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable References: Subject: Re: [9fans] fossil file system corrupts after a power cut Topicbox-Message-UUID: 0744f958-ead7-11e9-9d60-3106f5b1d025 On Jul 26, 3:55=A0pm, 0in...@gmail.com (David du Colombier) wrote: > > fossil/flfmt -v da39a3ee5e6b4b0d3255bfef95601890afd80709 /dev/sdC0/foss= il > > fatal error: corrupted root: vtRootUnpack > > This Venti score is wrong. This is the Venti score returned by an empty > Fossil file system. That's why it cannot be found in Venti. > > > /boot/fossil: cacheLocalData: addr=3D1 type got 0 exp 8: tag got 0 exp = 1 > > /boot/fossil: fsOpen error fsOpen: block label mismatch fsys main > > The type VtDataType was returned instead of VtDirType and the tag > BadTag was returned instead of RootTag. Obviously, something got wrong. > > It looks like your virtual hard disk image was corrupted > because of the the power outage. Especially since you used > the dynamically-growing qcow2 image format. > > You should make another hard disk image and rebuild > Fossil from your last Venti score. > > Since this score cannot be found in your Fossil super block, you > should extract a list of your Vac scores from your Venti server > with the script /sys/src/cmd/venti/words/dumpvacroots. > > -- > David du Colombier Thank you David du Colombier, it works. I can now use the most recent score produced by dumpvacroots to restore the active and archive data in a new qemu image. But the original 9fat partition still keeps in the old qcow2 image.