Operating System - HP-UX
1833356 Members
3125 Online
110051 Solutions
New Discussion

data synchronization between two machines

 
SOLVED
Go to solution
Maciej Szewczykowski
Frequent Advisor

data synchronization between two machines

Hello,

I've got two b2600 workstations, running HPUX 10. My question is quite simple:
how to synchronize data between them? let's say I have a shared folder on machine A. now, everything what's beeing written into it, should also be stored in a copy of this shared folder existing on machine B.
what I actually mean by the above, is some kind of data replication process.
what can I do to realize my idea?

Thank you in advance,

regards,

matthew
3 REPLIES 3
Luk Vandenbussche
Honored Contributor
Solution

Re: data synchronization between two machines

Hi Matthew,

rsync is a toll that allows this
http://samba.anu.edu.au/rsync/

Binaries are available through

http://hpux.connect.org.uk/hppd/cgi-bin/search?package=&term=/rsync
RAC_1
Honored Contributor

Re: data synchronization between two machines

There is rsync tool that can do this.
Also NFS is there.
There is no substitute to HARDWORK
Geoff Wild
Honored Contributor

Re: data synchronization between two machines

And you can use rdist - built in to HP-UX. I use it to sync some info from one server to another for DR purposes:

I use it like so:

Cron:
# Copy prdadm across to the DR site.
05 01 * * * /app/admin/drp/update-binaries.sh


# cat /app/admin/drp/update-binaries.sh
#! /bin/sh

# Keep the DRP copy of the adm up-to-date.
# Currently the files are in:
#
# /home/prdadm/DR
#
# See the rdist(1M) distfile for a list of exclusions.

DRPDIR=/app/admin/drp
DRPHOST=svr031

HOST=`/usr/bin/uname -n`
PRD=`cmviewcl |grep prddbci |awk '{print $5}'`
if [ "$HOST" = "$PRD" ]
then
mount | grep /home > /dev/null 2>&1
if [ $? -eq 0 ]
then
for vg in `ls -d /dev/vg5* |awk -F/ '{print $3}'`
do
/usr/sbin/vgexport -p -s -v -m /home/prddm/DR/$vg.map /dev/$vg
done
cp -p /etc/cmcluster/PRDDBCI/prddbci.cntl /home/prdadm/DR/
cp -p /etc/cmcluster/PRDDBCI/prddbci.cntl.full /home/prdadm/DR/
cp -p /etc/cmcluster/PRDDBCI/prddbci.cntl.mountonly /home/prdadm/DR/
( su - prdadm -c "rdist -f $DRPDIR/distfile prdadm"; ) 2>&1 |\
tee $DRPDIR/drp.log 2>&1 |\
mailx -s "prdadm DRP rdist output" gwild@mydomain.com
fi



# cat /app/admin/drp/distfile
PRDDR = ( svr031 )

#
# File systems to be copied over to the DR host.
# Don't use -R in install - so as not to remove files on destination host
PRDADM = /home/prdadm

prdadm: ( ${PRDADM} ) -> ( ${PRDDR} )
install -w ;



Rgds...Geoff

Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.