We are sharing raw disk with 2 host.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 using fc (hp 3 par storage) from storage Lun has been shared to 2 proxmox 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
okWe are using fc (hp 3 par storage) from storage Lun has been shared to 2 proxmox node.
https://pve.proxmox.com/wiki/Passthrough_Physical_Disk_to_Virtual_Machine_(VM)I want the lun directly attached to one vm and the attached lun should be shared with 2 nd node.
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.Lvm ha cluster will mange the cluster
i did the pass through on both nodes.ok
https://pve.proxmox.com/wiki/Passthrough_Physical_Disk_to_Virtual_Machine_(VM)
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
so sounds like it worked?i did the pass through on both nodes.
I dont think so, but I dont use such config so you may find you on your own. Feel free to share.Any thing other than this to be done or not
The cluster fs is necessary on the layer that has the LUN, so if you "only" have the LUN on your PVE hosts, then the cluster filesystem has to go here.or i should use OCFS2/GFS2 cluster on this lun?
if yes shuld i create cluster fs on VMs or proxmox nodes?