Storage space required by .img files


ssh

Recommended Posts

I have two cache pools. One of which is dedicated for my vms. This "vm" pool contains 1 device (a 250 GB SSD) is formatted as XFS.

There are currently 2 "vdisk1.img" files stored on that disk. They are listed as being 64.4 GB each.

Besides those, the only other thing that is on this SSD is the libvirt.img, which obtains 1.07 GB.

 

In my Unraid Main page, it shows that only 75.9 GB of the total 250 GB is used which is half of what I'd expect.

Is this a bug in calculating / showing the storage space used? Or do these .img files only take up the size according to how full they are?

 

If the latter is true, does that mean that I can in theory have more than 250GB of .img files stored on this disk? As long as they are not all full of course.

Edited by ssh
Link to comment
42 minutes ago, ssh said:

Or do these .img files only take up the size according to how full they are?

 

If the latter is true, does that mean that I can in theory have more than 250GB of .img files stored on this disk? As long as they are not all full of course.

This. vdisks are created sparse by default.

 

However, over-committing the available space can bite you if you don't manage it carefully.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.