Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

SOLVED How to find total disk space ?

Discussion in 'General Discussion' started by thanasis, Mar 22, 2019.

  1. thanasis

    thanasis Well-Known Member

    Joined:
    Nov 24, 2017
    Messages:
    57
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Greece
    cPanel Access Level:
    Root Administrator
    Hello,
    i have a VPS with 1600 GB disk space.

    I see at Home »Account Information »List Accounts, i have total 56.61 GB Disk Used

    Also i run:

    Code:
    [root@demo /]# df -h
    Filesystem      Size  Used Avail Use% Mounted on
    /dev/sda2       1.2T  110G 1012G  10% /
    devtmpfs         25G     0   25G   0% /dev
    tmpfs            25G  4.0K   25G   1% /dev/shm
    tmpfs            25G   73M   25G   1% /run
    tmpfs            25G     0   25G   0% /sys/fs/cgroup
    /dev/sda1       969M  251M  652M  28% /boot
    tmpfs           4.9G     0  4.9G   0% /run/user/0
    Code:
    [root@demo /]# du -h --exclude /proc --max-depth=1 /
    204M    /opt
    41M     /etc
    112K    /tmp
    4.0K    /srv
    4.0K    /mnt
    41G     /backup
    9.9G    /usr
    0       /sys
    300G    /home
    249M    /boot
    73M     /run
    16K     /lost+found
    4.9G    /var
    4.0K    /dev
    4.0K    /media
    12M     /root
    356G    /
    i can't understand the above numbers.... I have 56.61 GB and didn't see this number above...

    How to find total disk space (centos + whm/cpanel + mywebsite (with emails + sql)
     
  2. ES - George

    ES - George Well-Known Member PartnerNOC

    Joined:
    Jun 12, 2011
    Messages:
    175
    Likes Received:
    22
    Trophy Points:
    68
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    Twitter:
    The 56 GB you're seeing in WHM is for your cPanel accounts only.

    It doesn't include the 41GB in the /backup directory, or other files in /home that are not part of a cPanel account. It might be you have cpmove (backups) files in your /home directory, for example.

    I suggest entering your /home directory, and running something like du -sch * to give you a breakdown of your usage.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. thanasis

    thanasis Well-Known Member

    Joined:
    Nov 24, 2017
    Messages:
    57
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Greece
    cPanel Access Level:
    Root Administrator
    If i want to change hosting packet, can i go to one with 256 GB hard disk ? I want this hard disk space contains cpanel/whm and my websites (files, DBs, emails)
     
  4. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    5,734
    Likes Received:
    436
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Based on what you're using I wouldn't looks like based on cPanel + Sites + DB you're using almost double that.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. thanasis

    thanasis Well-Known Member

    Joined:
    Nov 24, 2017
    Messages:
    57
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Greece
    cPanel Access Level:
    Root Administrator
    What do you mean Lauren, 256GB is too small? Do you suggest 512GB? What is the minimum size for cpanel + centos ?
     
  6. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    5,734
    Likes Received:
    436
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. thanasis

    thanasis Well-Known Member

    Joined:
    Nov 24, 2017
    Messages:
    57
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Greece
    cPanel Access Level:
    Root Administrator
    Lauren, Why is different size "Account Information »List Accounts" and /home ?
     
  8. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    5,734
    Likes Received:
    436
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hello @thanasis

    Can you give me an example? Does list accounts show more? In most cases the reason list accounts would be more is the inclusion of files owned by that user in locations other than home such as MySQL databases.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. thanasis

    thanasis Well-Known Member

    Joined:
    Nov 24, 2017
    Messages:
    57
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Greece
    cPanel Access Level:
    Root Administrator
    the list accounts are smaller than the /home directory
     
  10. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    5,734
    Likes Received:
    436
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hello @thanasis

    Do you have quotas enabled on the server? You can ensure that they're enabled by running
    Code:
    /scripts/initquotas 
    This won't report properly without quotas enabled and functioning.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. thanasis

    thanasis Well-Known Member

    Joined:
    Nov 24, 2017
    Messages:
    57
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Greece
    cPanel Access Level:
    Root Administrator
    Yes i have quotas enabled.
     

    Attached Files:

  12. thanasis

    thanasis Well-Known Member

    Joined:
    Nov 24, 2017
    Messages:
    57
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Greece
    cPanel Access Level:
    Root Administrator
    At /home with this command du -sch * , i have 897G total; 789G is virtfs
    I read that virtfs files are from Jailed Shell.
    If i disable the Jailed Shell, shall this size of the /virtfs will be decreased ?
     
  13. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    5,734
    Likes Received:
    436
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @thanasis

    VirtFS doesn't actually use any disk space though I do understand why it would be confusing.
    At this point feel free to open a ticket using the link in my signature as it may be easier to explain the discrepancies you're seeing with access to the server. Once open please reply with the Ticket ID here so that we can update this thread with the resolution once the ticket is resolved.


    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. thanasis

    thanasis Well-Known Member

    Joined:
    Nov 24, 2017
    Messages:
    57
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Greece
    cPanel Access Level:
    Root Administrator
    ticket: 11762971

    Thank you for your support!
     
  15. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    5,734
    Likes Received:
    436
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @thanasis

    Thanks for updating the thread with the ticket ID it looks like the issue has been resolved, the analyst found that the space discrepancy was due to backups being stored in /home which will cause quotas to not report properly and there was a large amount of space dedicated to some older log files which explained some of the usage you were seeing.

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    thanasis likes this.
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice