Shared LVM (thick/thin) on multiple hosts via ISCSI w/o CLVM/HA-LVM

virtRoo

Member
Jan 27, 2019
27
4
23
Hi guys,

I've come across some cases where people simply expose LVM across multiple hosts via iSCSI without some form of proper clustering like CLVM or HA-LVM. I was wondering how reliable this would be?

We've actually dealt with a paid-for cloud management platform before that sets up LVM as VM virtual disks like this. ie. an iSCSI LUN is presented to multiple hypervisors, create a VG on top of the LUN from one of the hosts, and then create multiple LVs to be used as a VM disk. However, our experience with this kind of setup was never great, maybe we overlooked something.

Also, if an LVM is marked as 'shared' in Proxmox, does it mean Promox will modify any settings in /etc/lvm/lvm.conf on any hosts that have access to the LVM?

I also realised LVM thin pool cannot be shared as per Proxmox's user guide, is there a specific reason for this?

Thanks in advance.
 
Also, if an LVM is marked as 'shared' in Proxmox, does it mean Promox will modify any settings in /etc/lvm/lvm.conf on any hosts that have access to the LVM?
no, it simply states that the vg is shared among hosts (iow. all hosts have the same view of the vg)

I also realised LVM thin pool cannot be shared as per Proxmox's user guide, is there a specific reason for this?
yes, because thinlvm allocates extents on the fly when needed, and there is no mechanism to prevent multiple hosts from allocating the same blocks
lvm (not-thin), defines which blocks belong to which lv on lv creation, and as long the creation/deletion/modification of such lvs are guarded and locked, it is not a problem
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!