SOLVED Moving Account to new Partition exceeds account quota

martin MHC

Well-Known Member
Sep 14, 2016
154
25
28
UK
cPanel Access Level
Root Administrator
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: https://i.ibb.co/wW87xhL/brmgarage-full.jpg
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,911
2,234
363
Hello @martin MHC,

Can you open a support ticket so we can take a closer look at the affected system to see why the quota is not reflecting properly after rearranging the account? You can post the ticket number here and I'll link this thread to it.

Thank you.
 

martin MHC

Well-Known Member
Sep 14, 2016
154
25
28
UK
cPanel Access Level
Root Administrator
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:

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

Code:
'/usr/local/cpanel/scripts/generate_maildirsize --confirm ${user}'
where ${user} represents the cPanel user in question e.g.:

Code:
====================
[[email protected] ~]# 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’
[[email protected] ~]# /usr/local/cpanel/scripts/generate_maildirsize --confirm cptech
====================
 
Last edited:
  • Like
Reactions: cPanelMichael

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,911
2,234
363
Hello @martin MHC,

I'm glad to see the issue was solved. Thanks for sharing the outcome!