Cant get VM disk size to fill available

mudhauler

New Member
Apr 19, 2023
3
0
1
I resized the disk of a VM via the GUI and followed the directions to get the VM to recognize it but I cant get it to work I think. Why is it showing Used 7.5G of 7.3G Avail?

Code:
~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
tmpfs           393M 1008K  392M   1% /run
/dev/sda2        16G  7.7G  7.3G  52% /
tmpfs           2.0G     0  2.0G   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           393M  4.0K  393M   1% /run/user/1000

When logging in the the VM it shows:
Usage of /: 48.7% of 15.64GB
 
lsblk shows:

Code:
~$ lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
loop0    7:0    0  63.3M  1 loop /snap/core20/1822
loop1    7:1    0  63.3M  1 loop /snap/core20/1852
loop2    7:2    0 111.9M  1 loop /snap/lxd/24322
loop3    7:3    0  49.8M  1 loop /snap/snapd/18596
loop4    7:4    0  53.2M  1 loop /snap/snapd/18933
sda      8:0    0    16G  0 disk
├─sda1   8:1    0     1M  0 part
└─sda2   8:2    0    16G  0 part /
sr0     11:0    1   1.8G  0 rom
 
I resized the disk of a VM via the GUI and followed the directions to get the VM to recognize it but I cant get it to work I think.
From what initial size to what size did you change the disk? As @bbgeek17 already made you verify, the VM sees a block device of 16G. Please post the VM config qm config <VMID> and the storage config cat /etc/pve/storage.cfg if that is not what you are expecting.