Re: No syncing after crash. Is this a software raid bug?

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

 



Heinz Mauelshagen <mauelshagen@xxxxxxxxxx> 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"

-
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