Skip to content

Commit f2ef5bf

Browse files
Merge pull request #359 from avlitman/fix-runbook
Fix VirtualMachineInstanceHasEphemeralHotplugVolume.md runbook
2 parents bf8507a + 997f2bb commit f2ef5bf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/runbooks/VirtualMachineInstanceHasEphemeralHotplugVolume.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ suggest steps to convert ephermeral volumes to persistent ones.
2121

2222
1. Find each VM that contains an ephemeral hotplug volume.
2323
This command returns a list with entries in the [vm-name, namespace] format.
24-
``` bash
24+
```bash
2525
$ kubectl get vmis -A -o json | jq -r '.items[].metadata | select(.annotations | has("kubevirt.io/ephemeral-hotplug-volumes")) | [.name , .namespace] | @tsv'
2626
```
2727
2. For each VM listed, find the volumes that need to be patched.
28-
``` bash
28+
```bash
2929
$ kubectl get vmis <vm-name> -n <namespace> -o json | jq -r '.metadata.annotations."kubevirt.io/ephemeral-hotplug-volumes"'
3030
```
3131

@@ -35,7 +35,7 @@ To mitigate the impact of this alert, consider converting the ephemeral
3535
hotplug volumes in the VM to persistent volumes instead.
3636

3737
To convert ephemeral volumes to persistent volumes, run the following command:
38-
``` bash
38+
```bash
3939
$ virtctl addvolume <vm-name> --volume-name=<volume-name> --persist
4040
```
4141

0 commit comments

Comments
 (0)