Re: mailboxes.db disagree between master and replica

Michael Menge <[email protected]>
Newsgroups gmane.mail.imap.cyrus
Message-ID <20191213004107.Horde.vylNU0QgNIkFuonbXNkDQgH@webmail.uni-tuebingen.de>
Quoting Tod Pike <[email protected]>:

> 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:  
[email protected]
Wächterstraße 76
72074 Tübingen

----
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.