Skip to contentSkip to conversation

target that injects errors?

DISCUSSION Zach Brown 4 participants 5 messages Mar 14, 2006 – Apr 3, 2006 Device mapper

lore
Share & tools
lore

Zach Brown

author
#0 lore raw

I find myself wanting to test a patch that reacts to EIO deep in aio O_DIRECT. Has anyone done a target that can inject errors into the IO path? I found sct's "testdrive", but it seems a bit crufty these days:

http://people.redhat.com/sct/patches/testdrive/

If someone hasn't done this, I'll take a swing at it.

Thanks.

- z

#1 lore raw
Quoted 2 lines · Zach Brown

Has anyone done a target that can inject errors into the IO path?

A couple so far:
dm-flakey - injects errors
dm-rwsplit - sends reads and writes to different paths
which could be given different characteristics before getting recombined.

http://www.kernel.org/pub/linux/kernel/people/agk/patches/2.6/editing/dm-flakey.patch
http://www.kernel.org/pub/linux/kernel/people/agk/patches/2.6/editing/dm-rwsplit.patch

(I'd like to see dm-flakey enhanced.)

Alasdair

Signature · 1 line
[email protected]
author
#2 lore raw
Quoted 6 lines

A couple so far:
dm-flakey - injects errors
dm-rwsplit - sends reads and writes to different paths
which could be given different characteristics before getting recombined.

Excellent, thanks, I'll give these a try.

- z

#3 lore raw

how to trace the device mapper?

In reply to Alasdair G Kergon

Hi,
I would like to trace the device mapper, and any good suggestion to do the job
is welcome such as how to start and so on.
Thanks

Best Regards

Jui-Pin Yang
=====================================
Network & Communication Technology Center Computer & Communications Research Laboratory Industrial Technology Research Institute

P300 CCL/ITRI
No.31, Gongye 2nd Rd., Annan District Tainan City 709, Taiwan (R.O.C.)
Tel: 886-6-3847103
Fax: 886-6-3847182
E-mail: [email protected]
=====================================

#4 lore raw

Re: how to trace the device mapper?

Quoted 7 lines · Jui-Pin Yang

Hi,
I would like to trace the device mapper, and any good suggestion to do the job
is welcome such as how to start and so on.
Thanks

If you are looking for interactions with the underlying block I/O layer interfaces, you could look into blktrace.

Alan D. Brunelle
HP

Quoted 22 lines

Best Regards

Jui-Pin Yang
=====================================
Network & Communication Technology Center Computer & Communications Research Laboratory Industrial Technology Research Institute

P300 CCL/ITRI
No.31, Gongye 2nd Rd., Annan District Tainan City 709, Taiwan (R.O.C.)
Tel: 886-6-3847103
Fax: 886-6-3847182
E-mail: [email protected]
=====================================

--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel