• We did not send an email asking for donations - please read this post.

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
7,382
Reaction score
6,371
Credits
59,826
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

Active Member
Joined
Apr 15, 2022
Messages
263
Reaction score
163
Credits
2,421
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.
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Linux.org Hosting Donations
Consider making a donation

Members online


Top