Re: Replication and single instance store

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Sep 03, 2007 at 05:36:15PM +0200, cyrus@xxxxxxxxxxxxxx wrote:
> Hello,
> 
> With the latest 2.3.9 release, the rolling replication duplicates 
> correctly single instance store messages on the replica ( as many hard 
> links as recipients for the same message ).
> 
> We have tried to re-initialize the replica: delete the mailstore and 
> make a manual replication of all users with sync_client (-u). But, the 
> user mode replication doesn't duplicate correctly single instance store 
> messages.
> 
> Is there a way to re-create a "from scratch" replica with the single 
> instance store messages duplicated the correct way ?

If you can handle one huge sync process, create a file:

USER "$username"
USER "$username2"
...

for all the users across which the single instance store needs to 
apply, then run 'sync_client -r -f $file'.  Alternatively if most
of the single instance store messages are in one mailbox or just 
a few mailboxes you can do small files:

MAILBOX "user.$username.singleinstancemessagesmailbox"
MAILBOX "user.$username.another mailbox"
USER "$username2"

MAILBOX "user.$username.singleinstancemessagesmailbox"
MAILBOX "user.$username.another mailbox"
USER "$username3"

etc.


Basically, single instance store on the replica kicks in
whenever you mention the folder containing a message WITH
THE SAME UUID in the same sync run.  UUIDs are calculated
at initial delivery time (unless you're us, in which case
they're a truncated md5 digest of the message content.)
Creating files like this and passing them with the -f flag
forces sync_client to consider them in the same run, so it
"finds" the matching message on the replica.

Bron.
----
Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux