Am 19.02.13 14:59, schrieb Jacek Konieczny:
On Tue, 19 Feb 2013 14:37:07 +0100
Andreas Pflug <pgadmin@pse-consulting.de> wrote:
What I'm missing is the possibility to resize a LV or taking a
snapshot of it while a volume is used on one node. I'd expect this to
work on the active node, if the volume is inactive on all other
nodes.
I can confirm this works.
But when I try that, I get
cluster request failed: Invalid argument
Failed to suspend <logvol>
Are you sure you have the volume activated _exclusively_ on the single
node.
'is used on one node' doesn't mean much when any other node is allowed
to activate the volume at any time.
I would have expected lvm to take that exclusive lock implicitely when
necessary?
When the LV is exclusively activated (lvchange -aey) snapshots should
work (and they do work for me).
The volume is "lvchange -aly" active on one node and in use there (e.g.
mounted or attached to a VM). If I try to lvchange -aey on that node, I
get "Error locking on node xxxx: Device or resource busy". Apparently
the problem is propagating the activation to exclusive if the device is
busy.
Actually, lock exclusive will even fail if the device is not in use, but
only active locally.
A workaround would probably be to activate the lv exclusively _before_
using it, but then it would be impossible to migrate the vm to another
host later on.
Regards
Andreas
_______________________________________________
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/