Get cyrus-imap folder size without "du" tool

David Touzeau david at touzeau.eu
Thu Apr 1 13:14:44 EDT 2010


Gavin McCullagh wrote:
> Hi,
>
> On Thu, 01 Apr 2010, David Touzeau wrote:
>
>   
>> This problem occurs when you have more than 50Go mailboxes
>> If you launch a "du -h -s /var/spool/cyrus/mail" the server load is on 
>> top and I/O is at 100% for a long time.
>> Is somebody have a tips to get the size status of all maiboxes without 
>> using du tool even no quota is specified ?
>>     
>
> sudo -u cyrus /usr/lib/cyrus-imapd/quota | awk '{ tot+=$3} END { print "Total="tot }'
>
> (your path to the quota program might vary).
>
> Gavin
>
> ----
> Cyrus Home Page: http://cyrusimap.web.cmu.edu/
> Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
>   

Thanks for the answer but cyrquota  generates  a  report  listing  quota 
roots but when you have no quota it report no information.




More information about the Info-cyrus mailing list