I have a simple home lab setup with 2 Proxmox 6.3 nodes in cluster configuration and NAS with iSCSI support. I've allocated LUN and attached it as LVM VG on both nodes, using pve's lvm plugin with 'shared' option enabled. I can see the storage on both nodes, create VMs with disks located on it and so on — so far, no problem.
I've had a discussion with my friend who is more experienced sysadmin then I am, and he's sure that this setup will lead to a data loss due to corruption and race conditions upon writing to a single, non-cluster-aware storage.
As far as I see, the corruption is possible if multiple nodes will change LVM layout nearly simultaneously, e.g. when creating new VMs or resizing disks.
Does Proxmox employ any safeguards against that? Like serializing LVM layout changes in queue or some other form of locking? Is it documented somewhere in detail?
I've checked usual places:
https://pve.proxmox.com/wiki/Storage
https://pve.proxmox.com/wiki/Storage:_iSCSI
https://pve.proxmox.com/wiki/Storage:_LVM
There are only few one-line mentions of this mode and risks/failure modes are not discussed at all.
Can anyone point me in direction to educate myself further on this matter?
I've had a discussion with my friend who is more experienced sysadmin then I am, and he's sure that this setup will lead to a data loss due to corruption and race conditions upon writing to a single, non-cluster-aware storage.
As far as I see, the corruption is possible if multiple nodes will change LVM layout nearly simultaneously, e.g. when creating new VMs or resizing disks.
Does Proxmox employ any safeguards against that? Like serializing LVM layout changes in queue or some other form of locking? Is it documented somewhere in detail?
I've checked usual places:
https://pve.proxmox.com/wiki/Storage
https://pve.proxmox.com/wiki/Storage:_iSCSI
https://pve.proxmox.com/wiki/Storage:_LVM
There are only few one-line mentions of this mode and risks/failure modes are not discussed at all.
Can anyone point me in direction to educate myself further on this matter?