* IDE layer adoptations that *fake* a failing drive?
@ 2004-05-14 20:50 Leon Woestenberg
0 siblings, 0 replies; 2+ messages in thread
From: Leon Woestenberg @ 2004-05-14 20:50 UTC (permalink / raw)
To: linux-ide
Hello,
I wondered if anyone here is aware of code that sits between the IDE
software layer and the storage device, that emulates a failing disk in
one way or another.
I.e. for example, write multiple re-tries with time-outs, checksum
errors, failing to complete read/writes to medium etc.
From my networking stuff, I know there are network simulators that you
can provoke to simulate all kind of network traffic abnormalities, such
as congestion, dupes, lost packets, bursting.
I have access to only a limited number of really bad disks, and want to
do stress tests against fully automatically managed software RAID arrays
under Linux (except for the part where you have to physically swap
defect disks :-)
Ciao,
Leon.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: IDE layer adoptations that *fake* a failing drive?
@ 2004-05-14 23:17 Pat LaVarre
0 siblings, 0 replies; 2+ messages in thread
From: Pat LaVarre @ 2004-05-14 23:17 UTC (permalink / raw)
To: Leon Woestenberg; +Cc: linux-ide
> code that sits between the IDE software layer and
> the storage device, that emulates a failing disk
> in one way or another.
I guess you want intermittent and unreliable failure ... else you could
swap in an ATAPI drive, since ATAPI protocol by definition looks like a
dead ATA drive.
Like you, I want to eject errors and timeouts, please post back here
what you find. Meanwhile, three thoughts:
1) Read errors
Via ATA pass thru you can force a read error, if your drive supports the
write/ read long legacy of ATA 2 for that purpose.
2) No-data timeouts
Via 48-bit lba ATA you can force a slow timeout by asking to verify
xFFFF lba's = 32 MiB = (1 << (16+9)) bytes, at 512 = x200 = (1 << 9)
bytes/lba, if you drive actually does verify blocks when asked.
3) Write errors, data timeouts, etc.
Tough, without customarily proprietary knowledge of the drive.
Pat LaVarre
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-05-14 23:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-14 23:17 IDE layer adoptations that *fake* a failing drive? Pat LaVarre
-- strict thread matches above, loose matches on Subject: below --
2004-05-14 20:50 Leon Woestenberg
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).