Operating System - HP-UX
1833648 Members
4554 Online
110062 Solutions
New Discussion

Synchronizing 2 unix servers

 
thewho?
Frequent Advisor

Synchronizing 2 unix servers

Hello,
HP-UX 11.0, Trusted systems, N4000
I'm researching several options (NIS+ and LDAP). I don't think I'll go thru NIS+ because of the overhead that it will create, specially for only 2 servers. LDAP looks more feasible but...
Is there a simpler way? Here's the scenario, one of the boxes is my production box, in the event of a failure of this box I want to be able to switch to the development box (by changing its IP address). I already took care of the synchronization of the databases, what I'm trying to figure out is how to keep the passwd, host, etc in the development box up to date.
Any ideas will be deeply appreciated.
I thought of using incremental fbackups and send them thru the network, Is this feasible for a trusted system?
Thanks in Advance,
Luis
We'll get through this together.
8 REPLIES 8
linuxfan
Honored Contributor

Re: Synchronizing 2 unix servers

Hi Luis,

As far as syncing up the files are concerned,
you could probably write a script that ftps a few files over to the other machine and run this script through cron or you could use something like rdist. I am not sure if rdist works between trusted systems.

The source code for rdist can be obtained from
http://www.magnicomp.com/rdist
or from the HP's porting center
http://hpux.cs.utah.edu/hppd/hpux/Networking/Admin/rdist-6.1.5

-HTH
Ramesh
They think they know but don't. At least I know I don't know - Socrates
Sridhar Bhaskarla
Honored Contributor

Re: Synchronizing 2 unix servers

LUIS,

Did you think of MC/Service Guard?.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Deshpande Prashant
Honored Contributor

Re: Synchronizing 2 unix servers

Hi
MC Service Guard will help you do that. This package is an extra cost though.

Prashant.
Take it as it comes.
Rainer von Bongartz
Honored Contributor

Re: Synchronizing 2 unix servers

No, no
Service Guard will not solve all problems. For sure it is the way you should go to build a high available database system, but it will not free you from the mentioned tasks of keeping /etc/passwd, /etc/groups /etc/hosts and others consistent on multiple hosts.
But you should not think of copying thgos files to different machines and hope to have a replicated evironement. You will fail.
As mentioned keep looking for a central repository for theese files and I really would recommend LDAP. You can install Netscape Directory Server and HP ldap-ux services (both available for free) and build the repository around this.

It is not so complex as you might think but it will save you a lot of problems for the future

Regards
Rainer


on
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
Timothy Czarnik
Esteemed Contributor

Re: Synchronizing 2 unix servers

Luis,

You may want to look at the rdist command as well. You can build a list of files that rdist will automatically verify are the same from one server to the other. If they are not, it will update the out of date file. This not only works for files, but for directories as well (/home, /database, etc...).

Another more drastic alternative is to use a make_recovery tape of the production server on the standby server. ALL your hardware would have to be using the same SCSI ID's on each server, so you may even have to swing cables in the event of a production failure, but its doable.

My $.02

-Tim
Hey! Who turned out the lights!
Timothy Czarnik
Esteemed Contributor

Re: Synchronizing 2 unix servers

Luis,

Your 7 points gave me my first hat! Thanks!

-Tim

Hey! Who turned out the lights!
thewho?
Frequent Advisor

Re: Synchronizing 2 unix servers

Congratulations Timothy!!!
We'll get through this together.
Brian Markus
Valued Contributor

Re: Synchronizing 2 unix servers

We have a something setup that sounds like what your looking for. It was a bit expensive, but you could scale it down for your environment. I have an XP256 Disk Array. I have my Disk system shared out to both systems. So it's one phical volume to each logical volume on the systesm. (same disks two systems) I use MC/Service guard to switch back and forth. You can pick and choose which mount points are 100% identical per node in the cluster.

Hope this helps

Brian
When a sys-admin say's maybe, they don't mean 'yes'!