VM full, but where's the files?

SunshineGardenSmell

New Member
Joined
Mar 27, 2022
Messages
7
Reaction score
0
Credits
69
So I got a Debian KVM QEMU Virt Manager VM with 20G of memory.
I've been using it for months without issue. However, recently it's gotten full.

Okay, no problem, I'll delete stuff. But when I go to delete things, everything is small.
Like if I run:

Code:
du -h | sort -hr | head -n 10

It gives a couple 1GB files of software. What's taking up all this space?! If it was the OS itself, why did I go for months with plenty of extra room?
 


You might find it easier using a GUI:


You can clean logs:


Clean apt cache:

 
You might find it easier using a GUI:


You can clean logs:


Clean apt cache:

Alright that was super useful. The log clear got rid of 3 GB.
And I can see with this Baobab tool the files

However, even after running that clean, there's still a ton of random junk.

this folder:
Var/log/journal/
Has 2 GB of random logs, can I just delete it?

There's random stuff in usr and Var in general
 
You don't need to hold onto old logs, unless you think you're going to need them.
 
SunshinegardenSmell wrote:
Var/log/journal/
Has 2 GB of random logs
To prevent large journal entries such as the one you mention, you could limit the journal's size by entering a size that you decide in the configuration file: /etc/systemd/journald.conf. For example, this machine has: SystemMaxUse=50M, which actually is enough room to hold about 2 weeks of journal entries. If the machine is a very heavy user of lots of applications, then a greater size may be preferred. If the configured size is not found to be enough, it's easily adjusted.
 

Members online


Latest posts

Top