Disk space under /var/log

Hi,

I need some help to figure out low space issue under /var/log.

I got the message about /var/log/ running low on space. After checking used space I cannot figure out what is using it:

pwd
/var/log
 df -h .
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg--db--sda-dat.log.1
                      6.9G  6.2G  382M  95% /var/log
 du . -sh
30M .

From what I can tell /var/log only has 30M of data, but ‘df’ shows 6.2G is Used. It’s not used by LVM snapshots either (‘Snap%’ is empty in ‘lvs’ output).

have you checked hidden files?

Why doesn’t this show the hidden files/folders?

http://askubuntu.com/questions/356902/why-doesnt-this-show-the-hidden-files-folders

Try using lsof to see what files are opened. It’s highly likely that you’ve deleted the log file of a running program. That program will continue to output to the unlinked file.

That’s it! Looks like a monitor log file was deleted before disabling Monitor Logging on a node. Thank you.

Hello everyone,

You can delete extra backup from Archive and /var will be free, 2nd thing you can remove extra zipped files from /var/log/apm.1.gz, maillog.1.gz, etc.

Regards. Shakir