linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: John Robinson <john.robinson@anonymous.org.uk>
To: Goswin von Brederlow <goswin-v-b@web.de>
Cc: NeilBrown <neilb@suse.de>, Linux RAID <linux-raid@vger.kernel.org>
Subject: Re: Draft Mirrored Linux Mini How-to
Date: Sat, 08 Aug 2009 16:24:44 +0100	[thread overview]
Message-ID: <4A7D98BC.4050404@anonymous.org.uk> (raw)
In-Reply-To: <87ocqqvipy.fsf@frosties.localdomain>

On 08/08/2009 08:59, Goswin von Brederlow wrote:
> "NeilBrown" <neilb@suse.de> writes:
>> On Sat, August 8, 2009 11:11 am, Goswin von Brederlow wrote:
[...]
>>> On the other hand don't forget that raid1 is buggy with swap and the
>>> page contents might change between writes to the first and second
>>> disk. Or has that been fixed?

Can you give a reference for this?

>> There is no bug here.  The behaviour is a little unexpected
>> but it is perfectly "correct" in that there is never any risk to
>> data.
> 
> Disk 1 writes, page is modified, disk 2 writes, page is swapped in
> from disk 1, something crashes because old data is swapped in.
> 
> Or did I miss something?

If the page is modified then it won't be swapped back in when you said, 
because the swap out wasn't completed and the page wasn't reallocated. 
Well, that's my guess. I presume this is allowed for performance reasons.

Cheers,

John.

  reply	other threads:[~2009-08-08 15:24 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <4A78292A.5000607@in.ibm.com>
     [not found] ` <1249421223.18245.36.camel@pasglop>
2009-08-05  9:17   ` 2.6.31-rc5-git2 crash on a idle system Sachin Sant
2009-08-05  9:52     ` Benjamin Herrenschmidt
2009-08-06 13:33       ` Sachin Sant
2009-08-06 13:40         ` Michael Ellerman
2009-08-06 21:51         ` Benjamin Herrenschmidt
2009-08-07  0:08           ` Draft Mirrored Linux Mini How-to Harold Pritchett
2009-08-07  2:09             ` Goswin von Brederlow
2009-08-07  3:53             ` Tapani Tarvainen
2009-08-08  1:11               ` Goswin von Brederlow
2009-08-08  1:41                 ` NeilBrown
2009-08-08  7:59                   ` Goswin von Brederlow
2009-08-08 15:24                     ` John Robinson [this message]
2009-08-08 14:09                   ` Bill Davidsen
2009-08-07  8:10             ` Fredrik Pettersson
2009-08-07  9:51             ` Keld Jørn Simonsen
     [not found]               ` <4A7C5BD2.80508@uga.edu>
     [not found]                 ` <20090807173423.GA32127@rap.rap.dk>
2009-08-08 11:36                   ` Keld Jørn Simonsen
2009-08-07 15:27             ` Draft Mirrored Linux Mini How-to - sfdisk suggestion Maurice Hilarius
2009-08-08  1:13               ` Goswin von Brederlow
2009-08-09 18:55     ` 2.6.31-rc5-git2 crash on a idle system Louwrentius

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=4A7D98BC.4050404@anonymous.org.uk \
    --to=john.robinson@anonymous.org.uk \
    --cc=goswin-v-b@web.de \
    --cc=linux-raid@vger.kernel.org \
    --cc=neilb@suse.de \
    /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).