Difference between revisions of "Virt-resize execution examples"
Jump to navigation
Jump to search
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | == Virt-resize with LVM == | + | == Virt-resize with Partitions == |
+ | |||
+ | |||
+ | |||
+ | == Virt-resize with LVM: [[pvresize]] == | ||
<pre> | <pre> | ||
virt-resize --expand /dev/sda4 my_machine-ORIGIN.qcow2 my_machine.qcow2 | virt-resize --expand /dev/sda4 my_machine-ORIGIN.qcow2 my_machine.qcow2 | ||
Line 29: | Line 33: | ||
</pre> | </pre> | ||
+ | |||
+ | |||
+ | == Virt-resize with LVM: [[resize2fs]] == | ||
+ | |||
+ | .../... | ||
+ | [7873.9] Expanding /dev/sda1 using the '[[resize2fs]]' method | ||
+ | |||
+ | Resize operation completed with no errors. Before deleting the old disk, | ||
+ | carefully check that the resized disk boots and works correctly. | ||
== See also == | == See also == | ||
+ | * {{virt-resize}} | ||
* {{virt}} | * {{virt}} | ||
+ | |||
+ | [[Category:KVM]] |
Latest revision as of 09:27, 22 October 2020
Contents
Virt-resize with Partitions[edit]
Virt-resize with LVM: pvresize[edit]
virt-resize --expand /dev/sda4 my_machine-ORIGIN.qcow2 my_machine.qcow2 [ 0.0] Examining my_machine.qcow ********** Summary of changes: /dev/sda1: This partition will be left alone. /dev/sda2: This partition will be left alone. /dev/sda3: This partition will be left alone. /dev/sda4: This partition will be resized from 99.3G to 299.3G. The LVM PV on /dev/sda4 will be expanded using the 'pvresize' method. ********** [ 5.2] Setting up initial partition table on my_machine.qcow2 [ 17.5] Copying /dev/sda1 [ 17.5] Copying /dev/sda2 [ 18.0] Copying /dev/sda3 100% ⟦▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒⟧ 00:00 [ 258.7] Expanding /dev/sda4 using the 'pvresize' method Resize operation completed with no errors. Before deleting the old disk, carefully check that the resized disk boots and works correctly.
Virt-resize with LVM: resize2fs[edit]
.../... [7873.9] Expanding /dev/sda1 using the 'resize2fs' method
Resize operation completed with no errors. Before deleting the old disk, carefully check that the resized disk boots and works correctly.
See also[edit]
Advertising: