From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yathindra Subject: Re: Mapping sectors to have errors Date: Fri, 04 Nov 2011 10:14:22 -0600 Message-ID: <4EB40F5E.6010400@cs.utah.edu> References: <4EAA13E4.6020709@cs.utah.edu> <4EAB059E.3050900@redhat.com> <4EAB0688.1040404@cs.utah.edu> Reply-To: device-mapper development Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4EAB0688.1040404@cs.utah.edu> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: Milan Broz Cc: device-mapper development List-Id: dm-devel.ids 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 >