Hi Neil

> This is also fixed for 2.3.99pre8+.
>
> The event counter is incremented at raidstart and at raidstop, and a
> difference of 1 does not cause a disc to appear old, you need a
> difference of 2.

Would still have caused failure in the mentioned case:

May 18 16:38:27 backup kernel: autorun ...
May 18 16:38:27 backup kernel: now!
May 18 16:38:27 backup kernel: hdh2's event counter: 0000000a
May 18 16:38:27 backup kernel: hdg2's event counter: 00000008
May 18 16:38:27 backup kernel: hdf2's event counter: 00000008
May 18 16:38:27 backup kernel: hde2's event counter: 00000008
May 18 16:38:27 backup kernel: hdd2's event counter: 00000008
May 18 16:38:27 backup kernel: hdc2's event counter: 00000008
May 18 16:38:27 backup kernel: hdb2's event counter: 00000008
May 18 16:38:27 backup kernel: hda2's event counter: 00000008
May 18 16:38:27 backup kernel: md: superblock update time inconsistency
-- using the most recent one
May 18 16:38:27 backup kernel: freshest: hdh2
May 18 16:38:27 backup kernel: md: kicking non-fresh hdg2 from array!
May 18 16:38:27 backup kernel: unbind<hdg2,7>
May 18 16:38:27 backup kernel: export_rdev(hdg2)
May 18 16:38:27 backup kernel: md: kicking non-fresh hdf2 from array!
May 18 16:38:27 backup kernel: unbind<hdf2,6>
May 18 16:38:27 backup kernel: export_rdev(hdf2)
May 18 16:38:27 backup kernel: md: kicking non-fresh hde2 from array!

etc.

May 18 16:38:27 backup kernel: raid5: not enough operational devices for
md0 (7/8 failed)

In retrospect it's obvious that selection of which superblock to select as
the right one needs to be more inteligent; the current "take freshest one"
is insuficient. Perhaps the aproach of "take the one we've most disks for,
in case of tie take the one with highest count" would give better results.

Bye, Martin

"you have moved your mouse, please reboot to make this change take effect"
--------------------------------------------------
 Martin Bene               vox: +43-316-813824
 simon media               fax: +43-316-813824-6
 Andreas-Hofer-Platz 9     e-mail: [EMAIL PROTECTED]
 8010 Graz, Austria
--------------------------------------------------
finger [EMAIL PROTECTED] for PGP public key

Reply via email to