I have been under a big problem, the /var directory suddenly reaches 100%, when i check into it i find bandwidth file which consumes over 9GB…I then delete it but yet the file system is 100% full, due to this i am unable to restart the mysql or apache.
[root@life var]# ls
account cache cvs empty games lib lock mail net-snmp opt racoon spool tux www
asif crash db ftp gdm local log named nis preserve run tmp webmin yp
Not really that just shows the top directory we need to see what is using it under /var and confirm it is or isn’t in /log…
I also said like, it needed tweaking but not with the grep…
Try this
lsof | grep /var/log
Do you see the file you deleted? If so you need to kill the process that owns it… But if syslog don’t needs googling not sure you can or what effect it’ll have.
If lsof doesn’t show it
du -sm /var
you can look up the flags but if I got that correct its summary on /var in mb. So if the mb is close to df 100% then you need to continue and modify the original command as it is one filesytem that being / why only 1mb for /var
and came to know that the /var/log/bandwidth was deleted, but the process was yet going from syslog. So i went into syslog and found that this was in there, i deleted /var/log/bandwidth from syslog config and restarted the syslog and there is no more tensions now.
Your help really solved my problem.