[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

disk usage for /usr/lib on bullseye



Hi,

On my "new" Bullseye machines the root volume starts to fill up. The cause seems to be the /usr/lib folder.
On my older Buster (10.13) machine the total /usr directory is 701M, the /usr/lib folder is 260M
In my /usr/lib folder on Buster is NO /usr/lib/modules folder

On my Bullseye machines the /usr/lib folder is 2+GB on the machines that have been operating for a while and 1+G on a machine that has been operating for a shorter while.

The cause seems to be the folder /usr/lib/modules# 
linams:/usr/lib/modules# du * -sh
4.7M    5.10.0-10-amd64
4.7M    5.10.0-11-amd64
4.7M    5.10.0-12-amd64
4.7M    5.10.0-13-amd64
4.7M    5.10.0-15-amd64
4.7M    5.10.0-16-amd64
309M    5.10.0-18-amd64
309M    5.10.0-19-amd64
309M    5.10.0-20-amd64
309M    5.10.0-21-amd64
309M    5.10.0-22-amd64
4.7M    5.10.0-7-amd64
4.7M    5.10.0-8-amd64
4.7M    5.10.0-9-amd64

And
linutr:/usr/lib/modules# du * -sh
4.7M    5.10.0-16-amd64
4.7M    5.10.0-17-amd64
309M    5.10.0-18-amd64
309M    5.10.0-19-amd64
309M    5.10.0-20-amd64
309M    5.10.0-21-amd64

And
lola:/usr/lib/modules# du * -sh
4.7M    5.10.0-13-amd64
4.7M    5.10.0-19-amd64
309M    5.10.0-20-amd64
309M    5.10.0-21-amd64
309M    5.10.0-22-amd64

Guessing on what I see these are libraries for older kernel versions. I usually clean up older kernel versions by using
# apt autoremove"
All 3 servers have 1 older kernel version installed according to apt autoremove.


Why is this stuff there? Can I delete it?
If I can delete it, is there a proper way to clean it up or do I just rm /usr/lib/modules/5.10.0-.... for the older kernels?

Is this a BUG in Bullseye?


p.s. Looking at this I just noticed I need to do an update on lunutr, I will dis that right after sending this mail ;-)


Met vriendelijke groet,
Bonno Bloksma
Senior Systeembeheerder


St. Jacobsstraat 400 | 3511 BT | Utrecht
030 - 3036 877 | direct 040-7 999 832
b.bloksma@tio.nl | www.tio.nl

Volg ons op Facebook | LinkedIn | Instagram | YouTube 


Reply to: