Differences between virtual size and disk size

Catastrofik

Member
Aug 16, 2017
2
0
21
38
Hi everyone,

I have a very strange problem, which is very disturbing!

Let me explain :)

I have a server on PVE 4.4-15/7599e35a. This server is a very nice atom 8 cores, with 16Gb ram and enough SSD space.
I have a VM (.raw) with debian 9, php 7.1 etc... (a war machine lol!) and i'm trying since 3 days at least to increase the disk size !

I made this step a million time, the same time, just by increasing with the web gui the space, turn off/on the VM and the disk was immediatly rezised !

But this time, that doesn't work at all. I tried to increase with qemu-img resize -f raw .. +x G, didn't work, i tried to convert to qcow2, same thing, etc..

When i check the fdisk partition state i have this
Disque /dev/vda1 : 24 GiB, 25700597760 octets, 50196480 secteurs

When i do df -h / in my VM it tells me i've only 24Gb too
/dev/vda1 24G 22G 908M 97% /

BUT

When i'm checking on the host with . qemu-img info vm-110-disk-1.raw i have that :
image: vm-110-disk-1.raw
file format: raw
virtual size: 66G (70866960384 bytes)
disk size: 23G

What can i do to force my VM to see the virtual size allowed (66Gb) ?

thx!
 
I agree for qcow2, it would have been better, but, the reason i'm going crazy, is that i made that a million times on others VM with .raw, a million time i increased the size with the web gui without any troubles even without any changes on linux partition tables ! i'm gonna try your link!