On 5/1/23 06:51, Bonno Bloksma wrote:
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.blok...@tio.nl | www.tio.nl
Volg ons op Facebook | LinkedIn | Instagram | YouTube
I use apt-get(8) 'update', 'upgrade', and 'dist-upgrade' on my Debian
instances and let it deal with /usr/lib/modules. Here is my daily
driver, installed on March 16, 2023, and updated/ dist-upgraded on April
29, 2023:
2023-05-01 10:55:22 root@taz ~
# cat /etc/debian_version ; uname -a
11.7
Linux taz 5.10.0-22-amd64 #1 SMP Debian 5.10.178-3 (2023-04-22) x86_64
GNU/Linux
2023-05-01 11:00:53 root@taz ~
# l -1 /boot/vmlinuz*
/boot/vmlinuz-5.10.0-21-amd64
/boot/vmlinuz-5.10.0-22-amd64
2023-05-01 11:01:36 root@taz ~
# du -mx -d 2 /usr/lib | sort -rh | head
2886 /usr/lib
950 /usr/lib/x86_64-linux-gnu
634 /usr/lib/modules
315 /usr/lib/modules/5.10.0-22-amd64
315 /usr/lib/modules/5.10.0-21-amd64
286 /usr/lib/libreoffice
215 /usr/lib/firefox-esr
211 /usr/lib/libreoffice/program
175 /usr/lib/jvm/java-11-openjdk-amd64
175 /usr/lib/jvm
Please run the above commands on one of your Debian 11 instances and
reply with the console session.
David