Article ID: 129291, created on Aug 22, 2016, last review on Aug 22, 2016

  • Applies to:
  • Operations Automation

Symptoms

Mailbox disk usage is shown incorrectly for a mailbox hosted on a Qmail Cluster and is not updated in real time.

Troubleshooting

OA collects the mailbox size per the steps below:

  1. In OA Provider CP Top > Operations > Tasks > Periodic > Scheduled Tasks, there is the following task scheduled for every 60 seconds.

    #138 Monitor mail diskspace usage collectors         Jul-28-2014 19:25:33    60 second(s)    Rescheduled
    

    Note: for performance optimization the task updates disk usage of 1000 mailboxes per 10 minutes.

  2. The 'Monitor mail diskspace usage collectors' periodic task triggers the following background tasks to collect mail diskspace from the qmail cluster servers, in Top > Operations > Tasks > Background > Task Log:

    3489393 Collect mail diskspace usage on configuration #5        Jul-28-2014 19:23:33    Jul-28-2014 19:23:33    qmail_configuration_5   Successful
    3489388 Collect mail diskspace usage on configuration #5        Jul-28-2014 19:22:33    Jul-28-2014 19:22:33    qmail_configuration_5   Successful
    3489387 Collect mail diskspace usage on configuration #5        Jul-28-2014 19:21:33    Jul-28-2014 19:21:33    qmail_configuration_5   Successful
    3489386 Collect mail diskspace usage on configuration #5        Jul-28-2014 19:20:33    Jul-28-2014 19:20:33    qmail_configuration_5   Successful
    
  3. On the Qmail cluster servers, the following script is used to collect the mailbox disk usage (directory size) to update it in the OA database:

    #!/bin/sh -c
    while read maildir;
    do
            /usr/local/qmail/bin/maildirsize $maildir || echo F;
    done
    
  4. The following records related to the corresponding task ID in /var/log/poa.log (6.0) or /var/log/poa.debug.log (5.5) show that the usage is updated:

    Jul 28 16:08:31 osscore : DBG [task:3488002:196141 1:726:abdb3b90 Kernel]: STMT [Con: 4325, 0x9b00e18 txn:966849 task:3488002] ' SELECT diskspace_usage FROM cqmail_mailboxes WHERE mailname_id =  ?'($0 = 319)
    Jul 28 16:08:31 osscore : TRC [task:3488002:196141 1:726:abdb3b90 Kernel]: [txn:966849 task:3488002 DBS::ConnectionManager::getConnection] getConnection(0x9b00e18): transaction=966849, current one
    Jul 28 16:08:31 osscore : DBG [task:3488002:196141 1:726:abdb3b90 Kernel]: STMT [Con: 4325, 0x9b00e18 txn:966849 task:3488002] ' SELECT 1 FROM cqmail_mailnames WHERE mailname_id =  ? AND state !=  ?'($0 = 319, $1 = 1)
    Jul 28 16:08:31 osscore : TRC [task:3488002:196141 1:726:abdb3b90 Kernel]: [txn:966849 task:3488002 DBS::ConnectionManager::getConnection] getConnection(0x9b00e18): transaction=966849, current one
    Jul 28 16:08:31 osscore : DBG [task:3488002:196141 1:726:abdb3b90 Kernel]: STMT [Con: 4325, 0x9b00e18 txn:966849 task:3488002] ' UPDATE cqmail_mailboxes SET next_du_update_time =  ? , diskspace_usage = ? WHERE mailname_id =  ?'($0 = '2014-07-28 16:18:31.000000', $1 = 119505, $2 = 319)
    

Search Words

Storage size not updating customer's mailbox

mailbox size isn't updated

mailbox disk usage

mailbox disk quota

Domain mailbox use less disk space than is shown in resources

Hosted Qmail Storage Size Reported Incorrect

5356b422f65bdad1c3e9edca5d74a1ae caea8340e2d186a540518d08602aa065 e12cea1d47a3125d335d68e6d4e15e07

Email subscription for changes to this article
Save as PDF