[linux-lvm] Remove a LUN from a LVM mirror cause logical volume not response

Bryn M. Reeves bmr at redhat.com
Mon Oct 24 13:35:30 UTC 2011


On 10/24/2011 01:48 PM, Matecki, Lukas wrote:
> Second try this time with the right subject, sry Monday -.-
>
> Hallo List,
>
> We are using LVM with SAN and multipathd. I try to setup mirroring with LVM. So I do pv create on a mpath device. vgcreate, add the pv to the vg, create a lv and setup a mirror with this:

Bear in mind that if you are using multipath underneath a mirror then 
you will need to configure multipath to not queue I/O when all paths to 
a device fail (or to only do so for a limited number of retries).

Otherwise the system will queue all I/O and block accessing the side of
the mirror on the failed SAN.

> lvconvert -m1 vg<name>/lv<name>  /dev/mapper/mpath0 --mirrorlog core

Using core may not be the best idea here since it will mean that you 
have to resynchronize the mirror every time it is activated.

> My intention is to create a logical volume which can handle SAN Disk failure.
>
> But in this shown setup i get a error (unavailable logical volume) when one of the san LUNS is missing.

Can you paste the exact error you are getting? This doesn't sound like 
any LVM2 error message that I'm familiar with.

Regards,
Bryn.




More information about the linux-lvm mailing list