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.

Odd Disk Space Issue

Discussion in 'General Discussion' started by Solokron, Dec 22, 2009.

  1. Solokron

    Solokron Well-Known Member

    Joined:
    Aug 8, 2003
    Messages:
    849
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Seattle
    cPanel Access Level:
    DataCenter Provider
    What would cause this?

    [/var]# du * -h -s
    5.1G named

    cd named
    ls -lha | more

    [/var]# cd named
    root@web02 [/var/named]# ls -lha | more
    total 24M
    drwxr-xr-x 4 root named 192K Dec 22 01:14 ./
    drwxr-xr-x 29 root root 4.0K Dec 20 02:35 ../

    "total: 24M"

    I am seeing this on a couple of servers. The number of zone files is absolutely not in the GIGs.
     
  2. nilesh_kolte

    nilesh_kolte Well-Known Member

    Joined:
    Apr 13, 2006
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Pune ,India
    cPanel Access Level:
    Root Administrator
    Hello,

    You are using the following command to check the disk space.

    [/var]# du * -h -s
    5.1G named

    It means it will calculate the disk space for /var partition. There are around 25 to 26 folders in /var.

    If you wan to check the disk space use for /var/named. then use the following command

    du -sh /var/ named/ it will show you the disk space which named folder content.

    Hope this will help you :)
     
  3. Solokron

    Solokron Well-Known Member

    Joined:
    Aug 8, 2003
    Messages:
    849
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Seattle
    cPanel Access Level:
    DataCenter Provider
    What I provided was the result of the named directory while in the var which is correct.

    For additional information you will find:

    du -sh /var/named/
    5.2G /var/named/

    which is not correct by any means which is why this is strange and I need to correct the issue.

    cd /var/named
    [/var/named]# ls -lha | more
    total 24M


     
  4. Solokron

    Solokron Well-Known Member

    Joined:
    Aug 8, 2003
    Messages:
    849
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Seattle
    cPanel Access Level:
    DataCenter Provider
    root@server [/var/named/data]# ls -lha
    total 5.2G
    drwxrwx--- 2 named named 4.0K Nov 30 11:00 ./
    drwxr-xr-x 4 root named 192K Dec 22 01:14 ../
    -rw-r--r-- 1 named named 5.2G Dec 23 04:29 named.run

    Why is that file so insanely large?
     
  5. Solokron

    Solokron Well-Known Member

    Joined:
    Aug 8, 2003
    Messages:
    849
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Seattle
    cPanel Access Level:
    DataCenter Provider
    named log file. echo'd it out. Good to go.
     
  6. madaboutlinux

    madaboutlinux Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    1,052
    Likes Received:
    2
    Trophy Points:
    38
    Location:
    Earth
    Glad you figured it out, however, set it to rotate after every week now so you won't have to worry about it in future.
     
  7. Solokron

    Solokron Well-Known Member

    Joined:
    Aug 8, 2003
    Messages:
    849
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Seattle
    cPanel Access Level:
    DataCenter Provider
    I don't see a need for the log file to be enabled in the first place if named is functioning fine.

     
  8. linuxbabu

    linuxbabu Registered

    Joined:
    Sep 13, 2008
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Yea, its safe to empty the bind log file.

    # echo > /var/named/data/named.run

    :)
     
  9. Solokron

    Solokron Well-Known Member

    Joined:
    Aug 8, 2003
    Messages:
    849
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Seattle
    cPanel Access Level:
    DataCenter Provider
    Refer to reply #5.

     
Loading...

Share This Page