Skip to content

Commit 153f10d

Browse files
authored
Merge pull request #54286 from ousleyp/CNV-20942
CNV-20942: virtio-scsi for hot-plugged disks
2 parents 7f3db16 + 39b445b commit 153f10d

8 files changed

+55
-30
lines changed

_topic_maps/_topic_map.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3517,7 +3517,7 @@ Topics:
35173517
File: virt-cloning-a-datavolume-using-smart-cloning
35183518
- Name: Creating and using boot sources
35193519
File: virt-creating-and-using-boot-sources
3520-
- Name: Hot-plugging virtual disks
3520+
- Name: Hot plugging virtual disks
35213521
File: virt-hot-plugging-virtual-disks
35223522
- Name: Using container disks with virtual machines
35233523
File: virt-using-container-disks-with-vms
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * virt/virtual_machines/virtual_disks/virt-hot-plugging-virtual-disks.adoc
4+
5+
:_content-type: CONCEPT
6+
[id="virt-about-hot-plugging-virtual-disks_{context}"]
7+
= About hot plugging virtual disks
8+
9+
When you _hot plug_ a virtual disk, you attach a virtual disk to a virtual machine instance while the virtual machine is running.
10+
11+
When you _hot unplug_ a virtual disk, you detach a virtual disk from a virtual machine instance while the virtual machine is running.
12+
13+
Only data volumes and persistent volume claims (PVCs) can be hot plugged and hot unplugged. You cannot hot plug or hot unplug container disks.
14+
15+
After you hot plug a virtual disk, it remains attached until you detach it, even if you restart the virtual machine.

modules/virt-about-virtio-scsi.adoc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * virt/virtual_machines/virtual_disks/virt-hot-plugging-virtual-disks.adoc
4+
5+
:_content-type: CONCEPT
6+
[id="virt-about-virtio-scsi_{context}"]
7+
= About virtio-scsi
8+
9+
In {VirtProductName}, each virtual machine (VM) has a `virtio-scsi` controller so that hot plugged disks can use a `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.
10+
11+
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.

modules/virt-hot-plugging-a-virtual-disk-using-the-cli.adoc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,23 @@
44

55
:_content-type: PROCEDURE
66
[id="virt-hot-plugging-a-virtual-disk-using-the-cli_{context}"]
7-
= Hot-plugging a virtual disk using the CLI
7+
= Hot plugging a virtual disk using the CLI
88

9-
Hot-plug virtual disks that you want to attach to a virtual machine instance (VMI) while a virtual machine is running.
9+
Hot plug virtual disks that you want to attach to a virtual machine instance (VMI) while a virtual machine is running.
1010

1111
.Prerequisites
12-
* You must have a running virtual machine to hot-plug a virtual disk.
13-
* You must have at least one data volume or persistent volume claim (PVC) available for hot-plugging.
12+
* You must have a running virtual machine to hot plug a virtual disk.
13+
* You must have at least one data volume or persistent volume claim (PVC) available for hot plugging.
1414
1515
.Procedure
1616

17-
* Hot-plug a virtual disk by running the following command:
17+
* Hot plug a virtual disk by running the following command:
1818
+
1919
[source,terminal]
2020
----
2121
$ virtctl addvolume <virtual-machine|virtual-machine-instance> --volume-name=<datavolume|PVC> \
2222
[--persist] [--serial=<label-name>]
2323
----
2424
+
25-
** 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.
26-
** 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.
25+
** 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.
26+
** 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.

modules/virt-hot-plugging-a-virtual-disk-using-the-web-console.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,23 @@
44

55
:_content-type: PROCEDURE
66
[id="virt-hot-plugging-a-virtual-disk-using-the-web-console{context}"]
7-
= Hot-plugging a virtual disk using the web console
7+
= Hot plugging a virtual disk using the web console
88

9-
Hot-plug virtual disks that you want to attach to a virtual machine instance (VMI) while a virtual machine is running. When you hot-plug a virtual disk, it remains attached to the VMI until you hot-unplug it.
9+
Hot plug virtual disks that you want to attach to a virtual machine instance (VMI) while a virtual machine is running. When you hot plug a virtual disk, it remains attached to the VMI until you unplug it.
1010

1111
.Prerequisites
12-
* You must have a running virtual machine to hot-plug a virtual disk.
12+
* You must have a running virtual machine to hot plug a virtual disk.
1313
1414
.Procedure
1515

1616
. Click *Virtualization* -> *VirtualMachines* from the side menu.
1717

18-
. Select the running virtual machine to which you want to hot-plug a virtual disk.
18+
. Select the running virtual machine to which you want to hot plug a virtual disk.
1919

2020
. On the *VirtualMachine details* page, click the *Disks* tab.
2121

2222
. Click *Add disk*.
2323

24-
. In the *Add disk (hot plugged)* window, fill in the information for the virtual disk that you want to hot-plug.
24+
. In the *Add disk (hot plugged)* window, fill in the information for the virtual disk that you want to hot plug.
2525

2626
. Click *Save*.

modules/virt-hot-unplugging-a-virtual-disk-using-the-cli.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44

55
:_content-type: PROCEDURE
66
[id="virt-hot-unplugging-a-virtual-disk-using-the-cli_{context}"]
7-
= Hot-unplugging a virtual disk using the CLI
7+
= Hot unplugging a virtual disk using the CLI
88

9-
Hot-unplug virtual disks that you want to detach from a virtual machine instance (VMI) while a virtual machine is running.
9+
Hot unplug virtual disks that you want to detach from a virtual machine instance (VMI) while a virtual machine is running.
1010

1111
.Prerequisites
1212
* Your virtual machine must be running.
13-
* You must have at least one data volume or persistent volume claim (PVC) available and hot-plugged.
13+
* You must have at least one data volume or persistent volume claim (PVC) available and hot plugged.
1414
1515
.Procedure
1616

17-
* Hot-unplug a virtual disk by running the following command:
17+
* Hot unplug a virtual disk by running the following command:
1818
+
1919
[source,terminal]
2020
----

modules/virt-hot-unplugging-a-virtual-disk-using-the-web-console.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@
44

55
:_content-type: PROCEDURE
66
[id="virt-hot-unplugging-a-virtual-disk-using-the-web-console{context}"]
7-
= Hot-unplugging a virtual disk using the web console
7+
= Hot unplugging a virtual disk using the web console
88

9-
Hot-unplug virtual disks that you want to detach from a virtual machine instance (VMI) while a virtual machine is running.
9+
Hot unplug virtual disks that you want to detach from a virtual machine instance (VMI) while a virtual machine is running.
1010

1111
.Prerequisites
12-
* Your virtual machine must be running with a hot-plugged disk attached.
12+
* Your virtual machine must be running with a hot plugged disk attached.
1313
1414
.Procedure
1515

1616
. Click *Virtualization* -> *VirtualMachines* from the side menu.
1717

18-
. Select the running virtual machine with the disk you want to hot-unplug to open the *VirtualMachine details* page.
18+
. Select the running virtual machine with the disk you want to hot unplug to open the *VirtualMachine details* page.
1919

20-
. On the *Disks* tab, click the Options menu {kebab} of the virtual disk that you want to hot-unplug.
20+
. On the *Disks* tab, click the Options menu {kebab} of the virtual disk that you want to hot unplug.
2121

2222
. Click *Detach*.
Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
11
:_content-type: ASSEMBLY
22
[id="virt-hot-plugging-virtual-disks"]
3-
= Hot-plugging virtual disks
3+
= Hot plugging virtual disks
44
include::_attributes/common-attributes.adoc[]
55
:context: virt-hot-plugging-virtual-disks
66

77
toc::[]
88

9-
Hot-plug and hot-unplug virtual disks when you want to add or remove them without stopping your virtual machine or virtual machine instance. This capability is helpful when you need to add storage to a running virtual machine without incurring down-time.
9+
You can add or remove virtual disks without stopping your virtual machine (VM) or virtual machine instance (VMI).
1010

11-
When you _hot-plug_ a virtual disk, you attach a virtual disk to a virtual machine instance while the virtual machine is running.
11+
include::modules/virt-about-hot-plugging-virtual-disks.adoc[leveloffset=+1]
1212

13-
When you _hot-unplug_ a virtual disk, you detach a virtual disk from a virtual machine instance while the virtual machine is running.
14-
15-
Only data volumes and persistent volume claims (PVCs) can be hot-plugged and hot-unplugged. You cannot hot-plug or hot-unplug container disks.
16-
17-
After you hot-plug a virtual disk, it remains hot-plugged until you detach (unplug) it, even if you restart the virtual machine.
13+
include::modules/virt-about-virtio-scsi.adoc[leveloffset=+1]
1814

1915
include::modules/virt-hot-plugging-a-virtual-disk-using-the-cli.adoc[leveloffset=+1]
16+
2017
include::modules/virt-hot-unplugging-a-virtual-disk-using-the-cli.adoc[leveloffset=+1]
18+
2119
include::modules/virt-hot-plugging-a-virtual-disk-using-the-web-console.adoc[leveloffset=+1]
20+
2221
include::modules/virt-hot-unplugging-a-virtual-disk-using-the-web-console.adoc[leveloffset=+1]

0 commit comments

Comments
 (0)