Skip to main content

cPanel wrong disk usage report

Comments

13 comments

  • cPanelMichael
    Hello @thesufi, The issue you have described looks to relate to internal case CPANEL-26448. You can find more information about this case on the following forums thread: Let me know if this helps. Thank you.
    0
  • thesufi
    Hello @cPanelMichael Thanks for your reply. I have checked the CPANEL-26448 and your provided thread. However, I can confirm that it doesn't matched with my scenario entirely. Only default email disk usage part matches. On my case, every email accounts are providing false disk usage data. That's the major problem. If it was only "default" account, I could have easily avoid it. But every email accounts are showing wrong disk usage data. Kindly read my post again and match with my attached images. Thanks.
    0
  • cPanelMichael
    Hello @thesufi, We'd need to take a look at your system to see why the disk space reported for your virtual email accounts are inaccurate. Can you ask your hosting provider to open a
    0
  • cPanelMichael
    Hello @thesufi, To update, the disk space usage discrepancy for the individual email accounts is associated with Compress Messages feature documented on the link below: Mailserver Configuration - Version 78 Documentation - cPanel Documentation This is related to the following notice in the cPanel UI: [QUOTE]Email account storage may occupy less space on the disk if you use compression or hard-link optimizations designed to save space. Email account storage does not include the metadata that the system uses to store email.
    The following feature request is open to provide a supported method of compressing existing email (this would address the issue you have noticed): Ability to compress existing email I encourage you to vote and add feedback to this feature request if this is something you'd like to see added to cPanel & WHM in the future. Thank you.
    0
  • thesufi
    Hello @cPanelMichael, Yes, this seems like the problem. This feature request has been there for around 10 months now. So, I don't think this is going to see daylight anytime soon. Any possible workaround? I can deploy a quick VPS and do some work, if there is any hope to fix this! Because the disk usage data end user is getting is very misleading and causing problem. Thanks.
    0
  • mathx
    Some of the statements here are incorrect. We're on a ZFS filesystem which compresses automatically, and we see a 7775MB report for the user, however because of the email reported usage it's putting the user over 11,000MB. I compared du -xm . | sort -n | tail -1 (which reports 7775MB of actual disk) vs $find . -ls -type f | awk '{a+=$7} END {print a/1000/1000;}' 8171.7 you can see this isnt very far off, vs the "email disk usage of 11,600MB" in email accounts reported under the disk usage tab of the user's cpanel panel. Note what i've done here is tallied the actual LISTED disk usage from ls of the file, which is the correct file size uncompressed. So compression isnt the issue here specifically. Something is completely wrong in the disk usage calculation for email. Where is the script that cpanel uses to calculate this so that I may investigate and see what it is doing internally, and possibly modify it for our uses?
    0
  • cPanelMichael
    Any possible workaround? I can deploy a quick VPS and do some work, if there is any hope to fix this! Because the disk usage data end user is getting is very misleading and causing problem.

    The workaround noted on the following feature request comments remains applicable: Ability to compress existing email comment 2
    Where is the script that cpanel uses to calculate this so that I may investigate and see what it is doing internally, and possibly modify it for our uses?

    Here's the path to the script that's used to generate the maildirsize files: /usr/local/cpanel/scripts/generate_maildirsize
    Feel free to open a
    0
  • whipworks
    Hi @cPanelMichael, We are also having the same quota issue not being read right. Can we also open a ticket? We are on an LXC container on a ZFS backend storage subsystem. Thanks!
    0
  • cPanelMichael
    Hello @whipworks, Yes, feel free to open a support ticket and post the ticket number here. Thanks!
    0
  • mathx
    I work with @whipworks, so it was the same issue. How was this solved so I know what to do for our other systems?
    0
  • cPanelMichael
    I work with @whipworks, so it was the same issue. How was this solved so I know what to do for our other systems?

    Can you share the ticket number that was opened? Or, are you referring to the ticket opened by the thread creator? Thank you.
    0
  • whipworks
    Can you share the ticket number that was opened? Or, are you referring to the ticket opened by the thread creator? Thank you.

    Ticket #12315117
    0

Please sign in to leave a comment.