[linux-lvm] Simulating LVM Mirror Failure and recovery

Takahiro Yasui tyasui at redhat.com
Thu Apr 16 16:02:14 UTC 2009


malahal at us.ibm.com wrote:
> I usually run "echo 1 > /sys/block/sda/device/delete" to make /dev/sda
> disappear and fail for LVM tests. You can fail the disk in a lot of ways
> depending on your hardware, but this trick works with almost every
> device!

# echo offline > /sys/block/sda/device/state

might work as well. In this case, you can recover the failure by

# echo running > /sys/block/sda/device/state

Thanks,
Taka




More information about the linux-lvm mailing list