The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Duplicated logfile?

Discussion in 'General Discussion' started by inalto, May 30, 2015.

  1. inalto

    inalto Member

    Joined:
    Mar 27, 2004
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...
Similar Threads - Duplicated logfile
  1. benito
    Replies:
    1
    Views:
    279

Share This Page