OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: Hot spare synchronisation?

From: Alexander Hall (alexanderbeard.se)
Date: Fri Feb 08 2008 - 05:59:23 CST


Matt wrote:
> Alexander Hall schreef:
>> Matt wrote:
>>> Hello,
>>>
>>> I am running a 4.2 webserver and want to add another machine as hot
>>> spare.
>>> The second machine is identical and is living in the same rack - this
>>> is purely for hardware failure / easy upgrading and at a later stage
>>> (need 3rd box) CARP.
>>>
>>> I understand I can use rsync over SSH to keep files updated and I can
>>> replicate MySQL realtime.
>>> But what about new packages I might install on the 'master' - is
>>> there an easy way to (semi) instantly mirror those?
>>
>> Why could not rsync do this too? After installing package(s), just
>> trigger an rsync update?
>>
>> /Alexander
>>
> Because of permissions mostly- you'll need root access for such an rsync.
> I suppose I could indeed permit root login on the local network and
> synchronise that way - excluding certain files so the spare keeps its
> own identity.
> I am just wondering if that is the way to go or are there "better" ways
> of doing it?

Ok, then what about something like dump/restore over ssh? That would
"only" require some backup user in group "operator" (which then only
gets read-only access). If dump is already used and you do not want to
get conflicts with the existing dump scheme/sequence (i.e.
/etc/dumpdates), the "-T" flag could be useful.

Of course, the normal issue of dump/restore not removing deleted files
would apply.

Just brainstorming. :-)

/Alexander