Get cyrus-imap folder size without "du" tool

Gavin McCullagh gavin.mccullagh at gcd.ie
Thu Apr 1 10:39:20 EDT 2010


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



More information about the Info-cyrus mailing list