Using LVM-thin over iSCSI as shared storage across nodes — concurrency and data safety in OpenNebula

Hello,

I wanted to know if is it possible to use LVM (with LVM-thin enabled) over iSCSI in shared mode between multiple nodes accessing the same LUN, without risking data corruption due to concurrent access, in the latest version of OpenNebula?

Thank you in advance for your help.

Best regards,
Pape

Hello Pape,

This is a valid and important concern. While OpenNebula prevents the same disk image from being attached to multiple VMs concurrently, LVM itself is not cluster-aware by default. Activating the same LVM volume group on multiple hosts without a locking mechanism can lead to data corruption.

For this reason, OpenNebula expects shared LVM datastores to be accessed in a controlled manner (one host at a time per LV). Any additional coordination or locking between hosts (for example, via LVM locking mechanisms) may be configured and managed at the LVM/operating system level and is outside of OpenNebula’s scope and supported configurations.

Hello @Rostyslav_Yatsyshyn ,

Thanks for your reply.

Kindly regards,

Pape

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.