From: Mario 'BitKoenig' Holbe <Mario.Holbe@TU-Ilmenau.DE>
To: linux-raid@vger.kernel.org
Subject: Re: No syncing after crash. Is this a software raid bug?
Date: Fri, 3 Mar 2006 15:30:29 +0100 [thread overview]
Message-ID: <du9ju5$6c5$1@sea.gmane.org> (raw)
In-Reply-To: 20060303133952.GA2976@redhat.com
Heinz Mauelshagen <mauelshagen@redhat.com> wrote:
> The fact that mirrors in a RAID1 set partially differ even on propper
> shutdown is caused by the ability to change dirty pages *while* they
> are being accessed (ie. by a mirroring driver).
That's quite the scenario what I thought about, but more clear now,
thanks.
But when a dirty page is modified while it's being accessed, it stays
dirty and gets cleaned (i.e. written to disk) later again, right? This
would imply that the mirrors should always be equal after a clean
shutdown, which in fact is not true.
> Mind you that this is a block level inconsistency only, because the
...
> An example for a filesystem causing this is a file write followed
> by a file truncation.
Yes, this is also quite similar to the scenario what I thought about -
especially it suggests that this case happens only on "free" space.
However, Kaspers case is a bit different, since it involves swap space,
which leads to the suspicion that there are cases where mirror
differences could occur also on "non-free" space (although there is
of course also something like "free" space on swap and one had to
analyze if it's such space that is affected, which most likely isn't
the simplest thing at all :)). While swap is probably quite robust
against such a scenario, since it's not valid after a reboot anymore,
I could imagine other cases (i.e. database raw devices) where subsequent
reads lead to different data due to the different mirrors, isn't it?
And couldn't this happen even on swap without reboot inbetween when a
page really needs to be read from disk?
regards
Mario
--
File names are infinite in length where infinity is set to 255 characters.
-- Peter Collinson, "The Unix File System"
next prev parent reply other threads:[~2006-03-03 14:30 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-01 12:44 No syncing after crash. Is this a software raid bug? Kasper Dupont
2006-03-01 13:58 ` Luca Berra
2006-03-01 16:24 ` Mike Hardy
2006-03-01 21:56 ` Kasper Dupont
2006-03-02 13:48 ` Mario 'BitKoenig' Holbe
2006-03-03 13:39 ` Heinz Mauelshagen
2006-03-03 14:30 ` Mario 'BitKoenig' Holbe [this message]
2006-03-03 22:26 ` Heinz Mauelshagen
2006-03-03 23:01 ` Mario 'BitKoenig' Holbe
2006-03-04 9:01 ` Heinz Mauelshagen
2006-03-04 10:10 ` Mario 'BitKoenig' Holbe
2006-03-03 7:30 ` Kasper Dupont
2006-03-03 12:03 ` Mario 'BitKoenig' Holbe
2006-03-03 12:38 ` Mario 'BitKoenig' Holbe
2006-03-03 14:48 ` Kasper Dupont
2006-03-03 15:10 ` Mario 'BitKoenig' Holbe
2006-03-04 13:16 ` Kasper Dupont
2006-03-04 13:38 ` Mario 'BitKoenig' Holbe
2006-03-04 19:50 ` Kasper Dupont
2006-03-07 10:47 ` Heinz Mauelshagen
2006-03-07 11:18 ` Kasper Dupont
2006-03-07 12:12 ` Heinz Mauelshagen
2006-03-10 7:43 ` Heinz Mauelshagen
2006-03-10 7:49 ` Kasper Dupont
2006-03-16 7:24 ` Kasper Dupont
2006-03-16 14:04 ` Heinz Mauelshagen
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='du9ju5$6c5$1@sea.gmane.org' \
--to=mario.holbe@tu-ilmenau.de \
--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).