Today I had a name-server stop resolving DNS due to the /var directory being full from the named.run cache build up. I tried removing all the files using:
rm -rf name*
However, although running ls showed now files in the directory "data" running df -h still showed 100% use on /var. In the end I rebooted the machine and this resolved the problem but I am a little confused why this did not delete the files. (Obviously rebooting is not something I want to do every time even though we have failover.) Does anyone know the reason?
fuser -v <filename>
will show process info currently holding a file descriptor open on a file, (or socket). – X Tian Apr 25 '14 at 04:14named
doesn't normally keepnamed.run
open; it just writes it and closes it. Maybe someone started runningless named.run
and hasn't exited it. Try usingps axww | grep named.run
to see if you can find it. – Barmar Apr 26 '14 at 06:37