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?
 


KGIII

Super Moderator
Staff member
Gold Supporter
Joined
Jul 23, 2020
Messages
9,120
Reaction score
7,738
Credits
74,470
You might find it easier using a GUI:


You can clean logs:


Clean apt cache:

 
OP
S

SunshineGardenSmell

New Member
Joined
Mar 27, 2022
Messages
7
Reaction score
0
Credits
69
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
 

osprey

Well-Known Member
Joined
Apr 15, 2022
Messages
691
Reaction score
574
Credits
6,441
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