You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can configure a LUN-backed virtual machine (VM) disk to be shared among multiple virtual machines by enabling SCSI persistent reservation. Enabling the shared option allows you to use advanced SCSI commands, such as those required for a Windows failover clustering implementation, against the underlying storage. Any disk to be shared must be in block mode.
9
+
To secure data on your VM from outside access, you can enable SCSI persistent reservation and configure a LUN-backed virtual machine disk to be shared among multiple virtual machines. By enabling the shared option, you can use advanced SCSI commands, such as those required for a Windows failover clustering implementation, for managing the underlying storage.
10
10
11
-
A disk of type `LUN`exposes the volume as a LUN device to the VM. This allows the VM to execute arbitrary iSCSI command passthrough on the disk.
11
+
When a storage volume is configured as the `LUN`disk type, a VM can use the volume as a logical unit number (LUN) device. As a result, the VM can deploy and manage the disk by using SCSI commands.
12
12
13
-
You reserve a LUN through the SCSI persistent reserve options to protect data on the VM from outside access. To enable the reservation, you configure the feature gate option. You then activate the option on the LUN disk to issue SCSI device-specific input and output controls (IOCTLs) that the VM requires.
13
+
You reserve a LUN through the SCSI persistent reserve options. To enable the reservation:
14
+
15
+
. Configure the feature gate option
16
+
. Activate the feature gate option on the LUN disk to issue SCSI device-specific input and output controls (IOCTLs) that the VM requires.
14
17
15
18
You can set an error policy for each LUN disk. The error policy controls how the hypervisor behaves when an input/output error occurs on a disk Read or Write. The default behavior stops the guest and generates a Kubernetes event.
16
19
@@ -23,9 +26,13 @@ For a LUN disk with an iSCSi connection and a persistent reservation, as require
23
26
* The volume access mode must be `ReadWriteMany` (RWX) if the VMs that are sharing disks are running on different nodes.
24
27
+
25
28
If the VMs that are sharing disks are running on the same node, `ReadWriteOnce` (RWO) volume access mode is sufficient.
29
+
26
30
* The storage provider must support a Container Storage Interface (CSI) driver that uses the SCSI protocol.
31
+
27
32
* If you are a cluster administrator and intend to configure disk sharing by using LUN, you must enable the cluster's feature gate on the `HyperConverged` custom resource (CR).
28
33
34
+
* Disks that you want to share must be in block mode.
35
+
29
36
.Procedure
30
37
31
38
. Edit or create the `VirtualMachine` manifest for your VM to set the required values, as shown in the following example:
Copy file name to clipboardExpand all lines: virt/virtual_machines/virtual_disks/virt-configuring-shared-volumes-for-vms.adoc
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ You can configure shared disks to allow multiple virtual machines (VMs) to share
11
11
You configure disk sharing by exposing the storage as either of these types:
12
12
13
13
* An ordinary VM disk
14
-
* A logical unit number (LUN) disk with an iSCSi connection and raw device mapping, as required for Windows Failover Clustering for shared volumes
14
+
* A logical unit number (LUN) disk with an SCSI connection and raw device mapping, as required for Windows Failover Clustering for shared volumes
15
15
16
16
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.
0 commit comments