9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Russ Cox" <rsc@swtch.com>
To: pavelcak@gmail.com, 9fans@9fans.net
Subject: Re: [9fans] Subject: Venti, redundancy, and hardware failure.
Date: Sun,  3 Aug 2008 08:49:40 -0700	[thread overview]
Message-ID: <20080803154627.1DD1F1E8C47@holo.morphisms.net> (raw)
In-Reply-To: <6256dcf20808020659r18a22e6iedc08662f89e74c2@mail.gmail.com>

> occurred to me that, although I know how to mirror my arenas, I'm not
> clear on how to recover from hardware failure.  That is, suppose sdD0
> and sdD1 are dedicated to arenas, they are mirrored, and venti.conf
> has something like 'arenas /dev/fs/arenas'.  Now suppose sdD0 goes
> belly up.  Do I change '/dev/fs/arenas' to '/dev/sdD1/arenas', in
> venti.conf and fossil conf?

Only if you've changed your mind and
no longer think mirroring is a good idea.

What you want to do is re-establish the
mirror.  Assuming that sdD1 is still working,
you replace sdD0, run dd (or pump(1)) to
initialize sdD0 with the contents of sdD1.
Then you keep using /dev/fs/arenas.

> Maybe rerun fmtindex?  I recall reading
> about setting up venti and recovering fossil from venti, but I don't
> remember seeing anything about this.

Let's assume you need to run off sdD1 alone
for a while until you get your sdD0 replacement.
The easiest thing to do is change your mirror
config so that /dev/fs/arenas is now a mirror of
one disk (if that's not allowed, it should be), just sdD1.
Then nothing else has to change, since the data
is still available as /dev/fs/arenas.

But suppose you are asking "I changed the disk
device name in venti.conf.  What else do I
need to do for that to take effect?"
The answer is nothing: fmtindex does write
down info about the disks, but it names them
using the names you provided to fmtisect
and fmtarenas (things like index0 and arenas0.1).
The only place that a full path name is given
is in venti.conf.  If you move the device to a
different name (but have the same data), only
venti.conf needs to change.

Russ



  reply	other threads:[~2008-08-03 15:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-02 13:59 Gregory Pavelcak
2008-08-03 15:49 ` Russ Cox [this message]
2008-08-03 21:14   ` Steve Simon

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=20080803154627.1DD1F1E8C47@holo.morphisms.net \
    --to=rsc@swtch.com \
    --cc=9fans@9fans.net \
    --cc=pavelcak@gmail.com \
    /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).