[PVE-User] lvm+iscsi

Dietmar Maurer dietmar at proxmox.com
Thu Jan 28 13:41:02 CET 2010

The current locking is quite simple. Simply connect to the master and exec 'pvesm lock <STOREID>'

# ssh -o 'BatchMode=yes'  <IP_OF_MASTER> /usr/sbin/pvesm lock <STOREID>

But you can only make a shapshot on the host which runs the VM - LVM snapshots are not cluster aware!

- Dietmar

From: pve-user-bounces at pve.proxmox.com [mailto:pve-user-bounces at pve.proxmox.com] On Behalf Of Hugh Saunders
Sent: Donnerstag, 28. Jänner 2010 13:02
To: pve-user at pve.proxmox.com
Subject: Re: [PVE-User] lvm+iscsi

Hi Martin,

On Wed, Jan 27, 2010 at 1:38 PM, Martin Maurer <martin at proxmox.com<mailto:martin at proxmox.com>> wrote:

>> 2) How does proxmox ensure the use of LVM is cluster safe?
>> Eg if I have an iSCSI lun that is connected to both hosts, and each VM
>> uses a separate LV, thats fine, but how does proxmox ensure that:
>> a) The same LV is not mounted on both host machines at once
>> b) That only one host attempts to update the LVM meta-data at a time?
>> (Eg create a new lv/snapshot)
> We implemented our own locking mechanism.

Good to hear that.

One more question about this:

I'd like to have another machine connect to the LUN+VG in order to take LVM snapshots of each LV, and back them up. This machine would not be hosting any virtual machines. Is it possible to run the proxmox locking mechanism on the machine thats taking the backups, without running a full install of proxmox? The backup box would be debian/ubuntu based.


Hugh Saunders
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.proxmox.com/pipermail/pve-user/attachments/20100128/a12e1f95/attachment.htm>

More information about the pve-user mailing list