On Fri, May 27, 2022 at 11:04 AM Gianluca Cecchi
<gianluca.cecchi(a)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.
[root@ovirt01 fdf9546c-68fa-42c9-8a10-78ef3ee534b8]#
Is there any easy way to map disk-to-vm of directories inside
/2t_2/images/dbf9611d-9090-42d6-81e0-58105bc20011/images/ so that I can
"sacrifice" some VMs deleting the corresponding disks' directories, to be
able at least to activate the storage domain again and make a cleaner check?
I don't believe severe damage can happen by doing this, but really have no idea.
Or any other suggestions? I'm not able to expand it.
Perhaps you can also temporarily move some VMs' disks to some other
local storage and symlink there - no idea what vdsm might do. I think
qemu will be happy, if it can access them (you might need to play with
permissions/selinux/etc).
I'd personally try any of the above on a test setup first.
It is not directly managed by me and I suppose too much storage
over-provisioning has been done.
Good luck and best regards,
--
Didi