You are not logged in.

#1 2012-07-28 11:43:28

SantaSCSI
Member
Registered: 2009-12-04
Posts: 20

[SOLVED] root filesystem at 100%, unable to find the culprit

Hi,

When trying to install msmtp i ran against a free space issue.
When running a df -h, I get the following output:

[root@DKNAS2 ~]# df -h
Filesystem      Size  Used Avail Use% Mounted on
rootfs          7.9G  7.7G  111M  99% /
dev             3.9G     0  3.9G   0% /dev
run             3.9G  232K  3.9G   1% /run
/dev/sda3       7.9G  7.7G  111M  99% /
shm             3.9G     0  3.9G   0% /dev/shm
tmpfs           3.9G     0  3.9G   0% /tmp
/dev/sda4       100G   29G   72G  29% /home
/dev/sda1        98M   19M   74M  21% /boot
/dev/md0        3.7T  1.9T  1.9T  50% /media/data

When browsing through ncdu I can't identify the issue.

ncdu 1.8 ~ Use the arrow keys to navigate, press ? for help
--- / ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    1.8TiB [##########] /media
   28.6GiB [          ] /home
  623.2MiB [          ] /usr
  187.1MiB [          ] /var
   18.7MiB [          ] /boot
    9.7MiB [          ] /sbin
    3.4MiB [          ] /bin
    3.3MiB [          ] /etc
  232.0KiB [          ] /run
   12.0KiB [          ] /root
    0.0  B [          ] /proc
    0.0  B [          ] /sys
    0.0  B [          ] /dev
    0.0  B [          ] /tmp
    0.0  B [          ] /srv
@   0.0  B [          ]  lib64
@   0.0  B [          ]  lib
e   0.0  B [          ] /opt
e   0.0  B [          ] /mnt

I already cleaned out the pacman package cache and my logrotate is already modified to a retention of 2 weeks so the most obvious culprits are gone. Still my root partition stays stuck at 99%. There are no obvious large/lots of files in /var/log and /tmp is empty.

Am i overlooking something?

Last edited by SantaSCSI (2012-07-28 13:33:53)

Offline

#2 2012-07-28 12:06:14

Minsc
Member
Registered: 2012-07-16
Posts: 95

Re: [SOLVED] root filesystem at 100%, unable to find the culprit

Try (as root):

du -hd 1 /

Offline

#3 2012-07-28 12:25:43

Minsc
Member
Registered: 2012-07-16
Posts: 95

Re: [SOLVED] root filesystem at 100%, unable to find the culprit

You might want to add --exclude '/home' and --exclude '/media/data' to that command otherwise it may take a while.
So:

du -hd1 --exclude '/home' --exclude '/media/data' /

Last edited by Minsc (2012-07-28 12:27:09)

Offline

#4 2012-07-28 12:54:16

SantaSCSI
Member
Registered: 2009-12-04
Posts: 20

Re: [SOLVED] root filesystem at 100%, unable to find the culprit

[root@DKNAS2 ~]# du -hd1 --exclude '/home' --exclude '/media/data' /
19M     /boot
190M    /var
0       /proc
0       /sys
0       /dev
624M    /usr
0       /tmp
3.4M    /etc
9.7M    /sbin
3.4M    /bin
6.9G    /media
0       /mnt
0       /opt
12K     /root
232K    /run
0       /srv
7.7G    /

Once I saw that I got it. The /media/backup folder is normally an NFS mount on my Synology for /home backups. Seemed like the mount failed and my cron.daily backup script dumped my /home on the local drive instead of the nfs mount.

Lets take a moment of silence for my stupidity ... <_<

Last edited by SantaSCSI (2012-07-28 12:56:59)

Offline

#5 2012-07-28 15:47:17

Minsc
Member
Registered: 2012-07-16
Posts: 95

Re: [SOLVED] root filesystem at 100%, unable to find the culprit

No stupidity on your behalf at all; a lesson learned smile

Offline

#6 2012-07-28 16:04:04

progandy
Member
Registered: 2012-05-17
Posts: 5,322

Re: [SOLVED] root filesystem at 100%, unable to find the culprit

Just for further reference: If you want to knwo the sizes of directories while ignoring mountpoints, du has the option -x. If a mount failed you will then see an unexpected folder.

du -hxd 1 /media

Last edited by progandy (2012-07-28 16:06:24)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

Board footer

Powered by FluxBB