:_mod-docs-content-type: ASSEMBLY
[id="virt-configuring-shared-volumes-for-vms"]
= Configure shared volumes for virtual machines
include::_attributes/common-attributes.adoc[]
:context: virt-configuring-shared-volumes-for-vms

toc::[]

[role="_abstract"]
Enable high-availability scenarios like Windows Failover Clustering by configuring shared disks to allow multiple virtual machines to access the same storage volume. A shared disk's volume must be block mode.

You configure disk sharing by exposing the storage as either of these types:

* An ordinary VM disk
* A logical unit number (LUN) disk with an SCSI connection and raw device mapping, as required for Windows Failover Clustering for shared volumes

In addition to configuring disk sharing, you can also set an error policy for each ordinary VM disk or LUN disk. The error policy controls how the hypervisor behaves when an input/output error occurs on a disk Read or Write.

include::modules/virt-configuring-vm-disk-sharing.adoc[leveloffset=+1]

include::modules/virt-configuring-disk-sharing-lun.adoc[leveloffset=+1]

include::modules/virt-configuring-disk-sharing-lun-web.adoc[leveloffset=+2]

include::modules/virt-configuring-disk-sharing-lun-cli.adoc[leveloffset=+2]

include::modules/virt-enabling-persistentreservation-feature-gate.adoc[leveloffset=+1]

include::modules/virt-enabling-persistentreservation-feature-gate-web.adoc[leveloffset=+2]

include::modules/virt-enabling-persistentreservation-feature-gate-cli.adoc[leveloffset=+2]

[role="_additional-resources"]
[id="additional-resources_{context}"]
== Additional resources
* link:https://www.qemu.org/docs/master/interop/pr-helper.html[Persistent reservation helper protocol]
* link:https://learn.microsoft.com/en-us/windows-server/failover-clustering/failover-clustering-overview[Failover Clustering in Windows Server and Azure Stack HCI]
