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 On WHM

Discussion in 'General Discussion' started by Din, Jul 22, 2015.

  1. Din

    Din Registered

    Joined:
    Jul 22, 2015
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Singapore
    cPanel Access Level:
    Root Administrator
    Im new to WHM so any advice is appreciated. I have a 10 Cpanel accounts in my vps and the total disk used is 26GB.

    However, when I check my Disk Usage, it indicated as 40GB used so I am quite curious where does the 24GB gone to?

    I understand the each Cpanel account uses disk space but does it use this much space?

    Is this common? If not, what can I look for? Please advice. Thanks.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  3. Din

    Din Registered

    Joined:
    Jul 22, 2015
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Singapore
    cPanel Access Level:
    Root Administrator
    Thank you Michael. I have checked and these are my findings:

    Apparently, there is an account name "beach" that I have imported from other Cpanel server that is using a lot of space inside the virtfs.

    15G/home/virtfs/beach

    This account only have 5GB of quota but its using 15GB or my diskspace. Is it safe to delete whatever inside this directory?
     
    #3 Din, Jul 23, 2015
    Last edited: Jul 23, 2015
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    It's important to never manually delete any data in the /home/virtfs directory. The usage you see is not actual usage, but the usage of the files that are linked via bind mounting in that directory. A bind mount is a transparent link between two places on the file system. For example, if a user views the contents of /home/virtfs/username/usr/bin, the user actually sees the contents of /usr/bin. Thus, the /home/virtfs/$user directory itself is not actually using up any additional space than already exists. Data is not actually duplicated. Documentation on this is found at:

    cPanel - VirtFS

    Thank you.
     
  5. Din

    Din Registered

    Joined:
    Jul 22, 2015
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Singapore
    cPanel Access Level:
    Root Administrator
    Thank you.

    Im really curious now because all the accounts in the server has shell disabled.
    Why only 2 accounts are shown at /home/virtfs
    The account beach only uses 1GB of space but its showing 16gb in the /home/virtfs/username

    What can I do to clear the space?
     
  6. Din

    Din Registered

    Joined:
    Jul 22, 2015
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Singapore
    cPanel Access Level:
    Root Administrator
    Please ignore the above. I have switch to normal shell for this account and the space used indicated as 4.0kb.

    Now, I found new files. What is these core files? Is this something I can delete?

    4.0K/usr/local/cpanel/base/core
    23M/usr/local/cpanel/base/core.13775
    438M/usr/local/cpanel/base/core.18305
    438M/usr/local/cpanel/base/core.2560
    438M/usr/local/cpanel/base/core.9425
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Please keep in mind that a /home/virtfs/$username directory does not always indicate the account is allowed shell access. Jailed shell is automatically used for many functions (e.g. cron jobs). As far as the core files, review the "Security" tab in "WHM >> Tweak Settings" to see if the following option is enabled:

    "Generate core dumps"

    Per it's description:

    Allow WHM/Webmail/cPanel services to create core dumps for debugging purposes. Core dumps often contain sensitive information but may be necessary for debugging certain types of service crashes.

    You can safely remove these files if you no longer need to debug a failed service.

    Thank you.
     
Loading...

Share This Page