* [Cluster-devel] clvm, snapshots and live migration
@ 2011-11-24 10:42 Dietmar Maurer
2011-11-27 8:44 ` Vladislav Bogdanov
0 siblings, 1 reply; 3+ messages in thread
From: Dietmar Maurer @ 2011-11-24 10:42 UTC (permalink / raw)
To: cluster-devel.redhat.com
Hi all,
We use clvm and store VM images on shared storage, and our backup tool uses LVM snapshots,
which seems to require that we exclusively lock the LVs.
But live migration requires that we activate the LVs on two nodes, so this conflicts with exclusive locks.
So is there a way to convert the exclusive lock into a local lock. I get an error when try that.
For example:
First acquire an exclusive lock:
# lvchange -aey vmdisks/vm-102-disk-1
I now want to change that into an local lock:
# lvchange -aly vmdisks/vm-102-disk-1
Error locking on node proxmox-7-60: Device or resource busy
Is there a way to do that? What is the reasoning behind not allowing that?
- Dietmar
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Cluster-devel] clvm, snapshots and live migration
2011-11-24 10:42 [Cluster-devel] clvm, snapshots and live migration Dietmar Maurer
@ 2011-11-27 8:44 ` Vladislav Bogdanov
0 siblings, 0 replies; 3+ messages in thread
From: Vladislav Bogdanov @ 2011-11-27 8:44 UTC (permalink / raw)
To: cluster-devel.redhat.com
Hi,
24.11.2011 13:42, Dietmar Maurer wrote:
> Hi all,
>
> We use clvm and store VM images on shared storage, and our backup tool uses LVM snapshots,
> which seems to require that we exclusively lock the LVs.
>
> But live migration requires that we activate the LVs on two nodes, so this conflicts with exclusive locks.
>
> So is there a way to convert the exclusive lock into a local lock. I get an error when try that.
>
> For example:
>
> First acquire an exclusive lock:
> # lvchange -aey vmdisks/vm-102-disk-1
>
> I now want to change that into an local lock:
>
> # lvchange -aly vmdisks/vm-102-disk-1
> Error locking on node proxmox-7-60: Device or resource busy
>
> Is there a way to do that? What is the reasoning behind not allowing that?
Not actually an answer.
After migration you'd need to convert lock opposite way.
One problem I see here is that if we upgrade local lock to exclusive,
then we need either to force other nodes to drop their local lock unless
LV is used or just fail.
Probably lvm list is a better place for such discussions?
Vladislav
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Cluster-devel] clvm, snapshots and live migration
@ 2011-11-28 6:20 Dietmar Maurer
0 siblings, 0 replies; 3+ messages in thread
From: Dietmar Maurer @ 2011-11-28 6:20 UTC (permalink / raw)
To: cluster-devel.redhat.com
Hi all,
I started this thread on the wrong (cluster-devel) mailing list. So I post it in
the linux-lvm list to correct that mistake:
> > We use clvm and store VM images on shared storage, and our backup tool
> > uses LVM snapshots, which seems to require that we exclusively lock the LVs.
> >
> > But live migration requires that we activate the LVs on two nodes, so this
> conflicts with exclusive locks.
> >
> > So is there a way to convert the exclusive lock into a local lock. I get an error
> when try that.
> >
> > For example:
> >
> > First acquire an exclusive lock:
> > # lvchange -aey vmdisks/vm-102-disk-1
> >
> > I now want to change that into an local lock:
> >
> > # lvchange -aly vmdisks/vm-102-disk-1
> > Error locking on node proxmox-7-60: Device or resource busy
> >
> > Is there a way to do that? What is the reasoning behind not allowing that?
>
> Not actually an answer.
> After migration you'd need to convert lock opposite way.
> One problem I see here is that if we upgrade local lock to exclusive, then we
> need either to force other nodes to drop their local lock unless LV is used or just
> fail.
Yes - the idea is that the migration tool release the lock on the other node.
So after migration only the target node holds a local lock, and we can upgrade
that lock to exclusive without problems.
> Probably lvm list is a better place for such discussions?
Sure, you are right (just noticed that I posted to the wrong list).
- Dietmar
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-11-28 6:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-24 10:42 [Cluster-devel] clvm, snapshots and live migration Dietmar Maurer
2011-11-27 8:44 ` Vladislav Bogdanov
-- strict thread matches above, loose matches on Subject: below --
2011-11-28 6:20 Dietmar Maurer
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.