I don't know; attempts to restore my system have so far been failures,
resulting in a host of error messages yet failing to repopulate the
filesystem.  :-(

I have recovered my filesystem  by reformating the fossil writebuffer
with the contents of the last venti snapshot. (This may be a rather
drastic measure, though.)

Just for convenience, here's what I did:

(I have a standalone Plan 9 machine with a venti and fossil partition
on sdC0.)
Boot Plan 9 from a recent installation CD and enter the following
commands in a rio window:

# configure ip address and set venti environment variable
ip/ipconfig ether /net/ether0 192.168.1.2 255.255.255.0
venti='tcp!192.168.1.2!venti'

# save the venti config to a file, because venti needs it to start
venti/conf /dev/sdC0/arenas > /tmp/venti.conf

# then start venti
venti/venti -w -c /tmp/venti.conf -a $venti

# start fossil
fossil/fossil -f /dev/sdC0/fossil -c 'srv -p fscons'

# determine the score of the last archival snapshot
fossil/last /dev/sdC0/fossil
vac:a92cc4d2657044cfaadf3d4c9dbce3e89932c35a

# now format the writebuffer
fossil/flfmt -v a92cc...c35a /dev/sdC0/fossil

# log in the fossil console and halt fossil
con -l /srv/fscons
fsys main sync
fsys main halt

Cheers

Christian

Reply via email to