Raw physical device shared to 2 Virtual machine

I dont believe Proxmox provides an avenue for a supported way to do this. A lot will depend on the type of storage you are using, obviously it would have to be "shared" storage.
As point of reference:
https://qemu-devel.nongnu.narkive.com/Z5cxyJwZ/how-to-share-disk-image-between-two-kvm-guests.
https://stackoverflow.com/questions/53590220/shared-disk-among-libvirt-vm

If you really want to achieve a shared lun between VMs - you are better off attaching your shared storage directly from VM, ie using a network protocol i.e. iSCSI.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
Last edited:
I dont believe Proxmox provides an avenue for a supported way to do this. A lot will depend on the type of storage you are using, obviously it would have to be "shared" storage.
As point of reference:
https://qemu-devel.nongnu.narkive.com/Z5cxyJwZ/how-to-share-disk-image-between-two-kvm-guests.
https://stackoverflow.com/questions/53590220/shared-disk-among-libvirt-vm

If you really want to achieve a shared lun between VMs - you are better off attaching your shared storage directly from VM, ie using a network protocol i.e. iSCSI.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
We are sharing raw disk with 2 host.
We will use lvm cluster for the purpose active-passive.
One node will have the disk other will not
When main node goes down disk will be available in 2 node
 
A quick google search brings up:
https://access.redhat.com/documenta...e_manager_administration/lvm_cluster_overview

Which explicitly states about your described goal:
  • If you are using a clustered system for failover where only a single node that accesses the storage is active at any one time, you should use High Availability Logical Volume Management agents (HA-LVM).

It sounds like you have two sets of nodes : proxmox cluster and another cluster in the two VMs. You still have not stated what the underlying storage is (FC, SAS, SCSI, iSCSI, NVMEof, etc?). But at a very basic level the choices are two: either Proxmox manages the LUN and then it must be supported shared storage, or you connect the disk to both PVE nodes, try to pass it through rather than let PVE/Qemu manage it, and then use whatever clustering software you want inside the VMs. Its doable, but you are unlikely to find a simple step by step for your exact need.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
A quick google search brings up:
https://access.redhat.com/documenta...e_manager_administration/lvm_cluster_overview

Which explicitly states about your described goal:
  • If you are using a clustered system for failover where only a single node that accesses the storage is active at any one time, you should use High Availability Logical Volume Management agents (HA-LVM).

It sounds like you have two sets of nodes : proxmox cluster and another cluster in the two VMs. You still have not stated what the underlying storage is (FC, SAS, SCSI, iSCSI, NVMEof, etc?). But at a very basic level the choices are two: either Proxmox manages the LUN and then it must be supported shared storage, or you connect the disk to both PVE nodes, try to pass it through rather than let PVE/Qemu manage it, and then use whatever clustering software you want inside the VMs. Its doable, but you are unlikely to find a simple step by step for your exact need.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
We are using fc (hp 3 par storage) from storage Lun has been shared to 2 proxmox node.
I want the lun directly attached to one vm and the attached lun should be shared with 2 nd node.
Lvm ha cluster will mange the cluster
 
We are using fc (hp 3 par storage) from storage Lun has been shared to 2 proxmox node.
ok
I want the lun directly attached to one vm and the attached lun should be shared with 2 nd node.
https://pve.proxmox.com/wiki/Passthrough_Physical_Disk_to_Virtual_Machine_(VM)
Lvm ha cluster will mange the cluster
try to pass it through on both Proxmox nodes to both VMs, see if it doesn't corrupt data at that point. Then run your clustering software in VMs.



Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
hi there!
im trying to figure out how to make fc lun map to few vms without ethernet (customer want to separate copper network and this traffic should goes fc only, so NFS/SMB/iSCSI/CEPH not an option)
im alredy create lun on san, map it to proxmox cluster, configure multipath to each node(that makes me to allow live migration), passthrough to few vms, mount it to /mnt/media on vms as ext4 partition
but as i expected, there is no syncronization between vms, created files available on all nodes after reboot/remount only
is there any options to sync data between vms without ethernet?
or i should use OCFS2/GFS2 cluster on this lun?
if yes shuld i create cluster fs on VMs or proxmox nodes?

thannks for any advice to solve this quest!:rolleyes:
 
Last edited:

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!