Re: Draft Mirrored Linux Mini How-to

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 08/08/2009 08:59, Goswin von Brederlow wrote:
"NeilBrown" <neilb@xxxxxxx> 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.
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux