Difference between revisions of "Extend LVM on qcow2 images"
Jump to navigation
Jump to search
Line 14: | Line 14: | ||
* [[wwikipedia:Qcow|Qcow]] file format | * [[wwikipedia:Qcow|Qcow]] file format | ||
* <code>[[virt-resize]]</code> | * <code>[[virt-resize]]</code> | ||
+ | * {{LVM}} | ||
[[Category:Linux]] | [[Category:Linux]] | ||
[[Category:Virtualization]] | [[Category:Virtualization]] |
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
- LVM: LVM errors LVM scan commands
lkvmetad
, Add a new disk
- scan:
pvscan
vgscan
- LVM:
lvs
lvmscan
lvm fullreport
lvmreport
lvmconfig
lvmdump
lvmcheck
lvm dumpconfig
- Scan:
pvs
vgs
lvs
pvscan
vgscan
- PV:
pvcreate
pvremove
pvscan
pvremove
pvscan
pvs
pvchange
pvck
pvdisplay
pvresize
- LV:
lvdisplay
lvcreate
lvremove
,lvresize
,lvextend
,lvreduce
,lvrename
- VG:
vgdisplay
,vgcreate
,vgremove
,vgextend
,vgreduce
,vgscan
,vgchange
,vgrename
,vgcfgbackup
,vgcfgrestore
,vgimportclone
,vgck
- Check commands:
pvck
vgck
Advertising: