Hi Sean,
Please reply to the list otherwise the list my stay full of questions only.


I have copied folders from one machine to another without shutting down 
the server.

I dont think that you need to rsync the whole repository if you want 
only some accounts moved.

 > Interesting, yo udon't mention any locking requirements. What happens
 > if new email arrives for one of these users while their folder is
 > rsynced ?

I dont know know much about your setup, but my Cyrus servers run with 
postfix+LDAP so I can do mailrouting to more than one box at a time.

Example:
I have a record for a user called atif
dn: uid=atif, blah blah
mailacceptinggeneralid: [EMAIL PROTECTED]
maildrop: [EMAIL PROTECTED]

If I want to move this user to a box called cyrus2 I will add a second 
maildrop to its record
dn: uid=atif, blah blah
mailacceptinggeneralid: [EMAIL PROTECTED]
maildrop: [EMAIL PROTECTED]
maildrop: [EMAIL PROTECTED]

now I can copy its files to another box and then reconstruct the db.
Any mails that arrive in the mean time will go to both cyrus servers, so 
  most probably the mails will not be lost.


 > I ask because I'm trying to set up a hot stand-by cyrus server but
 > I'm rsyncing the whole cyrus repository. I haven't checked about the
 > possible race conditions yet so I intend to shutdown cyrus then rsync
 > to the back box and then restart cyrus. Do I need to shut it down ?


What do you mean by stand-by cyrus server? Is this like a backup box 
that takes over if one fails?

If yes, then after you have copied the cyrus rep and the databases make 
sure that mail for each user is routed to both boxes.





cheers








> 
>>Setup the second box.
>>Make a list of users that you want to move to the second box.
>>Create top-level mailbox for those users on the second box.
>>rsync their folders to the second box. and then run
>>reconstruct -r -f
>>reconstruct -m
>>
>>
> 
> 
> 
> --Sean
> 



-- 
Atif Ghaffar
Internet Development Manager
4unet AG/SA/Ltd.
---------------------------.
           +41 21 351 53 60 ¦ voice
           +41 79 659 89 72 ¦ mobile
           +41 21 254 53 62 ¦ fax
       http://www.4unet.net ¦ www
     [EMAIL PROTECTED] ¦ email
     http://atifghaffar.com ¦ homepage

Reply via email to