On Mon, May 30, 2022 at 7:56 AM Yedidyah Bar David <didi@redhat.com> wrote:
On Fri, May 27, 2022 at 11:04 AM Gianluca Cecchi
<gianluca.cecchi@gmail.com> wrote:
>
> Hello,
> I have a local based storage domain that has got full, so that it is now inactive and virtual machines that are on it are paused (vm paused due to lack of storage space).
> Any advice on how to clean up, eventually deleting some of them?
>
> # df -h /2t_2
> Filesystem                Size  Used Avail Use% Mounted on
> /dev/mapper/vg_2t_2-2t_2  1.8T  1.7T     0 100% /2t_2

Why is the size (1.8T) different from Used (1.7T) despite Use%=100%?

If this is because it's an ext4 filesystem, you can try reducing the
amount reserved to root ('tune2fs -m 1' or so). I think the fs should
be unmounted for this.


Yes, I think the reserved default space.
In the meantime I selected a not important VM where I had a 100Gb data disk (it was the only one of this type of disk size, so it was easy to find it on filesystem) and executed

cat /dev/null > disk_file

so that I didn't have any logical inconsistency from oVirt point of view and 100Gb of space immediately released.
Then I was able to activate the storage domain and delete the VM and go on with further analysis on disk usage.

Anyway it would be useful to have a way to search through the engine database to have an easier mapping between disk files and VMs.

Gianluca