The mirror.log file may provide insight. It’s on the drop-down menu on the “Log” page of the admin web interface.
A quick and dirty status can be seen with:
tellmail status | grep Resync
on the server.
$ sudo tellmail status | grep Resync
Resync: Total=254440 23130.0/s, Resent=10, Prune=0, Dirs=157 Th=1 0.0/s 98kb/s
--
John Wilkes
john@wilkes.com
“Learn the rules like a pro, so you can
break them like an artist.” -- Pablo Picasso
> On Apr 3, 2018, at 3:34 AM, Chris Minicola <cminicola@nexicomgroup.net> wrote:
>
>
> I allowed a week for the new slave server to sync all email and settings. I also ran the following commands on the master:
>
> issue "tellmail resync_config" on master (if using g_mirror_config)- we are, so yes.
> issue "tellmail surgehost_update" on master
> issue "tellmail resync_nwauth"' on master (if using nwauth) – we are, so yes.
> issue "tellmail resync_fast" on master
> issue "tellmail resync_mkdir" on master
>
> I switched the server roles this morning and found I could not login to the new server when set as the master. Additionally I received a bounce back message when trying to send to my account saying the account did not exist.
> I quickly switched the servers back and all is good at the moment – I’m able to log in and receive email.
>
> I’m guessing the user database did not copy over to the new server?
>
> Any help would be greatly appreciated.
>
> Thanks,
> Chris
>
> From: surgemail-support [mailto:surgemail-support@netwinsite.com]
> Sent: March 28, 2018 4:00 PM
> To: surgemail-list@netwin.co.nz
> Subject: Re: [SurgeMail List] New server
>
>
>
>
> On 29/03/2018 6:06 a.m., Chris Minicola wrote:
> We run 2 mirrored Surgemail servers and have come to the point where we are ready to update to a new primary server.
>
> We’re currently setting up the new server as the slave. I just wanted to check that we are following all the steps to copy all the data from our existing server.
> Setup the new system as a slave to the master server in the config on the new system, then:
>
> issue "tellmail resync_config" on master (if using g_mirror_config)- we are, so yes.
> issue "tellmail surgehost_update" on master
> issue "tellmail resync_nwauth"' on master (if using nwauth) – we are, so yes.
> issue "tellmail resync_fast" on master
> issue "tellmail resync_mkdir" on master
> That looks good.
>
>
>
> Are there any other steps or files that need to be copied?
>
> I noticed there are some large folders /usr/local/surgemail/
> /usr/local/surgemail/surgeweb
> And
> /usr/local/surgemail/usr
> Do these folders need to be copied over?
> No they shouldn't be needed, surgeweb folders are just caches so not needed.
>
> I don't know what /usr/local/surgemail/usr is, check surgemail.ini for references to it, it's not standard so I"m not sure what it includes..
>
> The other things you might want to copy manually
> 1) mailing list folders (surgemail/dlist...)
> 2) ssl certificates (surgemail/ssl...)
> 3) any archives (legal archive settings/path)...
>
>
> ChrisP.
>
>
>
> Thanks,
> Chris
>
> --
> I'd really appreciate it if you could take a moment to like us on FaceBook, thanks heaps! ChrisP.
|