- Resize with
qemu-img in host:
1sudo qemu-img resize /var/lib/libvirt/images/fedora-kernel.qcow2 +15G
- Check the new size in host:
1[ecomaikgolf@laptop ~/]$ sudo qemu-img info /var/lib/libvirt/images/fedora-kernel.qcow2
2image: /var/lib/libvirt/images/fedora-kernel.qcow2
3file format: qcow2
4virtual size: 35 GiB (37580963840 bytes)
5disk size: 15.1 GiB
6cluster_size: 65536
7Format specific information:
8 compat: 1.1
9 compression type: zlib
10 lazy refcounts: true
11 refcount bits: 16
12 corrupt: false
13 extended l2: false
14Child node '/file':
15 filename: /var/lib/libvirt/images/fedora-kernel.qcow2
16 protocol type: file
17 file length: 20 GiB (21478506496 bytes)
18 disk size: 15.1 GiB
- (LVM) Resize from guest:

- (LVM) Resize LVM partition:
1sudo pvresize /dev/vda3
1[6.7.4-200.fc39.x86_64 ~/]$ sudo pvdisplay
2 --- Physical volume ---
3 PV Name /dev/vda3
4 VG Name fedora
5 PV Size <34.00 GiB / not usable 16.50 KiB <-- NEW SIZE
6 Allocatable yes
7 PE Size 4.00 MiB
8 Total PE 8703
9 Free PE 3840
10 Allocated PE 4863
11 PV UUID Njz9OK-9e0P-Owt3-hEB6-bSNc-S4gz-OhaErD
1sudo lvextend -l +100%FREE /dev/fedora/root
1[6.7.4-200.fc39.x86_64 ~/]$ sudo lvs
2 LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
3 root fedora -wi-ao---- <34.00g <-- NEW SIZE
1[6.7.4-200.fc39.x86_64 ~/]$ sudo lsblk
2NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
3zram0 251:0 0 1.9G 0 disk [SWAP]
4vda 252:0 0 35G 0 disk
5|-vda1 252:1 0 1M 0 part
6|-vda2 252:2 0 1G 0 part /boot
7`-vda3 252:3 0 34G 0 part
8 `-fedora-root 253:0 0 34G 0 lvm / <-- NEW SIZE
- “Enlarge FS size”
1[6.7.4-200.fc39.x86_64 ~/]$ sudo xfs_growfs /dev/fedora/root
2meta-data=/dev/mapper/fedora-root isize=512 agcount=4, agsize=983040 blks
3 = sectsz=512 attr=2, projid32bit=1
4 = crc=1 finobt=1, sparse=1, rmapbt=0
5 = reflink=1 bigtime=1 inobtcount=1 nrext64=0
6data = bsize=4096 blocks=3932160, imaxpct=25
7 = sunit=0 swidth=0 blks
8naming =version 2 bsize=4096 ascii-ci=0, ftype=1
9log =internal log bsize=4096 blocks=16384, version=2
10 = sectsz=512 sunit=0 blks, lazy-count=1
11realtime =none extsz=4096 blocks=0, rtextents=0
12data blocks changed from 3932160 to 8911872