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 Usage

Discussion in 'General Discussion' started by rip_curl, Dec 27, 2005.

  1. rip_curl

    rip_curl Well-Known Member

    Joined:
    Jan 30, 2005
    Messages:
    81
    Likes Received:
    0
    Trophy Points:
    6
    Cpanel shows that user's usage 11 GB
    but disk usage shows 5-6 gb
    how can I check it?
     
  2. RizyDeWino

    RizyDeWino Well-Known Member

    Joined:
    Aug 1, 2005
    Messages:
    74
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Planet Earth
    If you want to check the real usage and you have shell access , do the following :
    go to user's directory i.e. cd /home/username
    and do : du -ah --max-depth=1
    And it will give you the real usage in MBs.

    Further more this and its related topics have been discussed on this forum many times so please do a search and you will find reasonble knowledge on this issue.
     
  3. rip_curl

    rip_curl Well-Known Member

    Joined:
    Jan 30, 2005
    Messages:
    81
    Likes Received:
    0
    Trophy Points:
    6
    #3 rip_curl, Dec 27, 2005
    Last edited: Dec 27, 2005
  4. RizyDeWino

    RizyDeWino Well-Known Member

    Joined:
    Aug 1, 2005
    Messages:
    74
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Planet Earth
    You will need to run following to fix quota :
    /scripts/fixqoutas
    After this Cpanel for all users on the server will show the correct disk usage. Cpanel do not update quota in real time , so above script is available to fix this.
     
  5. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    du will not show all the usage as that is directory specific and won't cater for all files owned by the user on the server. For those you'll need to use find with the -user switch and check from / down.
     
  6. cch

    cch Member

    Joined:
    Mar 24, 2003
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    I have the same issue, I upload 1Mb files in a folder. du -h reports 2 MB.
    Other servers don't have the issue.

    What is your OS? Do you solve the issue?

    thanks
    Version: WHM 10.8.0 cPanel 10.8.1-S31 & CentOS 4.2
     
  7. dr2web

    dr2web Active Member

    Joined:
    Jan 14, 2005
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    6
    I am having the same issue. CPanel is showing that a user is using 176MB and they are actually using 73MB I found some files in backup, adn moved them to another directory and still is reporting same.

    I have run du -h from /home/$user reports 73MB

    ran find / -uid $uid
    ran find / -gid $gid

    both of these displayed some files but nothing adding up to 100MB

    Ideas?
     
Loading...

Share This Page