Solved /var is full but with what?

I have been looking all over Google, and yet I still don't see this. So I was thinking about asking you guys. I have a server, where I can't figure out why it says /var is bigger then what my du -shc * command counts it to.

So it looks like this:

Code:
root@wlgw02:/var # df -h
Filesystem        Size    Used   Avail Capacity  Mounted on
/dev/raid/r0p2      4G    404M    3.2G    11%    /
devfs             1.0k    1.0k      0B   100%    /dev
/dev/raid/r0p4    7.9G    5.8G    1.4G    80%    /var
/dev/raid/r0p5      4G     32M    3.6G     1%    /tmp
/dev/raid/r0p6    209G    2.4G    190G     1%    /usr
linprocfs         4.0k    4.0k      0B   100%    /usr/compat/linux/proc

but when I use du -shc * I get:

Code:
root@wlgw02:/var # du -shc *
4.0k    account
 12k    at
4.0k    audit
732k    backups
4.0k    cache
8.0k    crash
8.0k    cron
972M    db
4.0k    empty
4.0k    games
4.0k    heimdal
8.0k    lib
7.5M    log
 73M    mail
8.0k    msgs
200k    named
4.0k    preserve
 84k    run
4.0k    rwho
 40k    spool
8.0k    tmp
 32k    yp
1.0G    total

From what I see in df -h I need to delete some stuff or move it, but I can't find what is using the space. Does anyone have an idea for this?
 
Dcent said:
but when I use du -shc * I get:
This command doesn't sort too good because of the different units. This works better: du -sk /var/* | sort -n. The biggest directory will be at the bottom of the list.
 
Are you using a file system with snapshots, like ZFS? Then du would not see the disk usage of the snapshots.

Similarly: Is there any directory named /var/.* (name begins with a dot)? The du command wouldn't see that either.
 
Back
Top