Quota usage value shows 140% of actual disk usage

Steffen Kaiser skdovecot at smail.inf.fh-brs.de
Fri Feb 24 15:00:14 UTC 2017


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, 24 Feb 2017, Umut Erol Kaçar wrote:

> investigated and found that Dovecot shows a quota usage value roughly
> around 140% of actual disk usage. It's also valid on newly created
> accounts. My test account for example:

Quota does not count physical useage, but the amount of bytes 
allocated by the messages. Maildir may hardlink messages, hence, they 
count multiple times for the quota, but once for du.

> The ratio is mostly the same for almost all the other accounts. It can vary
> between like 1,3-1,6. So, the gap gets insane when more disk space is used,
> say like with 2GB disk usage, Dovecot thinks 3,5GB quota is used...

Hmm, are you sure?

> dovecot quota recalc does not fix the issue, it only sets the same value
> again (I've checked with tcpdump and saw the query with the same quota

if quota recalc re-creates the same value, please check the hard link 
stuff.

- -- 
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEVAwUBWLBKfnz1H7kL/d9rAQK0ugf9EmPnt5zWLiWeCxsRi9iFHAcEFW6qE4be
98G2N5gzkyyQZZsPkaSQ05fVj81zijeArFn0DwtnXJzhDHkCzI4C2yd1LgwbgnFg
/wakFkjW8jd7m58Xv45UEmKlZC83o7mOQPNYqp23v2M7k06y4XDnGpNf8V5Ipu/F
IaoK7ZS9DkaIrF6Rv6+WGtlLjjUj4By0ZJk6mGD3eNsTnQmM6j+tEcv75WXJMhNP
M7QkqwqPaj/oPVUfNut+e5VzB5Y/w1UAJpHMAnsfXK5MC9DnzU4OQtoxhWtcLzm/
HbTs7rfGbGtcnLh9tgMtMy43awqSHe9V4v0/DASL/0oCQbFFo0AEmg==
=71mb
-----END PGP SIGNATURE-----


More information about the dovecot mailing list