Mailinglist Archive: opensuse-factory (914 mails)

< Previous Next >
Re: [opensuse-factory] out of curiosity - / grow from 10 to 12GB
Suprred by this thread, I decided to investigate my own disk usage situation and found that BTRFS subvolumes don't seem to be well handled by the various tools that report disk usage. My / partition is 40G, with the full complement of BTRFS subvolumes that the YaST installer sets up by default. I'm trying to figure out how much space is used:

$ > df -hl /
Filesystem Size Used Avail Use% Mounted on
/dev/nvme0n1p2 40G 22G 19G 54% /

But that can't be right...

$ sudo du -ch / -d 1
[sudo] password for root:
18M /etc
240G /.snapshots
79M /boot
62M /opt
1.4M /srv
361M /tmp
5.5G /usr
1.8G /var
57G /home
4.0K /dev
0 /proc
0 /sys
1.8M /run
2.7M /bin
615M /lib
13M /lib64
0 /mnt
11M /root
12M /sbin
0 /selinux
0 /media
305G /
305G total

Heh, that's even worse. Dolphin agrees with df, but Filelight comes up with its own answer and says that 8.9G is used.

What is the canonical source of truth for disk usage on BTRFS volumes with subvolumes?


On 06/04/2017 07:29 AM, Peter Mc Donough wrote:
Am 04.06.2017 um 13:21 schrieb Neil Rickert:
On 06/03/2017 02:48 PM, Peter Mc Donough wrote:

I noticed that the stuff on my ext4-root-partition has grown by more
than 20% over the last few month and I'm not aware that I added anything
Usual requirements have been for years around 10GB.

Addition: This is fresh "KDE-Tumbleweed" from around Nov. 2016, with one "/" and one "/home" partition, both on ext4.

I'm still under 10G.

That size I know from previous openSuse variants, below you can see that tmp is set to be regularly cleaned by the system.

Check how many kernels you have:
ls -l /boot/vmlinuz*

the usual suspects:
du -hx /boot 72M /boot
du -hx /tmp 80K /tmp
du -hx /var/tmp 84K /var/tmp
du -hx /var/lib/systemd/coredump 2,0M /var/lib/systemd/coredump
du -hx /var/log 314M /var/log

du -hx / shows

4,2M /root
1,4M /srv
2,3M /bin
8,5M /sbin
14M /lib64
19M /etc
706M /lib
767M /opt (libreoffice 5.2)
1,1G /var
8,8G /usr
12G /

/usr with 8.8G is the frist suspect,

59M /usr/sbin
35M /usr/include
692M /usr/lib
2,5G /usr/lib64
132K /usr/local
522M /usr/bin
1,6G /usr/src (two kernels, 4.11.3-x, 4.11.2-x)
3,5G /usr/share

Also, open Yast Software Management. Select the "Package groups" view.
Click on "orphaned packages". These are packages that are no longer in
any of your enable repos. I do a cleanup there from time to time.

Nothing "red" there.

Could you have a look at the size of the biggest directoryies in /usr


To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-factory+owner@xxxxxxxxxxxx

< Previous Next >