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.

Fixing wrong disk usage displayed

Discussion in 'General Discussion' started by EHR, Apr 8, 2015.

  1. EHR

    EHR Member

    Joined:
    Apr 18, 2012
    Messages:
    11
    Likes Received:
    2
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    Within latest few hours didn't find a fix for this issue; most of the time ends with 'open ticket' which doesn't provide a quick solution.
    Disk usage check [server side, /home/$username/]
    Code:
    # du -sh
    1.9G  .
    
    Disk usage reported by cPanel :
    Code:
    Disk Space Usage 28.31 MB / 3.91 GB | MySQL Disk Space 28.23 MB
    Then fixing quotas:
    Code:
    [~]# /scripts/fixquotas
    Installing Default Quota Databases......Done
    journaled quota support: kernel supports, user space tools supports (available)
    .
    .
    [..]
    Updating Quota Files......
    [..]
    ....Done
    Quotas have been enabled and updated.
    
    Refreshing the cPanel interface, still shows 28.31 MB usage. Disabling disk quota caching (Home > Server configuration >Tweak Settings), waiting 10-15min, refreshing the page (& hard refresh) still same crap: 28.31 MB.
    Is there any working solution to fix this ? Having it posted here (public) it would help more googlers instead opening a support ticket and keep info private.
    --
    LE: Disk space usage report from cPanel:
    Code:
    1,874.74 MB total disk space used.
    4,000.00 MB quota limit (0.09 MB used).
    WHM v 11.48.2 (3)
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,448
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Before you go to all that trouble to open a ticket, what do you see under Disk Usage in your cPanel? Not from the side menu, the icon, in your cPanel, titled Disk Usage.
     
  3. EHR

    EHR Member

    Joined:
    Apr 18, 2012
    Messages:
    11
    Likes Received:
    2
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    @Infopro, I've already provided that info:
    If you really want the full report, here we go:
    Code:
    Files in home directory.
    
    0.09 MB
    Files in hidden subdirectories.
    
    3.42 MB
    etc/
    
    0.05 MB
    logs/
    
    22.09 MB
    mail/
    
    412.74 MB
    public_ftp/
    
    0.00 MB
    public_html/
    
    1,410.63 MB
    ssl/
    
    0.02 MB
    tmp/
    
    1.83 MB
    MySQL
    
    27.53 MB
    PostgreSQL
    
    0.00 MB
    Mailing Lists
    
    0.00 MB
    Email Archives
    
    0.00 MB
    * Contained in the mail directory.
    1,878.40 MB total disk space used.
    4,000.00 MB quota limit (0.09 MB used).
    
    ... and do you feel better now being so sarcastic ? I already have 3 requests open (which never happened in those 10yrs since using cPanel) and the fixes provided by support ticket won't help someone else facing the same issue. If someone would post the right solution, I wouldn't open this thread.
     
  4. danrussell

    danrussell Well-Known Member

    Joined:
    Nov 5, 2014
    Messages:
    60
    Likes Received:
    3
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Hi :),

    Can you please paste the contents of /etc/fstab file?
    I suspect that the quota is not enabled on /home partition.
     
  5. EHR

    EHR Member

    Joined:
    Apr 18, 2012
    Messages:
    11
    Likes Received:
    2
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    Hey danrussell
    Note that few days ago there wasn't such a problem on this server but there are only 2 things that might lead to this:
    1. after a cold reboot due to CWAF modsec rule error which freezes the server and no ssh connection could be done
    2. I've probably used /scripts/fixeverything by mistake while having 3 sessions on different servers and I might run the command on this server instead on other one.
    /etc/fstab:
    Code:
    /dev/mapper/ssd-root  /  ext4  usrjquota=quota.user,jqfmt=vfsv0  1  1
    UUID=dd50ad96-bfae-4e2f-9892-5c7f59b67328 /boot  ext4  defaults  1 2
    /dev/mapper/ssd-swap  swap  swap  defaults  0 0
    tmpfs  /dev/shm  tmpfs  defaults  0 0
    devpts  /dev/pts  devpts  gid=5,mode=620  0 0
    sysfs  /sys  sysfs  defaults  0 0
    proc  /proc  proc  defaults  0 0
    /usr/tmpDSK  /tmp  ext3  defaults,noauto  0 0
    /dev/mapper/raid1-home  /home  ext4  defaults  1  2
    
     
  6. EHR

    EHR Member

    Joined:
    Apr 18, 2012
    Messages:
    11
    Likes Received:
    2
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    As from cPanel's tech recommendations quotas should be (re)enabled by editing the /etc/fstab line
    Code:
    /dev/mapper/raid1-home  /home  ext4  defaults  1  2
    to
    Code:
    /dev/mapper/raid1-home /home ext4 usrjquota=quota.user,jqfmt=vfsv0 1 2
    then remount
    Code:
    mount -oremount /home
    then running the fixing quotas script
    Code:
    /scripts/fixquotas
     
    Tarl and net-trend like this.
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    651
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you confirm if this resolved the issue with your disk space report in cPanel?

    Thank you.
     
  8. EHR

    EHR Member

    Joined:
    Apr 18, 2012
    Messages:
    11
    Likes Received:
    2
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    Hey @cPanelMichael
    If it wouldn't fix it, I wouldn't post the solution here :)
    ..so I confirm the issue was solved following the steps above.
     
  9. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    651
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page