From: Yathindra <ydev@cs.utah.edu>
To: Milan Broz <mbroz@redhat.com>
Cc: device-mapper development <dm-devel@redhat.com>
Subject: Re: Mapping sectors to have errors
Date: Fri, 04 Nov 2011 10:14:22 -0600 [thread overview]
Message-ID: <4EB40F5E.6010400@cs.utah.edu> (raw)
In-Reply-To: <4EAB0688.1040404@cs.utah.edu>
Hi Milan,
I'm trying to inject random sector errors using device mapper.
Suppose I want to inject some 50 errors on random sectors, is their a
way to do
this without having to reload the table every time.
Thanks,
Yathi
On 10/28/2011 1:46 PM, Yathindra wrote:
> Hi Milan,
>
> It worked! Thanks so much ! :)
>
> Have a great weekend.
>
> On 10/28/2011 1:42 PM, Milan Broz wrote:
>> On 10/28/2011 04:31 AM, Yathindra wrote:
>>> I'm trying to create a disk and map some sectors to have errors on
>>> them.
>>>
>>> I tried this,
>>> echo "0 100000 linear /dev/sdb 0 100000 480081250 error"| dmsetup
>>> create bad_disk
>>> device-mapper: reload ioctl failed: Invalid argument
>>> Command failed
>> Try
>> echo -e "0 100000 linear /dev/sdb 0\n100000 480081250 error"| dmsetup
>> create bad_disk
>>
>> Milan
>
prev parent reply other threads:[~2011-11-04 16:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-28 2:31 Mapping sectors to have errors Yathindra
2011-10-28 9:11 ` Joe Thornber
2011-10-28 17:54 ` Yathindra
2011-10-28 19:42 ` Milan Broz
2011-10-28 19:46 ` Yathindra
2011-11-04 16: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=4EB40F5E.6010400@cs.utah.edu \
--to=ydev@cs.utah.edu \
--cc=dm-devel@redhat.com \
--cc=mbroz@redhat.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.