VM using less space than intended

Hi,
I am new to truenas and this might be a super easy fix but I don’t know how to do it. I have a problem with how much space my vm is getting from the zvol associated with it. On the storage tab under “Used/available” i see that it’s using 69.37 GiB / 829.81 GiB, but when i turn on the vm and connect to the display the vm says that it’s using 94,6% of 71,77 GB. I think because of that apps that have been running on that vm are unresponisve and that’s the main problem i’ve been trying to fix. I am happy to give any details that would be crucial to solving this issue. Below are the ones i think might be important:
-VM OS is ubuntu 24.04.1 LTS
-disk type is ssd
-under VM → devices → disk:

  • Mode: AHCI
  • Disk selector size: Default

As said above if there are any other information that are helpful in this matter I’m happy to give them

I would suggest reading other forum posts while waiting for answers and completing the new user tutorial, if you haven’t. It will help get your forum Trust Level up for more posting rights.

TrueNAS-Bot
Type this in a new reply and send to bring up the tutorial, if you haven’t done it already.

@TrueNAS-Bot start tutorial

On the storage tab it is showing how much space it is actually using and how much space is left in the pool, not how much space is left in the zvol. The widget shows how much space is left inside the zVol - and hopefully this matches what you see inside the VM.
image

You can make sparse or non-sparse zVols. The actual usage of a non-sparse zVol is always the size of the zVol you specified when you created it. A sparse volume only uses the amount of space it needs to to hold the data, and the actual space use reflects this. Here is a screen shot of two 10GiB zVols I just created - a non-sparse one and a sparse one - and they have never been used so that is the only difference between them…

You need to increase the Zvol size, and then increase the VMs file system size.

This may be applicable if you are using LLVM in the VM

Thank you Protopia and Stux, everything is working now an i better understand how zvols work. Closing the Thread as it’s solved

1 Like