ssh Posted March 20, 2021 Share Posted March 20, 2021 (edited) 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 March 20, 2021 by ssh Quote Link to comment
John_M Posted March 20, 2021 Share Posted March 20, 2021 36 minutes ago, ssh said: Or do these .img files only take up the size according to how full they are? This. They are created as "sparse files". They grow as necessary, which will become a problem if you overcommit your storage and neglect to monitor its usage. Quote Link to comment
JonathanM Posted March 20, 2021 Share Posted March 20, 2021 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. Quote Link to comment
Recommended Posts
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.