Clustering Applications with Shared Virtual Disks on vSAN
vSAN supports high availability (HA) clustering applications running inside virtual machines that use shared virtual disks, enabling multiple VMs (on the same or different ESXi hosts) to simultaneously access a shared virtual disk on a vSAN datastore.
The creation of shareable VMDKs and the enabling of Multi-Writer mode permits the use of in-guest shared-storage clustering solutions, such as Red Hat Clustering Suite or SUSE Linux Enterprise HA.
Red Hat Enterprise Linux High Availability Add-On and SUSE Linux Enterprise High Availability Extension clusters are supported on vSAN only when configured using Multi-Writer mode.
Oracle RAC is a popular application that successfully uses this mode as it manages its own locking mechanism.
Important: Multi-Writer mode enables concurrent VM access to a virtual disk by disabling standard storage-level locking. Ensure your guest operating system or application is designed to manage data integrity in this setup
2. SCSI-3 Persistent Reservation (SCSI-3 PR) Support (WSFC only)
vSAN's support for SCSI-3 PR -based clustering solutions is limited:
Warning: DO NOT enable Multi-Writer mode for any VM/VMDK combination unless the guests are capable of safely arbitrating and coordinating multiple systems accessing the same storage. Enabling Multi-Writer mode for disks that do not use in-guest cluster-aware filesystems may result in data corruption.
With vCenter Server: Use DRS VM-host affinity to distribute VMs across hosts, and offer secondary priority hosts that still try to keep the VMs separate after failover.
Actions or Features | Supported | Unsupported | Note |
Power on, off, restart virtual machine | √ | ||
Suspend VM | × | ||
Hot add virtual disks | √ | Only to existing controllers that are already attached to the vm. | |
Hot remove devices | √ | ||
Hot extend virtual disk | × | ||
Connect and disconnect devices | √ | ||
Snapshots | × | Virtual backup solutions that leverage snapshots are not supported. | |
Snapshots of VMs with independent-persistent disks | √ | Only the shared disks need to be in independent-persistent mode. While Independent-Persistent disk mode is not a hard requirement to enable Multi-Writer option, the default Dependent disk mode would cause the “cannot snapshot shared disk” error when a VM snapshot is taken. Use of Independent-Persistent disk mode would allow taking a snapshot of the OS disk while the shared disk would need to be backed up separately by a third-party vendor software. | |
Cloning | × | ||
Storage vMotion | × | ||
Changed Block Tracking (CBT) | × | ||
vMotion | √ |
| Supported for Red Hat Clustering/SUSE Linux Enterprise HA and limited to 64 ESX/ESXi hosts |
| Stretch Cluster | √ |
Limitations and Requirements:
VMware vSAN 8
VMware vSAN 9
Overview
The process of configuring a Red Hat cluster or SUSE Linux Enterprise HA on a vSAN datastore needs to be done once per cluster at creation time. This requires these steps:
The steps illustrated below use Red Hat cluster as an example. SUSE Linux Enterprise HA configuration would require similar steps.
Depending on your Virtual Machine design specifications, you will need to define the VM Storage Policy that will be applied to the Red Hat cluster shared disks. Create a storage policy similar to this figure:
In this example, the VM Storage Policy is named as RHCS
For more information about storage policy configuration options, see the VMware vSAN documentation.
Add a storage controller to the Red Hat Enterprise Linux virtual machines
Note: Create controllers of the same type and in the same position (SCSI address) on each Red Hat Enterprise Linux virtual machine.
Creating shared disks on the first virtual machine
In vSphere version 6.5 and onwards, the vSphere Web Client has the option to create eager-zeroed thick (EZT) disks on the vSAN datastore.
Note: The virtual disks should be added to the same SCSI positions on each virtual machine. If a disk is in position 1:0 on one virtual machine, it should be in position 1:0 on all virtual machines in the Linux Cluster.
Using the vSphere Web Client
To create shared disks on the first virtual machine using the vSphere Web Client:
Adding shared disks to one or more virtual machines
To add shared disks to one or more virtual machines using the vSphere Web Client:
Applying the VM Storage Policies to the shared disks
After the shared disks are created and added to all virtual machines using one of the three methods mentioned above, you must apply the storage policy created for the Red Hat cluster shared disks. The policy must be applied to all applicable disks on all Red Hat Enterprise Linux virtual machines.
For more information on configuring and managing Red Hat cluster or SUSE Linux Enterprise HA, see: