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

Re: disk usage for /usr/lib on bullseye



On 5/1/23 11:14, Bret Busby wrote:

On 5/1/23 06:51, Bonno Bloksma wrote:
Hi,

On my "new" Bullseye machines the root volume starts to fill up.

Have you tried running also
apt autoclean
and
apt purge
?


I updated and cleaned my daily driver recently:

2023-04-29 11:54:03 root@taz ~
# apt-get update
<snip>

2023-04-29 11:54:29 root@taz ~
# apt-get upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  linux-headers-amd64 linux-image-amd64
<snip>
Do you want to continue? [Y/n] n
Abort.

2023-04-29 11:54:55 root@taz ~
# apt-get dist-upgrade
<snip>

2023-04-29 12:31:08 root@taz ~
# apt autoremove
<snip>

2023-04-29 12:32:11 root@taz ~
# apt clean
<snip>

2023-04-29 12:34:22 root@taz ~/taz.tracy.holgerdanske.com
# fstrim -a
<snip>


Something for today -- systemd journal:

2023-05-01 12:20:57 root@taz ~
# du -mx -d 1 /var/log | sort -nr | head
426	/var/log
401	/var/log/journal
15	/var/log/installer
1	/var/log/speech-dispatcher
1	/var/log/runit
1	/var/log/private
1	/var/log/lightdm
1	/var/log/cups
1	/var/log/apt

2023-05-01 12:23:03 root@taz ~
# journalctl --disk-usage
Archived and active journals take up 400.0M in the file system.

2023-05-01 12:25:46 root@taz ~
# journalctl --vacuum-size=100M
<snip>

2023-05-01 12:28:05 root@taz ~
# journalctl --disk-usage
Archived and active journals take up 104.0M in the file system.

2023-05-01 12:28:35 root@taz ~
# du -mx -d 1 /var/log | sort -nr | head
130	/var/log
105	/var/log/journal
15	/var/log/installer
1	/var/log/speech-dispatcher
1	/var/log/runit
1	/var/log/private
1	/var/log/lightdm
1	/var/log/cups
1	/var/log/apt


Current usage of boot and root:

2023-05-01 12:34:52 root@taz ~
# df /boot /
Filesystem             1M-blocks  Used Available Use% Mounted on
/dev/sda2                   921M  118M      740M  14% /boot
/dev/mapper/sda4_crypt    11145M 6575M     3983M  63% /


David


Reply to: