Moving Account to new Partition exceeds account quota
Hello,
I have an account sized as ~3.5Gb (all email) on one partition "/home2/" and I used the WHM "Change Partition" function (on the Accounts List page) to move this account to "/home/". Both partitions are on the same server.
The account has a storage quota of 5Gb.
The move completed successfully.
At some point later in the day, I found that the account had exceeded its quota by quite a margin, over 2.5Gb in excess of what it was previously and 1Gb in excess of its quota. This obviously causes issues for the client not being able to handle their emails.
I have tried to "find" the excess data in the account folder but there is simply nothing unusual there.
- I have moved accounts between partitions before and do not recall noticing this issue before.
- I have read the CPanel / WHM documentation I have found re moving accounts and not found any relevant info.
- I have search the forum and can't find relative useful help.
I believe the quota is caused by judging both the old account space "/home2/accountName/" symlink and the new account space "/home/accountName/".
1) How do I fix the account quota so that is shows the correct value after a move between partitions on the same server.
Please see the below image from WHM for the issue in question; note the ++ sign and
reference (by this time I had incrased the quota limit to 9Gb to handle the overflow):
Image:
-
Hello @cPanelMichael - I have submitted ticket 12017851 . Incidentally, I am impressed how short the service queue is - I think this is a sign of WHMs ongoing improvements, previous tickets are in the ~40+ queue mark but now I'm at 10!! Cheers 0 -
Update: The issue is ambiguous and apparently does not seem to be caused by changing partition -- but the WHM system (various subsystems) seemed to count emails hidden in the /.Trash folder . I don't know how they got there or why they're not part of the email quota counter, but removing these emails seemed to fix the quota overflow. From the cPanel Ticket: [QUOTE] My apologies for any confusion, the 'Other usage' category does include the '.Trash' folders for users. Additionally, the disk limits for accounts are not updated in real-time as this would cause unneeded load on the server as well as some pretty extreme disk I/O, so this can be a bit of sync at times. >>1) How to remove this excess quota load. >>2) How to update the WHM interface to correctly place disk quota usage in the various subsystems. >>Is there a way of making WHM reassess it's countings? I'm going to answer all of these at once, as the answer for each is basically the same. The easiest way to update these (if you are using maildir as opposed to MDBOX) is to move the 'maildirsize' file out of the way and run '/usr/local/cpanel/scripts/generate_maildirsize --confirm ${user}'
where ${user} represents the cPanel user in question e.g.:==================== [root@78 ~]# mv -vi /home/cptech/mail/cptech.testing/cptech/maildirsize{,.$(date +%s).bak} "/home/cptech/mail/cptech.testing/cptech/maildirsize" -> "/home/cptech/mail/cptech.testing/cptech/maildirsize.1555668004.bak" [root@78 ~]# /usr/local/cpanel/scripts/generate_maildirsize --confirm cptech ====================
0 -
Hello @martin MHC, I'm glad to see the issue was solved. Thanks for sharing the outcome! 0
Please sign in to leave a comment.
Comments
4 comments