Re: Simulating LVM Mirror Failure and recovery

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



malahal@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

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux