Skip to content

Commit 30bf91e

Browse files
authored
Merge pull request #77517 from aspauldi/CNV-40296
CNV#40296: DOC: Update docs to recommend changing the error policy when using persistent reservation
2 parents fda358d + af2b71c commit 30bf91e

File tree

3 files changed

+29
-12
lines changed

3 files changed

+29
-12
lines changed

modules/virt-configuring-disk-sharing-lun.adoc

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,16 @@
66
[id="virt-configuring-disk-sharing-lun_{context}"]
77
= Configuring disk sharing by using LUN
88

9-
You can configure a LUN-backed virtual machine 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+
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.
1010

1111
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.
1212

1313
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.
1414

15+
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+
17+
For a LUN disk with an iSCSi connection and a persistent reservation, as required for Windows Failover Clustering for shared volumes, you set the error policy to `report`.
18+
1519
.Prerequisites
1620

1721
* You must have cluster administrator privileges to configure the feature gate option.
@@ -41,10 +45,10 @@ spec:
4145
- disk:
4246
bus: sata
4347
name: rootdisk
44-
- errorPolicy: report
45-
lun: <1>
48+
- errorPolicy: report <1>
49+
lun: <2>
4650
bus: scsi
47-
reservation: true <2>
51+
reservation: true <3>
4852
name: na-shared
4953
serial: shared1234
5054
volumes:
@@ -55,7 +59,8 @@ spec:
5559
persistentVolumeClaim:
5660
claimName: pvc-na-share
5761
----
58-
<1> Identifies a LUN disk.
59-
<2> Identifies that the persistent reservation is enabled.
62+
<1> Identifies the error policy.
63+
<2> Identifies a LUN disk.
64+
<3> Identifies that the persistent reservation is enabled.
6065

6166
. Save the `VirtualMachine` manifest file to apply your changes.

modules/virt-configuring-vm-disk-sharing.adoc

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ You can configure block volumes so that multiple virtual machines (VMs) can shar
1010

1111
The application running on the guest operating system determines the storage option you must configure for the VM. A disk of type `disk` exposes the volume as an ordinary disk to the VM.
1212

13+
You can set an error policy for each disk. The error policy controls how the hypervisor behaves when an input/output error occurs while a disk is being written to or read. The default behavior stops the VM and generates a Kubernetes event.
14+
15+
You can accept the default behavior, or you can set the error policy to one of the following options:
16+
17+
* `report`, which reports the error in the guest.
18+
* `ignore`, which ignores the error. The Read or Write failure is undetected.
19+
* `enospace`, which produces an error indicating that there is not enough disk space.
20+
1321
.Prerequisites
1422

1523
* The volume access mode must be `ReadWriteMany` (RWX) if the VMs that are sharing disks are running on different nodes.
@@ -38,17 +46,19 @@ spec:
3846
- disk:
3947
bus: virtio
4048
name: rootdisk
41-
disk1: disk_one <1>
49+
errorPolicy: report <1>
50+
disk1: disk_one <2>
4251
- disk:
4352
bus: virtio
4453
name: cloudinitdisk
4554
disk2: disk_two
46-
shareable: true <2>
55+
shareable: true <3>
4756
interfaces:
4857
- masquerade: {}
4958
name: default
5059
----
51-
<1> Identifies a device as a disk.
52-
<2> Identifies a shared disk.
60+
<1> Identifies the error policy.
61+
<2> Identifies a device as a disk.
62+
<3> Identifies a shared disk.
5363

5464
. Save the `VirtualMachine` manifest file to apply your changes.

virt/virtual_machines/virtual_disks/virt-configuring-shared-volumes-for-vms.adoc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ You can configure shared disks to allow multiple virtual machines (VMs) to share
1010

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

13-
* An ordinary virtual machine disk
14-
* A logical unit number (LUN) device with an iSCSi connection and raw device mapping, as required for Windows Failover Clustering for shared volumes
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
15+
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.
1517

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

0 commit comments

Comments
 (0)