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.

Disk Space not matching Cpanel Stats

Discussion in 'General Discussion' started by Brad, Apr 18, 2002.

  1. Brad

    Brad Well-Known Member

    Joined:
    Aug 16, 2001
    Messages:
    231
    Likes Received:
    0
    Trophy Points:
    16
    How often is the disk space totals updated, is it realtime or is it updated nightly? They don't seem be accurate and I have customers that use their space to their limit, if ya know what I mean. I get complaints that stats in panel aren't correctly matching what they have.

    I just ran /scripts/fixquotas to see if it helps. Now it seems as though they match but will this problem continue?
     
  2. parag

    parag Well-Known Member

    Joined:
    Aug 16, 2001
    Messages:
    115
    Likes Received:
    0
    Trophy Points:
    16
    [quote:ff0c940e6b][i:ff0c940e6b]Originally posted by Brad[/i:ff0c940e6b]

    How often is the disk space totals updated, is it realtime or is it updated nightly? They don't seem be accurate and I have customers that use their space to their limit, if ya know what I mean. I get complaints that stats in panel aren't correctly matching what they have.

    I just ran /scripts/fixquotas to see if it helps. Now it seems as though they match but will this problem continue?



    [/quote:ff0c940e6b]

    Hi Brad,

    You must be having probs with quotas. Normally its updated realtime.

    What kernel are you running on your server??
    Mail me the info and i will help you out.

    I had the same problem. :)

    best regards,
    Parag
     
  3. feanor

    feanor Well-Known Member

    Joined:
    Aug 13, 2001
    Messages:
    836
    Likes Received:
    0
    Trophy Points:
    16
    schedule /scripts/fixquotas early in the morning (very very early, whenever your server's slowest & less busiest time is)

    if you could post some more details about your system we might be able to fix this completely. just rough details about the OS release and kernel version, nothing hazardous of course.

    ;)
     
  4. Brad

    Brad Well-Known Member

    Joined:
    Aug 16, 2001
    Messages:
    231
    Likes Received:
    0
    Trophy Points:
    16
    Ok thanks,

    Redhat 7.1
    Kernel 2.4.18 -pre3
    Cpanel Version/Build 4.7.0-STABLE Build 66
    quota is up to date


    Here are examples of current disk results.


    (Entire Account)
    In the /home/account/ I get 681M

    (www)
    In the /home/www/ I get: 207M

    (Cpanel)
    In CPANEL Screen I get: 282.86 Meg

    (WHM)
    In Web Host Manager I Get: 282 Meg



    As you can see, the difference from CPanel and the Account directory is quite different.

    Results obtained in Shell - du -sh
     
  5. bdraco

    bdraco Guest

    [quote:79821dc501][i:79821dc501]Originally posted by Brad[/i:79821dc501]

    Ok thanks,

    Redhat 7.1
    Kernel 2.4.18 -pre3
    Cpanel Version/Build 4.7.0-STABLE Build 66
    quota is up to date


    Here are examples of current disk results.


    (Entire Account)
    In the /home/account/ I get 681M

    (www)
    In the /home/www/ I get: 207M

    (Cpanel)
    In CPANEL Screen I get: 282.86 Meg

    (WHM)
    In Web Host Manager I Get: 282 Meg



    As you can see, the difference from CPanel and the Account directory is quite different.

    Results obtained in Shell - du -sh


    [/quote:79821dc501]
    Are the files actually owned by the user ?
     
  6. Brad

    Brad Well-Known Member

    Joined:
    Aug 16, 2001
    Messages:
    231
    Likes Received:
    0
    Trophy Points:
    16
    No, I was using our account as an example, I see root files in there too. I didn't know it mattered..

    So, then if a user chowned some large files as nobody, then the files would not be detected as used space for their account, only the account owned files?
     
  7. moronhead

    moronhead Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    706
    Likes Received:
    0
    Trophy Points:
    16
    [quote:53e536b926][i:53e536b926]Originally posted by Brad[/i:53e536b926]

    No, I was using our account as an example, I see root files in there too. I didn't know it mattered..

    So, then if a user chowned some large files as nobody, then the files would not be detected as used space for their account, only the account owned files?

    [/quote:53e536b926]
    That's correct! If you chown nobody or chown root all the files in /home/username recursively you'll get 0 bytes used disk space in cpanel/WHM even if you've got 1 gig worth of files in it (and it will still show up 1 gig available space).

    du -sh doesn't specifically count the user owned files but just the disk space used in the user's directory regardless of who owns them.

    Nick, could you give us some pointers on this?
     
  8. anand

    anand Well-Known Member

    Joined:
    Nov 11, 2002
    Messages:
    1,435
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    [quote:f115108a69]That's correct! If you chown nobody or chown root all the files in /home/username recursively you'll get 0 bytes used disk space in cpanel/WHM even if you've got 1 gig worth of files in it (and it will still show up 1 gig available space).

    du -sh doesn't specifically count the user owned files but just the disk space used in the user's directory regardless of who owns them.

    Nick, could you give us some pointers on this?[/quote:f115108a69]

    How do we then go about finding the actual disk space usage by a user ?

    regards,

    Anand
     
Loading...

Share This Page