ClusterLabs/resource-agents — pull request #233 by jbrassow (2013-05-14 20:24:45+00:00)
Title: HA LVM should only remove missing PVs on stop when they belong to mirrors

This adds --mirrorsonly to the 3 'vgreduce --removemissing' calls in the
LVM agents.

You'll also notice that it adds another self_fence check after we fail to
remove tags. In my previous comment, I pointed out that in the case of
single-host by_lv, after we vgreduce we then can't deactivate the logical
volume again because it doesn't exist. This results in us executing
self_fence, which may have just been a happy accident. But when we avoid
making metadata changes by adding --mirrorsonly, the subsequent deactivation
is still successful, and thus we miss the self_fence logic. So, I added
another check so we still catch the failure and fence ourselves in this
situation.

Signed-off-by: John Ruemker
Signed-off-by: Jonthan Brassow