From: hugo rivera <uair00@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] venti backup
Date: Fri, 20 Jan 2012 12:03:35 +0100 [thread overview]
Message-ID: <CAFo14L0DSVeAKkxR6O7-GBJTEFLTpcQgF5QB5sbsd+oM3YEM8A@mail.gmail.com> (raw)
In-Reply-To: <20120120000437.099dd3df@gmail.com>
There's something weird going on. First checkarenas reports
% venti/checkarenas -v /dev/da1s4
arena='arenas00' [802816,537673728)
version=5 created=1265030300 modified=1265248834 sealed
score=f383ebf9edefe8d37733c8caba6ff53e8b5517b0
clumps=82,908 compressed clumps=22,812 data=669,897,790
compressed data=531,617,136 disk storage=536,840,340
that's only 98 blocks of 8192 bytes, not 128 as you mention.
Anyway, I run fmtarenas on fa and then if I
% 9 dd -if /dev/da1s4 -of fa -bs 8192 -iseek 98 -oseek 98 -count 65536
or
% # this doesn't make sense but I've tried it, nevertheless
% 9 dd -if /dev/da1s4 -of fa -bs 8192 -iseek 128 -oseek 128 -count 65634
I get
2012/0120 11:57:10 err 2: arena set has wrong magic number: 00000000
expected ArenaPartMagic (0xa9e4a5e7)
venti/buildindex: can't init venti: can't initialize venti: fa: arena
set has wrong magic number: 00000000 expected ArenaPartMagic
(0xa9e4a5e7)
when I run buildindex, and checkarenas says the same thing.
2012/1/20 David du Colombier <0intro@gmail.com>:
> To clarify things.
>
> You backup is correct, but it's not necessary to backup the
> first 128 blocks of the arena partition. Its only contains
> the Venti configuration and the ArenaPart structure.
>
> Here is an example of what I described in my precedent message.
>
> Create an arena partition at least as big as your original
> one, and format it:
>
> % dd -if /dev/zero -of arenas.img -bs 8192 -count 4194304
> % venti/fmtarenas arenas arenas.img
>
> Then copy your Venti arenas from the beginning of arenas00
> (128*8192) to the end of arenas059 (3932258*8192):
>
> % dd -if /dev/da1s4 -of arenas.img -bs 8192 -seek 128 -oseek 128 -count 3932258
>
> Of course, '/dev/da1s4' can be 'fa' in your example.
> If you removed the first 128 blocks, you don't have
> to use '-seek'.
>
> Finally, write the Venti configuration, rebuild the index
> and Bloom filter, and start Venti.
>
> --
> David du Colombier
>
--
Hugo
next prev parent reply other threads:[~2012-01-20 11:03 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-17 12:34 hugo rivera
2012-01-17 13:02 ` Steve Simon
2012-01-17 13:14 ` hugo rivera
2012-01-17 13:04 ` David du Colombier
2012-01-19 16:11 ` hugo rivera
2012-01-19 16:45 ` David du Colombier
2012-01-19 23:04 ` David du Colombier
2012-01-20 11:03 ` hugo rivera [this message]
2012-01-20 15:02 ` David du Colombier
2012-01-20 17:04 ` hugo rivera
2012-01-20 18:19 ` David du Colombier
2012-01-20 19:10 ` hugo rivera
2012-01-20 22:39 ` David du Colombier
2012-01-23 10:28 ` hugo rivera
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAFo14L0DSVeAKkxR6O7-GBJTEFLTpcQgF5QB5sbsd+oM3YEM8A@mail.gmail.com \
--to=uair00@gmail.com \
--cc=9fans@9fans.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).