I am running out of disk space (the symptom being that virsh won’t create a new vm with an error indicating lack of space.
So I am trying to make space but can not see any difference even after removing quite large items.
1. checking usage
$ sudo df -h /
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 443G 436G 4,6G 99% /
2. identifying a large file
$ sudo find /var/lib/libvirt -name WS19.qcow2 -exec ls -lh {} \;
-rw------- 1 root kvm 41G 7. Okt 2020 /var/lib/libvirt/images/WS19.qcow2
3. removing that file
$ sudo find /var/lib/libvirt -name WS19.qcow2 -exec rm {} \;
4. checking usage again
$ sudo df -h /
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 443G 436G 4,6G 99% /
so, the deletion of 41G did not change the ‘df -h’ output whatsoever. What am I doing wrong? rm
should get rid of this without moving it to the Trash first I think (even checked the Trash. The 41G file is not in there).
it seems btrfs filesystem df
neither catches the deletion
sudo btrfs fi df /
Data, single: total=432.37GiB, used=427.79GiB
- The VM’s to which that disk belongs are not running.
-
lsof | grep WS19.qcow2
does not show anything. - the file is not in the trash bin (neither my user’s, nor root’s)
not sure what else I can try