Re: AW: AW: RAID1 and data safety?

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

 



On Tuesday March 29, Thomas.Schuett.extern@xxxxxxxxxxxxxxx wrote:
> But:
> If you have a raid1 and a journaling fs, see the following:
> If the system chrashes at the end of a write transaction,
> then the end-of-transaction information may got written 
> to hda already, but not to hdb. On the next boot, the 
> journaling fs may see an overall unclean bit (*probably* a transaction
> is pending), so it reads the transaction log. 
> 
> And here the fault happens:
> By chance, it reads the transaction log from hda, then sees, that the
> transaction was finished, and clears the overall unclean bit. 
> This cleaning is a write, so it goes to *both* HDs.
> 
> Situation now: On hdb there is a pending transaction in the transaction 
> log, but the overall unclean bit is cleared. This may not be realised,
> until by chance a year later hda chrashes, and you finaly face the fact,
> that there is a corrupt situation on the left HD.

Wrong.  There is nothing of the sort on hdb.  
Due to the system crash the data on hdb is completely ignored.  Data
from hda is copied over onto it.  Until that copy has completed,
nothing is read from hdb.

You could possibly come up with a scenario where the above happens but
while the copy from hda->hdb is happening, hda dies completely so
reads have to start happening from hdb.  
md could possibly handle this situation better (ensure a copy has
happened for any block before a read succeeds of that block), but I
don't think it is at all likely to be a re-life problem.

NeilBrown
-
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