Skip to contentSkip to conversation

mdadm help

DISCUSSION Yathindra 2 participants 3 messages Oct 20, 2011 MD RAID

lore
Share & tools
lore

Yathindra

author
#0 lore raw

Hi,

I'm trying to use the faulty personality of mdadm tool to inject various disk failure patterns such as medium errors, unresponsive disk etc.

I'm wondering if there is an option to delay commands to get an unresponsive behavior. Also, does rt (readtransient) and wt (writetransient) fault options act as medium errors.

Thanks,
Yathi

#1 lore raw
Quoted 8 lines · On Wed, 19 Oct 2011 20:49:27 -0600 Yathindra <[email protected]> wrote:

Hi,

I'm trying to use the faulty personality of mdadm tool to inject various disk failure patterns
such as medium errors, unresponsive disk etc.

I'm wondering if there is an option to delay commands to get an unresponsive behavior.

No, there is no way to get a delay. You either get a success or a failure.

Quoted 2 lines

Also, does rt (readtransient) and wt (writetransient) fault options act as medium errors.

They simple report an error. The linux block layer doesn't distinguish reliably amongst different types or errors (or it didn't last time I checked).

NeilBrown

Quoted 7 lines

Thanks,
Yathi
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

author
#2 lore raw

Thanks Neil.

Quoted 26 lines · NeilBrown
Quoted 8 lines · On Wed, 19 Oct 2011 20:49:27 -0600 Yathindra<[email protected]> wrote:

Hi,

I'm trying to use the faulty personality of mdadm tool to inject various disk failure patterns
such as medium errors, unresponsive disk etc.

I'm wondering if there is an option to delay commands to get an unresponsive behavior.

No, there is no way to get a delay. You either get a success or a failure.

Quoted 2 lines

Also, does rt (readtransient) and wt (writetransient) fault options act as medium errors.

They simple report an error. The linux block layer doesn't distinguish reliably amongst different types or errors (or it didn't last time I checked).

NeilBrown

Quoted 6 lines

Thanks,
Yathi
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html