Difference between revisions of "Extend LVM on qcow2 images"
Jump to navigation
Jump to search
(Created page with "* Follow https://www.technomenace.com/2014/08/how-to-extend-lvm-on-qcow2-images/ * <code>qemu-img resize c845ba080f2326a51c53965af1ac6c18 +3G</code> * Modi...") |
|||
Line 3: | Line 3: | ||
− | * <code>[[ | + | * <code>[[qemu-img]] resize c845ba080f2326a51c53965af1ac6c18 +3G</code> |
* Modify partition with: <code>fdisk /dev/vdX</code> + Reboot | * Modify partition with: <code>fdisk /dev/vdX</code> + Reboot | ||
* <code>[[pvresize]] /dev/vdX#</code> (Expand a PV after enlarging the partition) | * <code>[[pvresize]] /dev/vdX#</code> (Expand a PV after enlarging the partition) | ||
Line 12: | Line 12: | ||
== See also == | == See also == | ||
* Read about raw files and [[qcow2]] differences: https://www.berrange.com/posts/2017/02/10/the-surprisingly-complicated-world-of-disk-image-sizes/ | * Read about raw files and [[qcow2]] differences: https://www.berrange.com/posts/2017/02/10/the-surprisingly-complicated-world-of-disk-image-sizes/ | ||
− | * [[ | + | * [[wwikipedia:Qcow|Qcow]] file format |
* <code>[[virt-resize]]</code> | * <code>[[virt-resize]]</code> | ||
[[Category:Linux]] | [[Category:Linux]] |
Revision as of 09:37, 2 January 2020
qemu-img resize c845ba080f2326a51c53965af1ac6c18 +3G
- Modify partition with:
fdisk /dev/vdX
+ Reboot pvresize /dev/vdX#
(Expand a PV after enlarging the partition)lvextend -L +1.8G /dev/mapper/VolGroup-lv_root
resize2fs /dev/mapper/VolGroup-lv_root
See also
- Read about raw files and qcow2 differences: https://www.berrange.com/posts/2017/02/10/the-surprisingly-complicated-world-of-disk-image-sizes/
- Qcow file format
virt-resize
Advertising: