SDA2 out of memory

I installed Leap shortly after it came out, upgrading from OpenSUSE 13.2. Since yesterday, though, I’ve received out of memory errors when I try to start my Mongo database, or when I try to install a new RPM. Examining df, I see that Linux has 100% usage on the sda2 device partition:


$ df -h
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        3.9G     0  3.9G   0% /dev
tmpfs           3.9G  324K  3.9G   1% /dev/shm
tmpfs           3.9G   11M  3.9G   1% /run
tmpfs           3.9G     0  3.9G   0% /sys/fs/cgroup
/dev/sda2        41G   39G  4.9M 100% /
/dev/sda2        41G   39G  4.9M 100% /var/tmp
/dev/sda2        41G   39G  4.9M 100% /.snapshots
/dev/sda2        41G   39G  4.9M 100% /var/spool
/dev/sda2        41G   39G  4.9M 100% /var/opt
/dev/sda2        41G   39G  4.9M 100% /var/log
/dev/sda2        41G   39G  4.9M 100% /var/lib/pgsql
/dev/sda2        41G   39G  4.9M 100% /var/lib/named
/dev/sda2        41G   39G  4.9M 100% /var/lib/mailman
/dev/sda2        41G   39G  4.9M 100% /var/crash
/dev/sda2        41G   39G  4.9M 100% /usr/local
/dev/sda2        41G   39G  4.9M 100% /tmp
/dev/sda2        41G   39G  4.9M 100% /srv
/dev/sda2        41G   39G  4.9M 100% /opt
/dev/sda2        41G   39G  4.9M 100% /boot/grub2/x86_64-efi
/dev/sda2        41G   39G  4.9M 100% /boot/grub2/i386-pc
/dev/sda3       424G  187G  237G  45% /home

As you can see, the bulk of my hard drive (sda3, /home) has plenty of space; but I’ve no idea where all the sda2 space has gone or how to get it back. In years of Linux usage I’ve not had this problem. Any suggestions? I’ve already tried "sudo sh -c “sync; echo 3 > /proc/sys/vm/drop_caches” but it didn’t seem to fix anything.

Error examples:

$sudo mongod
...
Wed Dec 23 14:51:03.002 [initandlisten] ERROR: Insufficient free space for journal files
$sudo zypper in flash-plugin-11.2.202.554-release.x86_64.rpm
...
Installation of flash-plugin-11.2.202.554-release failed:
Error: Subprocess failed. Error: RPM failed:     installing package flash-plugin-11.2.202.554-release.x86_64 needs 21MB on the / filesystem

I was able to clear space out for now by emptying /tmp and removing all but the two most recent of my /.snapshots . I removed most snapshots with “snapper delete ###” but one gave me trouble; I used btrfs subvolume delete /.snapshots/255/snapshot (turns out that was the btrfs, not the parent directory) and then I could rm -r on it to get rid of it.

I guess my new question is, why did I have to do this manually? All of the above were created automatically, so I would expect them to be automatically cleaned up.

How large is root you need at least 40 gig if you use snapper. If less just turn snapper off or you can change its rather aggressive backup schedule.

https://en.opensuse.org/Portal:Snapper