Running out of space in root partition

Hi, as in the title I’m running out of space in my root partition (33GB used of 40 GB), I noticed it yesterday just after the distribution upgrade but I’m not sure if it was in this state before the ‘dup’.

Is this situation normal or I have to clean up?
Or it’s just that I have a lot of program and I need to resize my ‘/’ ?

this is the result of df

dan@suse-linux:~]:$ df -h
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        7,8G     0  7,8G   0% /dev
tmpfs           7,8G   52M  7,8G   1% /dev/shm
tmpfs           7,8G  2,5M  7,8G   1% /run
tmpfs           7,8G     0  7,8G   0% /sys/fs/cgroup
/dev/sda7        41G   33G  5,9G  86% /
/dev/sda7        41G   33G  5,9G  86% /.snapshots
/dev/sda7        41G   33G  5,9G  86% /srv
/dev/sda7        41G   33G  5,9G  86% /usr/local
/dev/sda7        41G   33G  5,9G  86% /boot/grub2/x86_64-efi
/dev/sda7        41G   33G  5,9G  86% /var/lib/mailman
/dev/sda7        41G   33G  5,9G  86% /var/lib/pgsql
/dev/sda7        41G   33G  5,9G  86% /var/lib/mariadb
/dev/sda7        41G   33G  5,9G  86% /var/lib/named
/dev/sda7        41G   33G  5,9G  86% /var/crash
/dev/sda7        41G   33G  5,9G  86% /boot/grub2/i386-pc
/dev/sda7        41G   33G  5,9G  86% /var/lib/libvirt/images
/dev/sda7        41G   33G  5,9G  86% /opt
/dev/sda7        41G   33G  5,9G  86% /var/lib/machines
/dev/sda7        41G   33G  5,9G  86% /var/lib/mysql
/dev/sda7        41G   33G  5,9G  86% /var/tmp
/dev/sda7        41G   33G  5,9G  86% /tmp
/dev/sda7        41G   33G  5,9G  86% /var/spool
/dev/sda7        41G   33G  5,9G  86% /var/log
/dev/sda7        41G   33G  5,9G  86% /var/opt
/dev/sda2        96M   29M   68M  30% /boot/efi
/dev/sda8       446G   41G  406G  10% /home
tmpfs           1,6G     0  1,6G   0% /run/user/484
tmpfs           1,6G   12K  1,6G   1% /run/user/1000

an this is the result of du:

dan@suse-linux:~]:$ sudo du -a -h / | sort -n -r | head -n 100   
root's password:
du: cannot access '/proc/6254/task/6254/fd/4': No such file or directory
du: cannot access '/proc/6254/task/6254/fdinfo/4': No such file or directory
du: cannot access '/proc/6254/fd/3': No such file or directory
du: cannot access '/proc/6254/fdinfo/3': No such file or directory
du: cannot access '/run/user/1000/gvfs': Permission denied
1021K   /boot/efi/EFI/Microsoft/Boot/memtest.efi
1020K   /var/cache/apparmor
1020K   /usr/share/texmf/tex/xelatex/bidi
1020K   /usr/share/texmf/doc/latex/sauerj
1020K   /usr/share/ksmserver/themes/contour
1020K   /usr/share/icons/Moka/256x256@2x/places
1020K   /usr/share/fonts/uni/newunifont.pcf.gz
1020K   /usr/sbin/grub2-macbless
1020K   /usr/lib/mono/4.5/Facades
1020K   /usr/lib64/libreoffice/presets/database
1020K   /usr/lib64/libQtOpenGL.so.4.8.6
1020K   /.snapshots/764/snapshot/var/cache/apparmor
1020K   /.snapshots/764/snapshot/usr/share/texmf/tex/xelatex/bidi
1020K   /.snapshots/764/snapshot/usr/share/texmf/doc/latex/sauerj
1020K   /.snapshots/764/snapshot/usr/share/ksmserver/themes/contour
1020K   /.snapshots/764/snapshot/usr/share/icons/Moka/256x256@2x/places
1020K   /.snapshots/764/snapshot/usr/share/fonts/uni/newunifont.pcf.gz
1020K   /.snapshots/764/snapshot/usr/sbin/grub2-macbless
1020K   /.snapshots/764/snapshot/usr/lib/mono/4.5/Facades
1020K   /.snapshots/764/snapshot/usr/lib64/libreoffice/presets/database
1020K   /.snapshots/764/snapshot/usr/lib64/libQtOpenGL.so.4.8.6
1020K   /.snapshots/763/snapshot/var/cache/apparmor
1020K   /.snapshots/763/snapshot/usr/share/texmf/tex/xelatex/bidi
1020K   /.snapshots/763/snapshot/usr/share/texmf/doc/latex/sauerj
1020K   /.snapshots/763/snapshot/usr/share/ksmserver/themes/contour
1020K   /.snapshots/763/snapshot/usr/share/icons/Moka/256x256@2x/places
1020K   /.snapshots/763/snapshot/usr/share/fonts/uni/newunifont.pcf.gz
1020K   /.snapshots/763/snapshot/usr/sbin/grub2-macbless
1020K   /.snapshots/763/snapshot/usr/lib/mono/4.5/Facades
1020K   /.snapshots/763/snapshot/usr/lib64/libreoffice/presets/database
1020K   /.snapshots/763/snapshot/usr/lib64/libQtOpenGL.so.4.8.6
1020K   /.snapshots/762/snapshot/var/cache/apparmor
1020K   /.snapshots/762/snapshot/usr/share/texmf/tex/xelatex/bidi
1020K   /.snapshots/762/snapshot/usr/share/texmf/doc/latex/sauerj
1020K   /.snapshots/762/snapshot/usr/share/ksmserver/themes/contour
1020K   /.snapshots/762/snapshot/usr/share/icons/Moka/256x256@2x/places
1020K   /.snapshots/762/snapshot/usr/share/fonts/uni/newunifont.pcf.gz
1020K   /.snapshots/762/snapshot/usr/sbin/grub2-macbless
1020K   /.snapshots/762/snapshot/usr/lib/mono/4.5/Facades
1020K   /.snapshots/762/snapshot/usr/lib64/libreoffice/presets/database
1020K   /.snapshots/762/snapshot/usr/lib64/libQtOpenGL.so.4.8.6
1020K   /.snapshots/761/snapshot/var/cache/apparmor
1020K   /.snapshots/761/snapshot/usr/share/texmf/tex/xelatex/bidi
1020K   /.snapshots/761/snapshot/usr/share/texmf/doc/latex/sauerj
1020K   /.snapshots/761/snapshot/usr/share/ksmserver/themes/contour
1020K   /.snapshots/761/snapshot/usr/share/icons/Moka/256x256@2x/places
1020K   /.snapshots/761/snapshot/usr/share/fonts/uni/newunifont.pcf.gz
1020K   /.snapshots/761/snapshot/usr/sbin/grub2-macbless
1020K   /.snapshots/761/snapshot/usr/lib/mono/4.5/Facades
1020K   /.snapshots/761/snapshot/usr/lib64/libreoffice/presets/database
1020K   /.snapshots/761/snapshot/usr/lib64/libQtOpenGL.so.4.8.6
1020K   /.snapshots/760/snapshot/var/cache/apparmor
1020K   /.snapshots/760/snapshot/usr/share/texmf/tex/xelatex/bidi
1020K   /.snapshots/760/snapshot/usr/share/texmf/doc/latex/sauerj
1020K   /.snapshots/760/snapshot/usr/share/ksmserver/themes/contour
1020K   /.snapshots/760/snapshot/usr/share/icons/Moka/256x256@2x/places
1020K   /.snapshots/760/snapshot/usr/share/fonts/uni/newunifont.pcf.gz
1020K   /.snapshots/760/snapshot/usr/sbin/grub2-macbless
1020K   /.snapshots/760/snapshot/usr/lib/mono/4.5/Facades
1020K   /.snapshots/760/snapshot/usr/lib64/libreoffice/presets/database
1020K   /.snapshots/760/snapshot/usr/lib64/libQtOpenGL.so.4.8.6
1020K   /.snapshots/759/snapshot/var/cache/apparmor
1020K   /.snapshots/759/snapshot/usr/share/texmf/tex/xelatex/bidi
1020K   /.snapshots/759/snapshot/usr/share/texmf/doc/latex/sauerj
1020K   /.snapshots/759/snapshot/usr/share/ksmserver/themes/contour
1020K   /.snapshots/759/snapshot/usr/share/icons/Moka/256x256@2x/places
1020K   /.snapshots/759/snapshot/usr/share/fonts/uni/newunifont.pcf.gz
1020K   /.snapshots/759/snapshot/usr/sbin/grub2-macbless
1020K   /.snapshots/759/snapshot/usr/lib/mono/4.5/Facades
1020K   /.snapshots/759/snapshot/usr/lib64/libreoffice/presets/database
1020K   /.snapshots/759/snapshot/usr/lib64/libQtOpenGL.so.4.8.6
1020K   /.snapshots/758/snapshot/var/cache/apparmor
1020K   /.snapshots/758/snapshot/usr/share/texmf/tex/xelatex/bidi
1020K   /.snapshots/758/snapshot/usr/share/texmf/doc/latex/sauerj
1020K   /.snapshots/758/snapshot/usr/share/ksmserver/themes/contour
1020K   /.snapshots/758/snapshot/usr/share/icons/Moka/256x256@2x/places
1020K   /.snapshots/758/snapshot/usr/share/fonts/uni/newunifont.pcf.gz
1020K   /.snapshots/758/snapshot/usr/sbin/grub2-macbless
1020K   /.snapshots/758/snapshot/usr/lib/mono/4.5/Facades
1020K   /.snapshots/758/snapshot/usr/lib64/libreoffice/presets/database
1020K   /.snapshots/758/snapshot/usr/lib64/libQtOpenGL.so.4.8.6
1020K   /.snapshots/757/snapshot/var/cache/apparmor
1020K   /.snapshots/757/snapshot/usr/share/texmf/tex/xelatex/bidi
1020K   /.snapshots/757/snapshot/usr/share/texmf/doc/latex/sauerj
1020K   /.snapshots/757/snapshot/usr/share/ksmserver/themes/contour
1020K   /.snapshots/757/snapshot/usr/share/icons/Moka/256x256@2x/places
1020K   /.snapshots/757/snapshot/usr/share/fonts/uni/newunifont.pcf.gz
1020K   /.snapshots/757/snapshot/usr/sbin/grub2-macbless
1020K   /.snapshots/757/snapshot/usr/lib/mono/4.5/Facades
1020K   /.snapshots/757/snapshot/usr/lib64/libreoffice/presets/database
1020K   /.snapshots/757/snapshot/usr/lib64/libQtOpenGL.so.4.8.6
1020K   /.snapshots/756/snapshot/var/cache/apparmor
1020K   /.snapshots/756/snapshot/usr/share/texmf/tex/xelatex/bidi
1020K   /.snapshots/756/snapshot/usr/share/texmf/doc/latex/sauerj
1020K   /.snapshots/756/snapshot/usr/share/ksmserver/themes/contour
1020K   /.snapshots/756/snapshot/usr/share/icons/Moka/256x256@2x/places
1020K   /.snapshots/756/snapshot/usr/share/fonts/uni/newunifont.pcf.gz
1020K   /.snapshots/756/snapshot/usr/sbin/grub2-macbless
1020K   /.snapshots/756/snapshot/usr/lib/mono/4.5/Facades
1020K   /.snapshots/756/snapshot/usr/lib64/libreoffice/presets/database

Many thanks to all! Cheers!!

Hi
You need to clean up snapper snapshots and configure it so it doesn’t take so many. Also since using btrfs for / df tools are not accurate…

Start off configure /etc/snapper/configs/root to use say;


# limit for number cleanup
NUMBER_MIN_AGE="1800"
NUMBER_LIMIT="2-3"
NUMBER_LIMIT_IMPORTANT="3-5"

Use the following commands to see what is present and disk usage;


snapper list
btrfs fi usage /

Then manually run the cronjobs, if the system gets turned off sometimes they don’t run…


/etc/cron.daily/suse.de-snapper
/etc/cron.weekly/btrfs-balance

Thank you! lol!

You made my day!

Cheers!

Hi
So you recovered some space now? The snapshots can build up if you install a package here, then a few more etc snapper creates a pre and post snapshot, you can also look at the time (1800) and change that to make it a bit more snappy in it’s clean up…

Yes! :slight_smile: I recovered 13GB of space, they are enough for now, but thanks to you now I know where to look if the snapshots will grow up too much in the future.

Cheers!

Hi, I have the same problem but my root space is only 20gb.
I’m trying to make some room in the root folder but I can’t figure out what is using so much space.

  • I have deleted all snapshot
  • home and data folders are on different partitions.
  • I have removed old kernel versions from yast
  • system is opensuse leap 42.2

btrfs fi usage /
Overall:
    Device size:                  20.18GiB
    Device allocated:             20.18GiB
    Device unallocated:            1.00MiB
    Device missing:                  0.00B
    Used:                         19.13GiB
    Free (estimated):            836.08MiB      (min: 836.08MiB)
    Data ratio:                       1.00
    Metadata ratio:                   1.00
    Global reserve:               68.05MiB      (used: 0.00B)

Data,single: Size:19.15GiB, Used:18.33GiB
   /dev/sda6      19.15GiB

Metadata,single: Size:1.00GiB, Used:818.77MiB
   /dev/sda6       1.00GiB

System,single: Size:32.00MiB, Used:16.00KiB
   /dev/sda6      32.00MiB

Unallocated:
   /dev/sda6       1.00MiB


This is the root folder directory list with space usage. However the sum of these folders is about 9 Gb not 19…


0       Desktop
0       mnt
0       proc
0       selinux
0       sys
212     dev
2488    run
3540    tmp
5280    bin
10432   sbin
18876   lib64
24444   etc
26700   root
32380   srv
39436   opt
99904   boot
457160  lib
1267952 var
7475760 usr

Where all the rest of the space is gone?
Please help!

To expose your problem, better start a new thread!
People looking at new threads’ titles to see if there is something they can help with, will not notice this post at the end of an old, solved, thread.