From: Yathindra <ydev@cs.utah.edu>
To: "Bryn M. Reeves" <bmr@redhat.com>
Cc: linux-scsi@vger.kernel.org, dm-devel@redhat.com
Subject: Re: Simulating faulty disk
Date: Thu, 20 Oct 2011 22:14:39 -0600 [thread overview]
Message-ID: <4EA0F1AF.8090008@cs.utah.edu> (raw)
In-Reply-To: <4EA05D0A.7030909@redhat.com>
Hi Bryn,
I compiled a fresh kernel and enabled flakey and delay modules. Now am
able to create disks but
it fails to mount.
dmsetup create d0 --table="0 `blockdev --getsize /dev/sdb` delay
/dev/sdb 0 500"
dmsetup create f0 --table="0 `blockdev --getsize /dev/mapper/d0` flakey
/dev/mapper/d0 0 9 1"
mkfs -t ext3 /dev/mapper/f0
...
...
ext2fs_mkdir: Attempt to read block from filesystem resulted in short
read while creating root dir
Can we even mount such a device ?
Thanks,
Yathi
On 10/20/2011 11:40 AM, Bryn M. Reeves wrote:
> On 10/20/2011 05:46 PM, Yathindra wrote:
>> >dmsetup create d0 --table="0 `blockdev --getsize /dev/sdb` delay
>> /dev/sdb 0 500"
>> device-mapper: reload ioctl failed: Invalid argument
>> Command failed
>>
>> In /var/log/messages I see this,
>> device-mapper: ioctl: error adding target to table
>
> I don't see this here:
>
> # dmsetup create d0 --table="0 `blockdev --getsize /dev/sdb` delay
> /dev/sdb 0 500"
> # dmsetup info -c d0
> Name Maj Min Stat Open Targ Event UUID
> d0 253 3 L--w 1 1 0
> # dmsetup create f0 --table="0 `blockdev --getsize /dev/mapper/d0`
> flakey /dev/mapper/d0 0 9 1"
> # dmsetup info -c f0
> Name Maj Min Stat Open Targ Event UUID
> f0 253 4 L--w 0 1 0
>
> This is using the f15 2.6.40.3 (aka kernel-3.0) with a locally
> compiled dm-delay since it's not enabled in the Fedora kernels.
>
> Might want to move this thread over to dm-devel if you're having
> trouble with it.
>
> Regards,
> Bryn.
prev parent reply other threads:[~2011-10-21 4:14 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-20 3:18 Simulating faulty disk Yathindra
[not found] ` <20111020044734.GC15211@atlantis.cc.ndsu.nodak.edu>
2011-10-20 7:30 ` Yathindra
2011-10-20 8:43 ` Yathindra
2011-10-20 9:27 ` Bryn M. Reeves
2011-10-20 15:45 ` Yathindra
2011-10-20 15:56 ` Bryn M. Reeves
2011-10-20 15:59 ` Yathindra
2011-10-20 16:46 ` Yathindra
2011-10-20 17:40 ` Bryn M. Reeves
2011-10-20 17:53 ` Yathindra
2011-10-21 4:14 ` Yathindra [this message]
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=4EA0F1AF.8090008@cs.utah.edu \
--to=ydev@cs.utah.edu \
--cc=bmr@redhat.com \
--cc=dm-devel@redhat.com \
--cc=linux-scsi@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