Koozali.org: home of the SME Server

Using rsync to configure hot standby

Offline cabletastic

  • *
  • 6
  • +0/-0
Using rsync to configure hot standby
« on: September 24, 2008, 10:44:47 AM »
Greetings all,
Am just dipping my toes into the smeserver waters having found a link to it thru nuxified.org. Previously I set boxes up with manual configs of Samba, kolab (with Horde), clamav and spamassasin - sme looks to be all these things but quicker to setup!
What I usually do is to have SERVER A setup as described herein as primary and then setup a spare box as SERVER B and have all of the contents of users /home drives and the /data smb shares rsynced to SERVER B so if SERVER A fails I can swap them over.
Is there any way that anyone has experience of to rsync the whole shooting match from SERVER A to SERVER B so that it becomes a proper 'hot standby' (almost like a manually controlled failover cluster) with user credentials and LDAP/DOMAIN settings intact? This could really help me here - SERVER A is backed up to SERVER B - I then usually have an ssh tunnel to rsync salient data across the web to a remote drive so we have an offsite backup. If I could take it this one stage further such that the servers 'image' themselves entirely i would be a very happy camper indeed.
Any replies really appreciated.
Cheers
Si

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Using rsync to configure hot standby
« Reply #1 on: September 24, 2008, 11:23:13 AM »
cabletastic

Not quite a hot standby, but the closest thing to it without creating a lot of work for yourself, and virtually just as effective in my opinion.

http://wiki.contribs.org/Affa

You run the affa-rise command to bring the backup server up to live server status, usually quite quickly ie 10 -15 minutes or so.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline cabletastic

  • *
  • 6
  • +0/-0
Re: Using rsync to configure hot standby
« Reply #2 on: September 24, 2008, 11:39:09 AM »
Thanks a lot for the reply - I'll take a peek now!

Offline cabletastic

  • *
  • 6
  • +0/-0
Re: Using rsync to configure hot standby
« Reply #3 on: September 24, 2008, 11:53:32 AM »
Looks absolutely perfect for my needs - all this 'doing things manually' is gonna be history for me soon! Have spent years configuring *NIX boxes by hand for small business - no need any more!
Thanks a million again.
Cheers
Si

Offline Normando

  • *
  • 841
  • +2/-1
    • Unixlan
Re: Using rsync to configure hot standby
« Reply #4 on: September 24, 2008, 07:37:03 PM »
Yes cabletastic, affa is superb. Say thanks to Michael Weinberger