I am running CentOS with cPanel, which creates a custom log directory and writes the logs there. The result is that the IO for the hard disk goes sky high.If I do lsof I got:hostsite.comhttpd      2383    nobody 3779w   REG  253,0         0  422463 /usr/local/apache/domlogs/mygamecardotcobnao.super                  hostsite.com-bytes_loghttpd      2383    nobody 3780w   REG  253,0      5265  420994 /usr/local/apache/domlogs/myfreefreedatixuua.super                  hostsite.comhttpd      2383    nobody 3781w   REG  253,0        36  422464 /usr/local/apache/domlogs/myfreefreedatixuua.super                  hostsite.com-bytes_loghttpd      2383    nobody 3782w   REG  253,0      3101  415849 /usr/local/apache/domlogs/myfreedatingfrekeuo.supe                  rhostsite.comhttpd      2383    nobody 3783w   REG  253,0        72  422465 /usr/local/apache/domlogs/myfreedatingfrekeuo.supe                  rhostsite.com-bytes_loghttpd      2383    nobody 3784w   REG  253,0       672  419338 /usr/local/apache/domlogs/myfreedatingblogsxgo.sup                  erhostsite.comhttpd      2383    nobody 3785w   REG  253,0         0  422466 /usr/local/apache/domlogs/myfreedatingblogsxgo.sup   Disabling this domlog is impossible because there are tons of those lines automatically generated.I just want to point /usr/local/apache/domlogs/ to /dev/null. Can that be done?
How do I point certain directory to /dev/null?
filesystems;directory
If you can afford some RAM, you can set up a RAM disk and let your logs go there:mount -t tmpfs -o size=200M none /usr/local/apache/domlogsAdditionally, you should setup logrotate to rotate the logs every minute/hour/day/night/week/* and delete the old logs. This is not exactly what you want, but it should fix your problem as RAM I/O won't slow down your disks.