Skip to content

Commit 7ff641f

Browse files
sbeskin-redhatopenshift-cherrypick-robot
authored andcommitted
CNV-61644
1 parent 9a463a6 commit 7ff641f

File tree

3 files changed

+12
-18
lines changed

3 files changed

+12
-18
lines changed

modules/virt-hot-plugging-disk-cli.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
You can hot plug and hot unplug a disk while a virtual machine (VM) is running by using the command line.
1010

11-
You can make a hot plugged disk persistent so that it is permanently mounted on the VM.
11+
The hot plugged disk remains attached to the VM until you unplug it.
1212

1313
.Prerequisites
1414

@@ -22,10 +22,10 @@ You can make a hot plugged disk persistent so that it is permanently mounted on
2222
----
2323
$ virtctl addvolume <virtual-machine|virtual-machine-instance> \
2424
--volume-name=<datavolume|PVC> \
25-
[--persist] [--serial=<label-name>]
25+
[--bus <bus_type>] [--serial=<label_name>]
2626
----
2727
+
28-
** Use the optional `--persist` flag to add the hot plugged disk to the virtual machine specification as a permanently mounted virtual disk. Stop, restart, or reboot the virtual machine to permanently mount the virtual disk. After specifying the `--persist` flag, you can no longer hot plug or hot unplug the virtual disk. The `--persist` flag applies to virtual machines, not virtual machine instances.
28+
** The optional `--bus` flag allows you to specify the bus type of the added disk. The options are `virtio` and `scsi`. The default bus type is `virtio`.
2929
** The optional `--serial` flag allows you to add an alphanumeric string label of your choice. This helps you to identify the hot plugged disk in a guest virtual machine. If you do not specify this option, the label defaults to the name of the hot plugged data volume or PVC.
3030
3131
* Hot unplug a disk by running the following command:

modules/virt-hot-plugging-disks-ui.adoc

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ You can hot plug a disk by attaching it to a virtual machine (VM) while the VM i
1010

1111
The hot plugged disk remains attached to the VM until you unplug it.
1212

13-
You can make a hot plugged disk persistent so that it is permanently mounted on the VM.
14-
1513
.Prerequisites
1614

1715
* You must have a data volume or persistent volume claim (PVC) available for hot plugging.
@@ -20,16 +18,16 @@ You can make a hot plugged disk persistent so that it is permanently mounted on
2018

2119
. Navigate to *Virtualization* -> *VirtualMachines* in the web console.
2220
. Select a running VM to view its details.
23-
. On the *VirtualMachine details* page, click *Configuration* -> *Disks*.
21+
. On the *VirtualMachine details* page, click *Configuration* -> *Storage*.
2422

2523
. Add a hot plugged disk:
26-
.. Click *Add disk*.
24+
.. Click *Add*.
2725
.. In the *Add disk (hot plugged)* window, select the disk from the *Source* list and click *Save*.
28-
26+
. Optional: Select the type of the interface bus. The options are *VirtIO* and *SCSI*. The default bus type is *VirtIO*.
27+
. Optional: Change the type of the interface bus of an existing hot plugged disk:
28+
.. Click the Options menu {kebab} beside the disk and select the *Edit* option.
29+
.. In the *Interface* field, select the desired option.
2930
. Optional: Unplug a hot plugged disk:
3031
.. Click the Options menu {kebab} beside the disk and select *Detach*.
3132
.. Click *Detach*.
3233

33-
. Optional: Make a hot plugged disk persistent:
34-
.. Click the Options menu {kebab} beside the disk and select *Make persistent*.
35-
.. Reboot the VM to apply the change.

virt/managing_vms/virtual_disks/virt-hot-plugging-virtual-disks.adoc

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,16 @@ You can add or remove virtual disks without stopping your virtual machine (VM) o
1010

1111
Only data volumes and persistent volume claims (PVCs) can be hot plugged and hot-unplugged. You cannot hot plug or hot-unplug container disks.
1212

13-
A hot plugged disk remains attached to the VM even after reboot. You must detach the disk to remove it from the VM.
14-
15-
You can make a hot plugged disk persistent so that it is permanently mounted on the VM.
13+
A hot plugged disk remains attached to the VM even after reboot. You must unplug the disk to remove it from the VM.
1614

1715
[NOTE]
1816
====
19-
Each VM has a `virtio-scsi` controller so that hot plugged disks can use the `scsi` bus. The `virtio-scsi` controller overcomes the limitations of `virtio` while retaining its performance advantages. It is highly scalable and supports hot plugging over 4 million disks.
17+
Each VM has a `virtio-scsi` controller so that hot plugged disks can use the SCSI bus. The `virtio-scsi` controller overcomes the limitations of VirtIO while retaining its performance advantages. It is highly scalable and supports hot plugging over 4 million disks.
2018
21-
Regular `virtio` is not available for hot plugged disks because it is not scalable. Each `virtio` disk uses one of the limited PCI Express (PCIe) slots in the VM. PCIe slots are also used by other devices and must be reserved in advance. Therefore, slots might not be available on demand.
19+
When you hot plug disks to the VirtIO (`virtio-blk`) bus, each disk uses a PCI Express (PCIe) slot in the VM. The number of PCIe slots is limited and pre-set automatically at the VM creation as specified in the link:https://kubevirt.io/user-guide/storage/hotplug_volumes/#available-virtio-ports[Available VirtIO Ports] table. Therefore, you can use `virtio-blk` for a small number of disks that does not exceed the number of available slots.
2220
====
2321

2422
include::modules/virt-hot-plugging-disks-ui.adoc[leveloffset=+1]
2523

2624
include::modules/virt-hot-plugging-disk-cli.adoc[leveloffset=+1]
2725

28-
29-

0 commit comments

Comments
 (0)