login
Header Space

 
 

Re: Data corruption on software RAID

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Bill Davidsen <davidsen@...>
Cc: <linux-kernel@...>, <linux-raid@...>, device-mapper development <dm-devel@...>, <agk@...>, <mingo@...>, <neilb@...>
Date: Thursday, April 10, 2008 - 10:55 pm

> Currently you can go for hours without ever reaching a clean state on active

It can already happen that one device writes the sector and other not if 
the power is interrupted. And all RAID implementations already deal with 
it by resynchronizing the modified areas in case of crash. So they could 
resynchronize modify-while-write cases as well, with the same code.

... or I don't know if MM maintainers want to add locking to the pages 
that are under a write. Personally, I wouldn't do it.


There would be no problem with fsync. Fsync writes the synced data to both 
devices. So after a crash you can select any of the devices as a resync 
master copy, and you get the data that you wrote before sync() or fsync().

Mikulas
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: Data corruption on software RAID, Mikulas Patocka, (Thu Apr 10, 10:55 pm)
speck-geostationary