On 8/12/19 7:41 PM, Franz wrote:
> @Chris
>
> On Mon, Aug 12, 2019 at 1:22 PM Chris Laprise <
tas...@posteo.net
> <mailto:
tas...@posteo.net>> wrote:
>
> On 8/12/19 12:03 PM, Franz wrote:
> > On the upper right corner of the screen a black message alert:
> >
> > Disk usage warning!
> > You are running out of disk space. 4.8% space left in pool lvm.
> >
> > Sometimes the message is a bit different referring to rw instead
> >
> > If I run df in dom0 all items usage Is below 24%
> >
> > So what should I do with that alert?
> >
> > IMHO these alerts are too cryptic
> > Best.
>
> Df is completely inaccurate when Qubes 4 is using the default (lvm).
>
> The best overall indicator to use is the disk space widget in the
> systray.
>
>
> Thanks, I understand you are referring to a new plugin to add to the
> panel. if you are using default Xfce. There is one called "Free Space
> Checker" .
>
> Once installed it tells 416GB are free. So no reason for the alert here
This doesn't sound like the same tool. The Qubes disk space widget says
'qui-disk-space' when you mouse over it, and when you click it shows
total disk usage along with a line for 'lvm' near the bottom. If its not
running on your systray already, you can start it manually from the
shell by typing 'qui-disk-space'.
>
> The best way to view individual VM disk usage is from Qube Manager.
>
>
> Yes this shows disk usage for each VM , but no way to understand which
> VM may have problems.
Because Qubes is using over-provisioning, none of the individual VMs may
have a problem per se, even though you are running out of space in the
overall lvm storage.
If you add up the numbers shown in Qube Manager, you can get an idea of
how each VM is contributing to the low space warning.
Also, doing an 'lvs' in the shell will show meaningful stats if you know
what to look for (IMO, using the space widget and QM is easier).
>
> In other words, an alert that does not tell which VM is involved have a
> sort of terror effect. You understand that something can break every
> moment, but no way to understand where the problem is.
I doubt its designed to say which of the VMs has most recently expanded,
if that's what you mean by "where the problem is". The basic problem is
being aware of your total space, and how much usage each VM _should_
have. It may be that you forgot about disk space and unexpectedly ran
low, so there is a decision to make whether to remove unneeded items or
upgrade to more storage.
OTOH, maybe one or two VMs expanded beyond reasonable expectations.
Looking inside the larger VMs with 'baobab' is the best way to start
investigating that possibility.
>
>
> To graphically examine disk usage within a VM, you can use the gnome
> "Disk usage" app. The shell executable name for this is "baobab".
>
>
> This can be done if you already know which VM has problems. But starting
> tens of VMs fishing for the one with problems seems too much. Also I
> suspect that those black alert messages in the upper right corner of the
> screen are related to dom0, rather than to specific VMs.
In QM, click on the 'Disk Usage' column heading and it will sort the VMs
by disk space used. That should point you in the right direction and
maybe you'll only need to look at the 2-3 of the largest VMs.
>
> So from my viewpoint these alerts have no practical use, other then
> remembering that computers are a fragile thing and that it may be time
> to do a backup.
> Best
The practical part is that you know you should avoid activities that
would use (significant) additional disk space, such as downloading or
duplicating large files... at least until you've cleared out some space
or added more storage. Its not terribly unlike a regular disk warning,
only instead of just files it is VMs+files you have to think about.