Lupe Christoph [lupe@lupe-christoph.de] wrote: > On Thursday, 2009-04-16 at 15:47:07 +0530, yogeen honnavar wrote: > > > dd if=/dev/zero of=/dev/vg1/lv1 count=10 > > > as per the redhat guide this should result in mirror leg failure and any subsequent write activity to the mirror should convert the mirror into linear volume. but the output of lvs command still shows copy % as 100%. also data in filesystem of lv1 is erased and it is converted into read only filesystem. > > Apart from the problem with the of= parameter that was already pointed > out - why do you assume writing *anything* *anywhere* would simulate a > mirror failure? The most you do simulate with that is mirror > *corruption*. You are absolutely right. >> can anyone please let us know the correct way to simulate lvm mirror failure >> and recovery. > > Depends a lot on your hardware. E.g. the system I use for testing are > about 400 km away, so I'd rather not unplug anything... 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! _______________________________________________ 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/