From: Andrew Morton <akpm@osdl.org>
To: "Simon Matter" <simon.matter@invoca.ch>
Cc: linux-kernel@vger.kernel.org, kernel-maint@redhat.com,
simon.matter@invoca.ch, linux-raid@vger.kernel.org,
dm-devel@redhat.com
Subject: Re: File corruption on LVM2 on top of software RAID1
Date: Thu, 4 Aug 2005 19:58:53 -0700 [thread overview]
Message-ID: <20050804195853.0866ade9.akpm@osdl.org> (raw)
In-Reply-To: <45138.213.188.237.106.1123086677.squirrel@localhost>
"Simon Matter" <simon.matter@invoca.ch> wrote:
>
> Hi,
>
> Please CC me as I'm not subscribed to the kernel list.
>
> I had a hard time identifying a serious problem in the 2.6 linux kernel.
Yes, it is a serious problem.
> It all started while evaluating RHEL4 for new servers. My data integrity
> tests gave me bad results - which I couldn't believe - and my first idea
> was - of course - bad hardware. I ordered new SCSI disks instead of the
> IDE disks, took another server, spent some money again, tried again and
> again. That's all long ago now...
>
> 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:
>
> LOGF=/root/diff.log
> while true; do
> rm -rf /home/XXX2
> rsync -a /home/XXX/ /home/XXX2
> date >> $LOGF
> diff -r /home/XXX /home/XXX2 >> $LOGF
> done
>
> the files in /home/XXX are ~15G of ISO images and rpms.
>
> diff.log looks like this:
> Wed Aug 3 13:45:57 CEST 2005
> Binary files /home/XXX/ES3-U3/rhel-3-U3-i386-es-disc3.iso and
> /home/XXX2/ES3-U3/rhel-3-U3-i386-es-disc3.iso differ
> Wed Aug 3 14:09:14 CEST 2005
> Binary files /home/XXX/8.0/psyche-i386-disc1.iso and
> /home/XXX2/8.0/psyche-i386-disc1.iso differ
> Wed Aug 3 14:44:17 CEST 2005
> Binary files /home/XXX/7.3/valhalla-i386-disc3.iso and
> /home/XXX2/7.3/valhalla-i386-disc3.iso differ
> Wed Aug 3 15:15:05 CEST 2005
> Wed Aug 3 15:45:40 CEST 2005
>
>
> Tested software:
> 1) RedHat EL4
> kernel-2.6.9-11.EL
> vanilla 2.6.12.3 kernel
> filesystems: EXT2, EXT3, XFS
>
> 2) NOVELL/SUSE 9.3
> kernel-default-2.6.11.4-21.7
> filesystem: EXT3
>
> Tested Hardware:
> 1)
> - ASUS P2B-S board
> - CPU PIII 450MHz
> - Intel 440BX/ZX/DX Chipset
> - 4x128M memory (ECC enabled)
> - 2x IDE disks Seagate Barracuda 400G, connected to onboard "Intel PIIX4
> Ultra 33"
> - Promise Ultra100TX2 adapter for additional tests
>
> 2)
> - DELL PowerEdge 1400
> - CPU PIII 800MHz
> - ServerWorks OSB4 Chipset
> - 4x256M memory (ECC enabled)
> - 2x U320 SCSI disks Maxtor Atlas 10K 146G
> - onboard Adaptec aic7899 Ultra160 SCSI adapter
>
> 3)
> - DELL PowerEdge 1850
> - CPU P4 XEON 2.8GHz
> - 2G memory
> - 2x U320 SCSI disks Maxtor Atlas 10K 73G SCA
> - onboard LSI53C1030 SCSI adapter
>
> I've put some files toghether from the last test on the PE1850 server:
> http://www.invoca.ch/bugs/linux-2.6-corruption-on-lvm2-on-raid1/
>
> I've also filed a bug with RedHat:
> https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=164696
>
> I have spent a lot of time on this bug because I consider it very serious.
> I'm not a kernel hacker but if there is anything I can do to fix this, let
> me know.
>
Thanks for doing that.
There's one fix against 2.6.12.3 which is needed, but 2.6.9 didn't have the
bug which this fix addresses. So unless 2.6.9 has a different problem,
this won't help.
But still, you should include this in testing please.
diff -puN fs/bio.c~bio_clone-fix fs/bio.c
--- devel/fs/bio.c~bio_clone-fix 2005-07-28 00:39:40.000000000 -0700
+++ devel-akpm/fs/bio.c 2005-07-28 01:02:34.000000000 -0700
@@ -261,6 +261,7 @@ inline void __bio_clone(struct bio *bio,
*/
bio->bi_vcnt = bio_src->bi_vcnt;
bio->bi_size = bio_src->bi_size;
+ bio->bi_idx = bio_src->bi_idx;
bio_phys_segments(q, bio);
bio_hw_segments(q, bio);
}
_
next prev parent reply other threads:[~2005-08-05 3:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-03 16:31 Simon Matter
2005-08-05 2:58 ` Andrew Morton [this message]
2005-08-05 3:01 ` Andrew Morton
2005-08-05 7:56 ` Simon Matter
2005-08-05 8:02 ` Andrew Morton
[not found] <fa.joi2dm7.1l4o8in@ifi.uio.no>
2005-08-03 18:08 ` Chris Adams
2005-08-04 12:38 ` Simon Matter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050804195853.0866ade9.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=dm-devel@redhat.com \
--cc=kernel-maint@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-raid@vger.kernel.org \
--cc=simon.matter@invoca.ch \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome