ctl_mboxlist dump/removal

Michael Menge michael.menge at zdv.uni-tuebingen.de
Fri Nov 8 07:26:21 EST 2013


Hi,

Quoting Simon Beale <simon at minos.org.uk>:

> I'm trying to plan a promote/demote of a backend and a replica, to
> effectively swap them over in 2.4.13 cluster.
>
> Given the hostnames are different, and we haven't got a magic dns record
> to update, the list of mailboxes on the master needs to be changed. My
> thinking of how to do this was to run this command on the master:
>
> ctl_mboxlist -d -x -p '${BACKEND}!default
>
> ... which will lose the current mailboxes from the master, then run
>
> ctl_mboxlist -m -a
>
> on the new machine to report and import the new destinations.
>
> However, running the dump command on the master gives:
>
> user.testmbox2  1 dc201kvmuser-12816!default testmbox2     lrswipkxtecda
> fatal error: Internal error: assertion failed: cyrusdb_skiplist.c: 645:
> db->lock_status == UNLOCKED
>
> It gives a similar response if I instead try running the same command
> (after repairing the mailboxes list) on the backend.
>
> Am I doing something wrong with the use of ctl_mboxlist here?
>
> How do other people handle this switchover of backends/replicas for
> disaster recovery purposes? In the absence of the '-x' options working,
> I'm thinking it'll have to be a full master dump piped through sed and
> reimported to replace references to the old server.
>

AFAIK "ctl_mboxlist -m -a" is sufficient. It will overide the old backend




--------------------------------------------------------------------------------
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5267 bytes
Desc: S/MIME Signatur
Url : http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20131108/66d836e1/attachment.bin 


More information about the Info-cyrus mailing list