Skip to contentSkip to conversation

Simulating LVM Mirror Failure and recovery

linux-lvm yogeen honnavar 1 participant 1 message Apr 20, 2009

lore
Share & tools
lore
#0 lore raw

hi all,

Thanks for all the replies. as pointed out by Eric brunson i was referring to the following document

http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5/html/Cluster_Logical_Volume_Manager/mirrorrecover.html

i used the below command to simulate failed sda and then wrote some data to the mounted file system to trigger LVM conversion to linear mode.

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

thanks to all.
regards
-yogeen

Quoted 21 lines · Takahiro Yasui

From: Takahiro Yasui <[email protected]>
Subject: Re: [linux-lvm] Simulating LVM Mirror Failure and recovery
To: "LVM general discussion and development" <[email protected]>
Date: Thursday, 16 April, 2009, 9:32 PM [email protected]

Quoted 1 line · wrote:

I usually run "echo 1 >

/sys/block/sda/device/delete" to make /dev/sda

Quoted 1 line

disappear and fail for LVM tests. You can fail the

disk in a lot of ways

Quoted 1 line

depending on your hardware, but this trick works with

almost every

Quoted 1 line

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
Quoted 9 lines

Thanks,
Taka

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

Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/