File corruption on LVM2 on top of software RAID1
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 6 lines · Simon Matter
In my tests I get corrupt files on LVM2 which is on top of software raid1. (This is a common setup even mentioned in the software RAID HOWTO and has worked for me on RedHat 9 / kernel 2.4 for a long time now and it's my favourite configuration). Now, I tested two different distributions, three kernels, three different filesystems and three different hardware. I can always reproduce it with the following easy scripts:
See:
http://bugzilla.kernel.org/show_bug.cgi?id=4946
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=152162
There's a one-line patch in there; see if that fixes the problem for you.
Signature · 3 lines
Chris Adams <[email protected]> Systems and Network Administrator - HiWAAY Internet Services I don't speak for anybody but myself - that's enough trouble.
Quoted 10 lines
Quoted 8 lines · Simon Matter
In my tests I get corrupt files on LVM2 which is on top of software raid1.
(This is a common setup even mentioned in the software RAID HOWTO and has worked for me on RedHat 9 / kernel 2.4 for a long time now and it's my favourite configuration). Now, I tested two different distributions, three
kernels, three different filesystems and three different hardware. I can always reproduce it with the following easy scripts:
Quoted 7 lines
See:
http://bugzilla.kernel.org/show_bug.cgi?id=4946
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=152162There's a one-line patch in there; see if that fixes the problem for you.
Hi Chris,
Thank you for your help, indeed this oneliner fixes the corruption. I have tested with 2.6.12.3 + bio_clone fix and also built an updated RedHat EL4 kernel with the fix included. No corruption anymore.
This fix should be applied to most kernels shipped with the latest Linux distributions. At least those products called Enterprise something should hurry in the interest of their customers. Do you think this will happen anytime soon?
Signature · 2 lines
Simon Matter Invoca Systems