Skip to content

Commit e60cb6d

Browse files
authored
Merge pull request #66783 from apinnick/update-runbook-3
update VirtualMachineCRCErrors runbook
2 parents dfc19bf + 3998734 commit e60cb6d

File tree

1 file changed

+19
-15
lines changed

1 file changed

+19
-15
lines changed

modules/virt-runbook-virtualmachinecrcerrors.adoc

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -27,41 +27,45 @@ severe performance degradation.
2727
[id="diagnosis-virtualmachinecrcerrors"]
2828
== Diagnosis
2929

30-
. Get the volume name from a virtual machine:
30+
. Navigate to *Observe* -> *Metrics* in the web console.
31+
. Obtain a list of virtual machines with incorrectly configured storage classes
32+
by running the following PromQL query:
3133
+
32-
[source,terminal]
34+
[source,text]
3335
----
34-
$ oc get vm <vm_name> -o jsonpath='{.spec.template.spec.volumes}'
36+
kubevirt_ssp_vm_rbd_volume{rxbounce_enabled="false", volume_mode="Block"} == 1
3537
----
36-
37-
. Get the storage class name from the volume:
3838
+
39-
[source,terminal]
39+
The output displays a list of virtual machines that use a storage
40+
class without `rxbounce_enabled`.
41+
+
42+
.Example output
43+
+
44+
[source,text]
4045
----
41-
$ oc get pvc <volume> -o jsonpath='{.spec.storageClassName}'
46+
kubevirt_ssp_vm_rbd_volume{name="testvmi-gwgdqp22k7", namespace="test_ns", pv_name="testvmi-gwgdqp22k7", rxbounce_enabled="false", volume_mode="Block"} 1
4247
----
4348

44-
. Get the storage class configuration:
49+
. Obtain the storage class name by running the following command:
4550
+
4651
[source,terminal]
4752
----
48-
$ oc get sc <storage_class> -o yaml
53+
$ oc get pv <pv_name> -o=jsonpath='{.spec.storageClassName}'
4954
----
5055

51-
. Check the storage class configuration for the `krbd:rxbounce` map option.
52-
5356
[discrete]
5457
[id="mitigation-virtualmachinecrcerrors"]
5558
== Mitigation
5659

57-
Add the `krbd:rxbounce` map option to the storage class configuration:
60+
Add the `krbd:rxbounce` map option to the storage class configuration to use
61+
a bounce buffer when receiving data:
5862

59-
[source,terminal]
63+
[source,yaml]
6064
----
6165
apiVersion: storage.k8s.io/v1
6266
kind: StorageClass
6367
metadata:
64-
name: example-storage-class
68+
name: vm-sc
6569
parameters:
6670
# ...
6771
mounter: rbd
@@ -72,7 +76,7 @@ provisioner: openshift-storage.rbd.csi.ceph.com
7276

7377
The `krbd:rxbounce` option creates a bounce buffer to receive data. The default
7478
behavior is for the destination buffer to receive data directly. A bounce buffer
75-
is required if the destination buffer is unstable.
79+
is required if the stability of the destination buffer cannot be guaranteed.
7680

7781
If you cannot resolve the issue, log in to the
7882
link:https://access.redhat.com[Customer Portal] and open a support case,

0 commit comments

Comments
 (0)