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 flashweb, May 11, 2003.

  1. flashweb

    flashweb Well-Known Member

    Joined:
    Mar 13, 2003
    Messages:
    243
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Hi,

    In one of my clients the disk usage is mis reported.

    Disk Usage 173.42 Megabytes
    MySQL Disk Usage 0.46 Megabytes
    Space Available -163.42 Megabytes

    But he take below 10 MB Space.

    du shows as below.


    root@server2 [/home/coorgne]# du -m
    1 ./mail/sales
    1 ./mail/coorg.net/sales
    1 ./mail/coorg.net
    1 ./mail/hosting.coorg.net
    1 ./mail/whois.coorg.net
    1 ./mail
    1 ./public_ftp/incoming
    1 ./public_ftp
    1 ./public_html/cgi-bin/whois/Net
    1 ./public_html/cgi-bin/whois
    1 ./public_html/cgi-bin
    1 ./public_html/whois/cgi-bin/Net
    1 ./public_html/whois/cgi-bin
    1 ./public_html/whois/images
    1 ./public_html/whois
    1 ./public_html/atigersolutions/tigercommerce/gifs
    2 ./public_html/atigersolutions/tigercommerce
    2 ./public_html/atigersolutions
    1 ./public_html/sukkhi
    1 ./public_html/homeocare
    2 ./public_html
    1 ./tmp/analog/hosting.coorg.net
    1 ./tmp/analog/whois.coorg.net
    1 ./tmp/analog
    1 ./tmp/webalizer/whois.coorg.net
    1 ./tmp/webalizer
    2 ./tmp/awstats
    1 ./tmp/webalizerftp
    3 ./tmp
    1 ./.autorespond
    1 ./etc/coorg.net
    1 ./etc/hosting.coorg.net
    1 ./etc/whois.coorg.net
    1 ./etc
    1 ./catalogs/coorgne/include/forum
    1 ./catalogs/coorgne/include/checkout
    1 ./catalogs/coorgne/include
    1 ./catalogs/coorgne/upload
    1 ./catalogs/coorgne/templates/purpleyellow/regions
    1 ./catalogs/coorgne/templates/purpleyellow
    1 ./catalogs/coorgne/templates/greens/regions
    1 ./catalogs/coorgne/templates/greens
    1 ./catalogs/coorgne/templates/grayscale/regions
    1 ./catalogs/coorgne/templates/grayscale
    1 ./catalogs/coorgne/templates/grayorange/regions
    1 ./catalogs/coorgne/templates/grayorange
    1 ./catalogs/coorgne/templates/fixedwidth/regions
    1 ./catalogs/coorgne/templates/fixedwidth
    1 ./catalogs/coorgne/templates/blueyellow/regions
    1 ./catalogs/coorgne/templates/blueyellow
    1 ./catalogs/coorgne/templates/sampledata/tools/products
    1 ./catalogs/coorgne/templates/sampledata/tools/images/thumb
    1 ./catalogs/coorgne/templates/sampledata/tools/images/items
    1 ./catalogs/coorgne/templates/sampledata/tools/images
    1 ./catalogs/coorgne/templates/sampledata/tools/etc
    1 ./catalogs/coorgne/templates/sampledata/tools
    1 ./catalogs/coorgne/templates/sampledata/reports/products
    1 ./catalogs/coorgne/templates/sampledata/reports/download
    1 ./catalogs/coorgne/templates/sampledata/reports
    1 ./catalogs/coorgne/templates/sampledata
    1 ./catalogs/coorgne/templates/foundation/regions
    1 ./catalogs/coorgne/templates/foundation
    1 ./catalogs/coorgne/templates/components
    2 ./catalogs/coorgne/templates
    1 ./catalogs/coorgne/special_pages
    1 ./catalogs/coorgne/products
    1 ./catalogs/coorgne/pages/forum
    1 ./catalogs/coorgne/pages/query
    1 ./catalogs/coorgne/pages/ord
    1 ./catalogs/coorgne/pages/affiliate
    1 ./catalogs/coorgne/pages/admin/reports
    1 ./catalogs/coorgne/pages/admin/report_def
    1 ./catalogs/coorgne/pages/admin
    1 ./catalogs/coorgne/pages
    1 ./catalogs/coorgne/logs
    1 ./catalogs/coorgne/etc
    1 ./catalogs/coorgne/dbconf/pgsql
    1 ./catalogs/coorgne/dbconf/oracle
    1 ./catalogs/coorgne/dbconf/mysql
    1 ./catalogs/coorgne/dbconf/default_db
    1 ./catalogs/coorgne/dbconf
    1 ./catalogs/coorgne/config
    1 ./catalogs/coorgne/backup
    1 ./catalogs/coorgne/orders
    1 ./catalogs/coorgne/session
    1 ./catalogs/coorgne/tmp
    3 ./catalogs/coorgne
    3 ./catalogs
    1 ./.htpasswds/whois
    1 ./.htpasswds
    1 ./.trash
    1 ./whois/cgi-bin
    1 ./whois/images
    1 ./whois
    8 .
    root@server2 [/home/coorgne]#


    How is correct this Cpanel misreporting problem ?

    I use cPanel Version 6.4.0-RELEASE.

    Regards,

    Yujin Boby
     
  2. techark

    techark Well-Known Member

    Joined:
    May 22, 2002
    Messages:
    280
    Likes Received:
    0
    Trophy Points:
    16
    It is a linux bug of crossed UID's

    Check the /etc/passwd file get the UID of the account then cd to root and run find -user userid
    you should see the user name of the account reporting the bad quota and another account on the system simply chown or chgrp the files to the correct user and it will fix the problem.
     
  3. flashweb

    flashweb Well-Known Member

    Joined:
    Mar 13, 2003
    Messages:
    243
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Hi,

    Thanks for the reply.

    These are the lines from /etc/passwd

    -------------------
    kashimat:x:572:573::/home/kashimat:/usr/local/cpanel/bin/noshell
    coorgne:x:573:574::/home/coorgne:/usr/local/cpanel/bin/noshell
    sisa-ind:x:574:575::/home/sisa-ind:/usr/local/cpanel/bin/noshell
    -------------------

    The problem account is "coorgne"

    The numbers 573 and 574 is used by only two other account, one just above the problem account and one just below.

    find -user userid won't return anything

    ------------------
    root@server2 [~]# pwd
    /root
    root@server2 [~]# find -user 573
    root@server2 [~]# find -user 574
    ------------------

    Can u tell what to do next ?

    Regards,

    Yujin
     
  4. techark

    techark Well-Known Member

    Joined:
    May 22, 2002
    Messages:
    280
    Likes Received:
    0
    Trophy Points:
    16
    cd / to true root[/] then type find -user 573 and find -user 574 you should see the files.
     
  5. flashweb

    flashweb Well-Known Member

    Joined:
    Mar 13, 2003
    Messages:
    243
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Thanks for the correction.

    I tryed the following

    root@server2 [/]# find -user 573 > /home/hoston/www/find_user_573.txt
    find: ./proc/29072/fd/4: No such file or directory
    find: ./proc/29086: No such file or directory

    The result is available at

    http://hostonnet.com/find_user_573.txt


    root@server2 [/]# find -user 574 > /home/hoston/www/find_user_574.txt
    find: ./proc/29441/fd/4: No such file or directory

    http://hostonnet.com/find_user_574.txt

    The first one includes a lot of other files that belong to the system. Like "./usr/src/linux-2.4.20"

    Second one (uid 574) seems ok.

    How do i correct the problem ?

    Regards,

    Yujin Boby
     
  6. techark

    techark Well-Known Member

    Joined:
    May 22, 2002
    Messages:
    280
    Likes Received:
    0
    Trophy Points:
    16
    All these files in /usr/src/linux-2.4.20 should belong to root so you have chown root:root

    If you are do not how to chown or chgrp then do a google search and learn about them.
     
  7. flashweb

    flashweb Well-Known Member

    Joined:
    Mar 13, 2003
    Messages:
    243
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Thanks techark for the reply.

    I am going to google for more info on chown as i never used it before.

    Regards,

    Yujin
     
  8. flashweb

    flashweb Well-Known Member

    Joined:
    Mar 13, 2003
    Messages:
    243
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Before chown
    -----------------
    root@server2 [/usr/src]# ls -l
    drwxr-xr-x 14 coorgne kashimat 4096 Apr 23 11:35 linux-2.4.20/


    chown
    ---------

    root@server2 [/usr/src]# chown -R root:root linux-2.4.20


    After chown
    ---------------

    root@server2 [/usr/src]# ls -l

    drwxr-xr-x 14 root root 4096 Apr 23 11:35 linux-2.4.20/


    Now cpanel shows correct space used.

    Hope i done everything ok.

    Thank again techark for the help.

    Regards,

    Yujin
     
  9. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    Awesome!!! It worked for me, too.
     
  10. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    You know, this post should really be a "sticky"...
     
  11. sejian

    sejian Registered

    Joined:
    May 19, 2003
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    i have done this fix, and it still is not working correctly... in the WHM account list, it shows the same amount of space as before, but when i: find / -user 32005 > ~32005.txt it only shows the file that i know to be correct....

    is WHM looking somewhere like in a cache, that i could clear or something...

    pls help

    -sejian

    cPanel.net Support Ticket Number:
     
  12. sejian

    sejian Registered

    Joined:
    May 19, 2003
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    i did a /scripts/fixquota and it is all good now, so never mind

    --sejian

    cPanel.net Support Ticket Number:
     
  13. Michael-MS

    Michael-MS Well-Known Member

    Joined:
    Apr 16, 2003
    Messages:
    144
    Likes Received:
    0
    Trophy Points:
    16
    I had the same problem and this fixed it. THANKS!!!!!!!!

    cPanel.net Support Ticket Number:
     
  14. RaveKnights

    RaveKnights Well-Known Member

    Joined:
    Nov 5, 2003
    Messages:
    81
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Some Where Out There!
    This has to be a sticky!

    after running buildapache through whm I had ran into the same exact problem.

    This post helped me to get everything back in order.

    question though? why would buildapache be using an users uid to compile php and parts of apache.

    should this automatically be using root?
     
  15. rbrown

    rbrown Active Member

    Joined:
    Jun 11, 2003
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    My quotas were messed up for a few users too. Yes, running /scripts/fixquotas made everything perfect again. Thanks!

    What causes this to break? Is this just normal behavior? Do I need to install a cron to run this fixer script regularly? Is it just cached somehow? If it is cached, how long before it will fix itself on its own?
     
  16. Bravo

    Bravo Well-Known Member

    Joined:
    Oct 30, 2001
    Messages:
    71
    Likes Received:
    0
    Trophy Points:
    6
    I'm having the same problem on a RH9 box with Cpanel 8.5.3-S3.

    The file listing for find -user 32018 (I ran it under /) does not contain any files under /usr/src/ to chown. Any suggestions?

    Here's a listing of the files:

    ./var/spool/mail/zachdext
    ./var/cpanel/neomail/zachdext-session-0.836139998023526
    ./var/cpanel/neomail/zachdext-session-0.694143019008578
    ./var/cpanel/neomail/zachdext-session-0.146118934589566
    ./tmp/cpanel.TMP.SPuhLrFDPh_uxwWr
    ./tmp/cpanel.TMP.Qvq6NFp62SqJOiBs
    ./tmp/cpanel.TMP.VyDusmfi94cUY_4v
    ./tmp/cpanel.TMP.jaylv1jOA3OyFh0c
    ./etc/valiases/zachdexter.com
    ./etc/vfilters/zachdexter.com
    ./home/zachdext
    ./home/zachdext/mail
    ./home/zachdext/mail/inbox
    ./home/zachdext/public_ftp
    ./home/zachdext/public_ftp/incoming
    ./home/zachdext/public_html
    ./home/zachdext/public_html/mail
    ./home/zachdext/public_html/cgi-bin
    ./home/zachdext/www
    ./home/zachdext/tmp
    ./home/zachdext/tmp/analog
    ./home/zachdext/tmp/webalizer
    ./home/zachdext/tmp/webalizer/dns_cache.db
    ./home/zachdext/tmp/awstats
    ./home/zachdext/tmp/webalizerftp
    ./home/zachdext/tmp/lastrun
    ./home/zachdext/tmp/lastrun.bw
     
  17. Bravo

    Bravo Well-Known Member

    Joined:
    Oct 30, 2001
    Messages:
    71
    Likes Received:
    0
    Trophy Points:
    6
    Never mind, it was those files in /tmp that needed chown-ing. All done. This is a good thread, should be made sticky.
     
  18. vanbc

    vanbc Member

    Joined:
    Feb 29, 2004
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Another Possible Solution

    OK, this thread wasn't working for me, but I've FINALLY figured out the problem...let's see if I can type this with all this hair on my keyboard ;)

    For those of you with disappearing disk space -- try this:

    Check in WHM Backups>Configure Backup that "Incremental Backup" is DISABLED. Enabling this means that your backup directories will not be compressed, and will contain files owned by the account being backed up. If you keep this feature disabled, your backups will be compressed and owned by root. I've just deleted the last 8 days worth of backups (including monthly and weekly) then ran /scripts/cpbackup. The new backups are compressed and my disk space is back to normal.
     
Loading...

Share This Page