Did calculating the quota change from 2.3 to 2.5?
Bron Gondwana
brong at fastmail.fm
Tue Nov 29 16:18:57 EST 2016
Quota is a sum of byte sizes of raw unexpunged messages. It doesn't deduplicate. Likely issue is incorrect quota_mailbox_used in the cyrus.index header on 2.3. a reconstruct will fix those, then quota -f again.
It's not related to du.
The problem with imapsync is that it doesn't handle single instance store. If you have copied messages or delivered then into multiple mailboxes with sieve, they will have hard links on disk.
If you use imapsync, it doesn't know about that, and will upload the same message twice. 2.5 doesn't have the smarts to recognise that it's the same message.
Bron.
On Wed, 30 Nov 2016, at 01:24, Marc Patermann via Info-cyrus wrote:
> Bron,
>
> Am 29.11.2016 um 13:26 Uhr schrieb Bron Gondwana via Info-cyrus:
> > No, the quota calculations are identical. It's possible that your
> > quota was incorrectly calculated on the source server though. A
> > quota -f there should correct the calculations.
> unluckily it does not.
>
> quota -f on seems not to be related to the du counter on the old server
> in any way for some mailboxes.
>
> First we create the mailbox on the new server and sync the quota.
> Then imapsync syncs the messages.
> Till the quota is exceeded …
>
> oldserver> lq user.xxx
> STORAGE 658949/1250000 (52.71592%)
>
> # du -sh /var/lib/imap/meta/user/xxx/
> 105M /var/lib/imap/meta/user/xxx/
> # du -sh /var/spool/imap/user/xxx/
> 1,2G /var/spool/imap/user/xxx/
>
>
> newserver> lq user.xxx
> STORAGE 1098788/1250000 (87.90304%)
>
> # du -sh /var/spool/imap/user/xxx/
> 1,7G /var/spool/imap/user/xxx/
>
> There is no separate meta partition on the new server.
> Meta data is about 500 MB now on the new server, this is about 5x the space.
>
> I think quota is just plain wrong on the old server.
>
> squatter file are huge in comparison now.
> Is this right?
>
>
> Marc
> ----
> Cyrus Home Page: http://www.cyrusimap.org/
> List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
> To Unsubscribe:
> https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
--
Bron Gondwana
brong at fastmail.fm
More information about the Info-cyrus
mailing list