Forum Discussion

Dmitri_Ch__1425's avatar
Jun 15, 2015
Solved

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).

  • 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.

     

4 Replies