inalto

Member
Mar 27, 2004
22
0
151
Hello,
doing maintenance on my servers i have discovered that apache logfiles seems duplicated.

example:

in /etc/httpd/domlogs/

ls -asl auserdomain.org
952K -rw-r----- 2 root auser 946K 30 mag 14:45 auserdomain.org

and in /etc/httpd/domlogs/auser
ls -asl
4,0K drwxr-x--- 2 root auser 4,0K 30 mag 14:07 .
36K drwx--x--x 36 root wheel 36K 30 mag 14:41 ..
952K -rw-r----- 2 root auser 946K 30 mag 14:45 auserdomain.org

and is not a link, it's a duplicate.

Why this happens? No trace of the second one in the http.conf.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,250
463
Hello,

It's not a duplicate file, but a hard link. You can verify the same inode is shared with the use of the "ls -ali" command. EX:

Code:
ls -ali /usr/local/apache/domlogs/cptest01.com
ls -ali /usr/local/apache/domlogs/cptest01/cptest01.com
Thank you.