Re: Simulating faulty disk

Bryn M. Reeves
2011-10-20T09:27:29Z

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.