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.

wrong disk space usage in cpanel/whm

Discussion in 'General Discussion' started by s3kk3y, Jan 14, 2003.

  1. s3kk3y

    s3kk3y Well-Known Member

    Joined:
    Oct 12, 2002
    Messages:
    94
    Likes Received:
    0
    Trophy Points:
    6
    within cP it shows that he is using 750mb of disk space. Then when i took a look through shell it only reported 360mb. The first thing i did was chown his dir to his username and still reported the same. The command i used was:

    du -sch

    Am i doing something wrong is cP reporting the wrong usage size?
     
  2. Tim Greer

    Tim Greer Well-Known Member

    Joined:
    Aug 11, 2002
    Messages:
    62
    Likes Received:
    0
    Trophy Points:
    6
    [quote:bce1018aaa][i:bce1018aaa]Originally posted by s3kk3y[/i:bce1018aaa]

    within cP it shows that he is using 750mb of disk space. Then when i took a look through shell it only reported 360mb. The first thing i did was chown his dir to his username and still reported the same. The command i used was:

    du -sch

    Am i doing something wrong is cP reporting the wrong usage size?[/quote:bce1018aaa]

    There are probably other files owned by that user on the file system somewhere, other than only in their home directory tree.
     
  3. JustinK

    JustinK Well-Known Member

    Joined:
    Sep 4, 2001
    Messages:
    251
    Likes Received:
    0
    Trophy Points:
    16
    I'd go to /usr and do:
    find -user theirusernamehere

    It'll take awhile, but it will show you if there's anything there owned by that user. You may have to do it to other directories, but I've found it's usually hiding somewhere in there and often it turns out to be something like the kernel files after being unpacked.
     
  4. s3kk3y

    s3kk3y Well-Known Member

    Joined:
    Oct 12, 2002
    Messages:
    94
    Likes Received:
    0
    Trophy Points:
    6
    [quote:fb350652e8][i:fb350652e8]Originally posted by JustinK[/i:fb350652e8]

    I'd go to /usr and do:
    find -user theirusernamehere

    It'll take awhile, but it will show you if there's anything there owned by that user. You may have to do it to other directories, but I've found it's usually hiding somewhere in there and often it turns out to be something like the kernel files after being unpacked.[/quote:fb350652e8]

    Did not bring back any files.

    If there are other files owned by this user outside the home dir how do i find them?
     
  5. powerhouse

    powerhouse Well-Known Member

    Joined:
    Nov 5, 2001
    Messages:
    93
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Ok
    I am having the same problem, and I think I know what it is...

    I have the backups being used, where it will only backup the data when it has been changed. I have it backup daily, therefore there is a Daily, Weekly and Monthly backup.

    In there username, everything is owned by root, EXCEPT their homedir

    Should I make that also owned by root? Why would do that?

    Thanks,
    Richard.
     
  6. netazoid

    netazoid Member

    Joined:
    Mar 13, 2002
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    mysql?

    does cpanel account for space usage of mySQL in the total as well?
     
  7. albertg

    albertg Well-Known Member
    PartnerNOC

    Joined:
    Sep 4, 2002
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    We are currently facing this problem too.
    Somehow the /homedir in backup is kinda screwed. --> Ie: the /homedir in /backup for user: maxin will appear as user:greg

    Weird and please help.

    cPanel.net Support Ticket Number:
     
  8. albertg

    albertg Well-Known Member
    PartnerNOC

    Joined:
    Sep 4, 2002
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    6
    does this also mean....if i am using incremental backup, cpanel will count the disk usage in 2 place.

    ie: in /backup/cpbackup/daily/username/homedir and in /home/username and maybe even /backup/cpbackup/weekly/username/homedir and monthly?

    cPanel.net Support Ticket Number:
     
    #8 albertg, Jun 21, 2003
    Last edited: Jun 21, 2003
  9. mitul

    mitul Well-Known Member

    Joined:
    Feb 8, 2003
    Messages:
    291
    Likes Received:
    0
    Trophy Points:
    16
    Hello All,

    I am also having the same problem. Will /scripts/fixquotas work?

    Thank you,

    cPanel.net Support Ticket Number:
     
  10. tsook

    tsook Well-Known Member

    Joined:
    Mar 21, 2003
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    6
    you have to go to / to find files

    i found some big files in /tmp causing unusual disk info for users

    cPanel.net Support Ticket Number:
     
  11. mitul

    mitul Well-Known Member

    Joined:
    Feb 8, 2003
    Messages:
    291
    Likes Received:
    0
    Trophy Points:
    16
    I am really sorry for the lazyness i have but, how do i find files owned by a particular user from /

    cPanel.net Support Ticket Number:
     
  12. tsook

    tsook Well-Known Member

    Joined:
    Mar 21, 2003
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    6
    as mentioned before

    login to root (WinSCP, SecureCRT,...)
    go to / (cd ..)

    I'd go to /usr and do:
    find -user theirusernamehere

    cPanel.net Support Ticket Number:
     
  13. perlchild

    perlchild Well-Known Member

    Joined:
    Sep 1, 2002
    Messages:
    279
    Likes Received:
    0
    Trophy Points:
    16
    we had that problem on one of my clients server, the problem was that the backups drive didn't have the noquota flag, and so counted against a user's quota
    vim /etc/fstab
    type-> /backup
    (or whatever the backup drive is called, after a forward slash)
    add noquota after defaults

    should fix this issue, cpanel might want to add it to a FAQ somewhere
    (it's one heck of a good reason to put backups on their own filesytem btw, as you can't remove quotas except on a filesystem-per-filesystem basis)

    cPanel.net Support Ticket Number:

    cPanel.net Support Ticket Number:
     
  14. aNDy01

    aNDy01 Registered

    Joined:
    Oct 4, 2003
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Thanks perlchild
    your solution resolved the issue for me
    regards
    aNDy :)
     
Loading...

Share This Page