-
-
Notifications
You must be signed in to change notification settings - Fork 53
Description
Qubes OS version:
R4.0 RC2
Affected TemplateVMs:
none (dom0 issue)
Steps to reproduce the behavior:
Try to find out how much free space is left on the device after a standard QubesOS 4.0 RC2 install and some moderate use.
Expected behavior:
Have an easy way (GUI and/or CLI) to determine:
- how much free space is left on the disk
- which VMs occupy up the most space (i.e. sort VMs by total space used)
It that's difficult with LVM thin provisioning, at least to have some official documentation that explains how to do it and the potential pitfalls (more on this below).
Actual behavior:
I did not find an easy user-friendly way to get useful information regarding the free and used storage space in R4.0 RC2. Here are some of the things I tried:
df -h /in dom0 is totally misleading, the available space it shows is wrong (and it looks like it's misleading in several ways due to this )- I don't think that information is correctly shown anywhere in the GUI, all file managers and free space widgets are misleading - they show only the virtual (thinly provisioned) free dom0 root space...
- Try to use the output of
qvm-ls --format diskto sum up the used space by VMs (something likeecho "$(( $(qvm-ls --format disk | awk '{print $3; }' | paste -sd'+') ))"and add dom0 separately...) is probably also misleading if I have cloned VMs - I think they are shallow clones, but their DISK size is identical to the parent VM when shown byqvm-ls --format disk - Use the normal LVM tools to try and find the free space... My knowledge of LVM is very basic, especially regarding thin provisioning. At first the
PFreecolumn insudo pvsat first seemed to do the job, but I'm still not sure how accurate that is. I have to thoroughly review the linked issues and understand LVM and how the current storage design works to be sure... - The new(?)
qvm-pooltool is of no use, it just lists the different storage pool names.
The documentation about the new storage system seems outdated and incomplete.
General notes:
Any help is appreciated. Also, what are the benefits of the LVM model of provisioning compared to the old file-based model? And is there a way to use the old model by default? I don't remember seeing an option in the installer for this, but I may have missed it.
Right now I'm not convinced that the LVM volumes for VMs are worth it... I am strongly considering whether to use qvm-clone -P varlibqubes to transfer all VMs to the old file storage mechanism, if that's the way to actually do it. It looks that I can also use qubes-prefs to set it as a default as well.
Related issues:
I found those issues regarding the new storage system: #1842 and #2256; there probably are others