mailboxes.db disagree between master and replica

Michael Menge michael.menge at zdv.uni-tuebingen.de
Thu Dec 12 18:41:07 EST 2019


Quoting Tod Pike <tgp at cs.cmu.edu>:

> Hello:
>   I am running a 3.X cyrus setup with master/slave replication. I
> have discovered that one of my replicas has gotten out of sync with
> it's master server, not in the sense that the mailboxes are not
> replicated, but that the mailboxes live in different partitions on
> the master and the slave.
>
>   As an example, if I do a "ctl_mboxlist -d user.<foo>" on the master,
> I get back that it lives on partition 2. If I do the same thing on
> the replica, I get back that it lives on partition 4. What happened
> at one time is that the user got moved from partition 4 to partition 2
> and it worked correctly on the master, but never happened on the slave.
> BTW, the mupdate server agrees with the master, not the replica.

Make sure that the same partitions are configured on master and replica

>
>   As an experiment, I tried to do a "ctl_mboxlist -m -w" on the
> replica server, but it returns "couldn't get mupdate server name" since
> it doesn't even know about the mupdate server in it's role as a replica.
>

Cyrus replication is not integrated with the murder setup.
A replica MUST NOT have a mupdate server configured.

>   What are my options here - I know that I could just copy the
> mailboxes.db file from the master to the replica, then manually move
> the mailboxes that are in the "wrong" place to the "right" place, but
> this seems a little drastic. Any way I can just tell the replica to
> update the location of the mailbox one at a time?
>

Have you tried calling sync_client on the master with the "-u" option
(See sync_client manpage for details https://linux.die.net/man/8/sync_client)
This should sync all mailboxes, of the user and move the mailboxes to the
correct partition.

If this fails check for errors in the logs.

An other option would be to move the mailboxes to the correct partition with
cyradm using the renamemailbox command

   renamemailbox oldname newname [partition]




--------------------------------------------------------------------------------
M.Menge                                Tel.: (49) 7071/29-70316
Universität Tübingen                   Fax.: (49) 7071/29-5912
Zentrum für Datenverarbeitung          mail:  
michael.menge at zdv.uni-tuebingen.de
Wächterstraße 76
72074 Tübingen



More information about the Info-cyrus mailing list