From: David Shaw <dshaw@jabberwocky.com>
To: linux-ide@vger.kernel.org
Cc: Tejun Heo <htejun@gmail.com>
Subject: Re: Possible data corruption sata_sil24?
Date: Thu, 12 Jul 2007 21:42:52 -0400 [thread overview]
Message-ID: <20070713014252.GA17811@jabberwocky.com> (raw)
In-Reply-To: <4693A5A0.5070306@gmail.com>
On Wed, Jul 11, 2007 at 12:28:32AM +0900, Tejun Heo wrote:
> Hello,
>
> David Shaw wrote:
> > I'm having a problem with data corruption using devmapper on a SATA
> > disk using sata_sil24. I've done some work tracking it down, and
> > hopefully you folks can point me further in the right direction.
> >
> > The kernel I'm using is 2.6.21-1.3228.fc7 (i.e. Fedora 7). LVM2 is
> > lvm2-2.02.24-1.fc7. The dmsetup and libdevmapper is
> > device-mapper-1.02.17-7.fc7.
> >
> > The original setup that showed the problem is this:
> >
> > Starting with two 500GB SATA drives (interface card uses a Silicon
> > 3124 chipset), /dev/sdd and /dev/sde. I partitioned each into two
> > 250GB chunks (250*1000*1000*1000, not 250*1024*1024*1024), and set up
> > two RAID 1 sets such that /dev/md0 is /dev/sdd1+/dev/sde1 and /dev/md2
> > is /dev/sdd2+/dev/sde2. I then created a volume group ("storage") on
> > top of /dev/md0 and /dev/md1. Finally, I allocated two logical
> > volumes on top of that: "one" is -L300GB and "two" is -L100GB.
>
> -ETOOMANYCOMPNONETS. If it's data corruption with sata_sil24, it's
> highly likely that you're gonna be able to regenerate the problem
> without using raw /dev/sdd and /dev/sde devices. Please try that.
It fails whether I use a raw /dev/sdd or partition it into one large
/dev/sdd1, or partition into multiple partitions. sata_sil24 seems to
work by itself, as does dm, but as soon as I mix sata_sil24+dm, I get
corruption.
> > Note that this simplified reproduction case uses only the device
> > mapper: RAID is not involved, nor is LVM. "dmsetup table" says:
> >
> > two: 0 209715200 linear 8:32 482345000
> > one: 0 482344960 linear 8:32 0
>
> Can you try this on another controller so that we can tell whether the
> problem lies with dm or ata?
I have tried this on a different machine (also Fedora 7) that has an
Intel ICH5 controller on the motherboard (ata_piix driver). This
works correctly, and there is no corruption either with or without dm.
David
next prev parent reply other threads:[~2007-07-13 1:43 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-06 1:24 Possible data corruption sata_sil24? David Shaw
2007-07-10 15:28 ` Tejun Heo
2007-07-13 1:42 ` David Shaw [this message]
2007-07-13 7:34 ` Tejun Heo
2007-07-13 11:59 ` David Shaw
2007-07-18 8:53 ` Tejun Heo
2007-07-18 12:31 ` David Shaw
2007-07-19 8:03 ` Tejun Heo
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=20070713014252.GA17811@jabberwocky.com \
--to=dshaw@jabberwocky.com \
--cc=htejun@gmail.com \
--cc=linux-ide@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).