Re: Simulating faulty disk

Yathindra
2011-10-20T15:45:12Z

Hi Bryn,

Thanks for that info. Could you please tell me where I can find more
details about using it.

Thanks again,
Yathi

On 10/20/2011 3:27 AM, Bryn M. Reeves wrote:
> On 10/20/2011 04:18 AM, Yathindra wrote:
>> I'm trying to simulate a faulty disk behavior on linux. Basically, I
>> want to inject various disk failure patterns
>> such as medium errors, unresponsive disk etc.
>
> If using a device-mapper device is acceptable for your purpose there
> are the dm-flakey and dm-delay targets that can add delays, drop and
> corrupt writes and introduce intermittent I/O errors.
>
> The targets can be stacked to give devices having any combination of
> these behaviours.
>
> Regards,
> Bryn.