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. -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html