linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Luca Berra <bluca@comedia.it>
To: linux-raid@vger.kernel.org
Subject: Re: RAID1 and data safety?
Date: Tue, 29 Mar 2005 18:46:45 +0200	[thread overview]
Message-ID: <20050329164645.GD2080@percy.comedia.it> (raw)
In-Reply-To: <ipqnh2-o1n.ln1@news.it.uc3m.es>

On Tue, Mar 29, 2005 at 01:29:22PM +0200, Peter T. Breuer wrote:
>Neil Brown <neilb@cse.unsw.edu.au> wrote:
>> Due to the system crash the data on hdb is completely ignored.  Data
>
>Neil - can you explain the algorithm that stamps the superblocks with
>an event count, once and for all? (until further amendment :-).

IIRC it is updated at every event (start, stop, add, remove, fail etc...)

>It goes without saying that sb's are not stamped at every write, and the
>event count is not incremented at every write, so when and when?

the event count is not incremented at every write, but the dirty flag
is, and it is cleared lazily after some idle time.
in older code it was set at array start and cleared only at stop.

so in case of a disk failure the other disks get updated about the
failure.

in case of a restart (crash) the array will be dirty and a coin tossed
to chose which mirror to use as an authoritative source (the coin is
biased, but it doesn't matter). At this point any possible parallel
reality is squashed out of existance.

L.

-- 
Luca Berra -- bluca@comedia.it
        Communication Media & Services S.r.l.
 /"\
 \ /     ASCII RIBBON CAMPAIGN
  X        AGAINST HTML MAIL
 / \

  reply	other threads:[~2005-03-29 16:46 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-29  8:54 AW: AW: RAID1 and data safety? Schuett Thomas EXT
2005-03-29  9:27 ` Peter T. Breuer
2005-03-29 10:09   ` Neil Brown
2005-03-29 11:26     ` Peter T. Breuer
2005-03-29 12:13       ` Lars Marowsky-Bree
2005-04-04 22:57       ` Doug Ledford
2005-03-29  9:30 ` AW: " Molle Bestefich
2005-03-29 10:08 ` AW: " Neil Brown
2005-03-29 11:29   ` Peter T. Breuer
2005-03-29 16:46     ` Luca Berra [this message]
2005-03-29 18:43       ` Peter T. Breuer
2005-03-29 20:07     ` Mario Holbe
2005-04-04 20:06     ` Doug Ledford
2005-04-08 12:16       ` Peter T. Breuer
  -- strict thread matches above, loose matches on Subject: below --
2005-04-07 15:35 AW: " Schuett Thomas EXT
2005-04-07 16:05 ` Doug Ledford
2005-04-10 17:54   ` Peter T. Breuer
2005-03-16  9:13 Molle Bestefich
2005-03-21 22:26 ` Neil Brown
2005-03-22  8:48   ` Molle Bestefich

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=20050329164645.GD2080@percy.comedia.it \
    --to=bluca@comedia.it \
    --cc=linux-raid@vger.kernel.org \
    /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).