Operating System - HP-UX
1827284 Members
3567 Online
109717 Solutions
New Discussion

Re: How configure rsync in my server

 
SOLVED
Go to solution
juanitourquiza
Occasional Advisor

How configure rsync in my server

Server features are:
HP-UX B.11.31
4 Intel(R) Itanium 2 processors (1.5 GHz, 6 MB)

greetings
13 REPLIES 13
James R. Ferguson
Acclaimed Contributor

Re: How configure rsync in my server

Hi:

"How to configure" is based on what it is you want to do. I suggest you examine the manpages and Google "rsync tutorial" for some background.

Regards!

...JRF...
juanitourquiza
Occasional Advisor

Re: How configure rsync in my server

I can configure rsync for red hat. I use this information:

http://www.vicente-navarro.com/blog/2008/01/13/backups-con-rsync/

but in HP-UX is diferent.

Someone was working with rsync en HP-UX?
Patrick Wallek
Honored Contributor

Re: How configure rsync in my server

>>but in HP-UX is diferent.

No, it really shouldn't be.

What problem are having when trying to configure it? What have you done? What does not work?
juanitourquiza
Occasional Advisor

Re: How configure rsync in my server

I installed this:

http://hpux.connect.org.uk/hppd/hpux/Networking/Admin/rsync-3.0.6/
HP-UX 11i v3
(HP-UX 11.31) Itanium 2

In the documentation say: "Is neccesary install xinetd" then I installed the xinetd.

after of configuration rsync:
[sync_windows]
uid=nobody
gid=nobody
comment=Sincroniza carpeta web entre servidores
path=/pruebas
read only=false
hosts allow=172.16.5.56

My error is the next:
rsync: failed to connect to 192.168.26.10: Connection refused (111)
rsync error: error in socket IO (code 10) at clientserver.c(124) [receiver=3.0.6]

How I can execute the daemon xinetd and the daemon rsync?

Regards
Johnson Punniyalingam
Honored Contributor

Re: How configure rsync in my server

>>>rsync error: error in socket IO (code 10) at clientserver.c(124) [receiver=3.0.6]<<

It would be better to check ??

do simple ping test verse vis .
you can also add route to source & target
Problems are common to all, but attitude makes the difference
smatador
Honored Contributor

Re: How configure rsync in my server

Hi,
I don't have xinetd on my 11.31 and rsync works well. It's mean you have installed ixXinetd from internet express
HTH
juanitourquiza
Occasional Advisor

Re: How configure rsync in my server

I understand.
What is his your configuration for rsync?

How I can execute daemon for rsync?
Johnson Punniyalingam
Honored Contributor

Re: How configure rsync in my server

My Server (rsync) configuration

/etc/rsyncd.conf on sourcehost:
# read only = true
uid = root
gid = root
max connections = 0 # no limit
pid file = /var/run/rsyncd.pid
log file = /var/adm/rsync.log
transfer logging = true
log format = %h %o %f %l %b
timeout = 300

[segment]
path=/fs/vg03/lvol1

Rgds,
Johnson
Problems are common to all, but attitude makes the difference
juanitourquiza
Occasional Advisor

Re: How configure rsync in my server

I made this:

[sync_windows]
#uid=nobody
#gid=nobody
uid=root
gid=root
comment=Sincroniza carpeta web entre servidores
#path=/pruebas
path=/dev/vg00/lvol3
read only=false
hosts allow=172.16.5.56

In the pc windows executed this:
First:
- rsync -ar 192.168.26.10::sync_windows /pruebas --delete

Second:
- rsync -ar 192.168.26.10::sync_windows /dev/vg00/lvol3/pruebas --delete

But the error is the same:
rsync: failed to connect to 192.168.26.10: Connection refused (111)
rsync error: error in socket IO (code 10) at clientserver.c(124) [receiver=3.0.6
]

Exist communication between this two servers:

C:\cwRsync\bin>ping 192.168.26.10

Haciendo ping a 192.168.26.10 con 32 bytes de datos:

Respuesta desde 192.168.26.10: bytes=32 tiempo=29ms TTL=254
Respuesta desde 192.168.26.10: bytes=32 tiempo<1m TTL=254
Respuesta desde 192.168.26.10: bytes=32 tiempo<1m TTL=254
Respuesta desde 192.168.26.10: bytes=32 tiempo<1m TTL=254

Estadísticas de ping para 192.168.26.10:
Paquetes: enviados = 4, recibidos = 4, perdidos = 0
(0% perdidos),
Tiempos aproximados de ida y vuelta en milisegundos:
Mínimo = 0ms, Máximo = 29ms, Media = 7ms

Waht happen with rsync?
Some idea?

OldSchool
Honored Contributor
Solution

Re: How configure rsync in my server

"In the pc windows executed this:
First:
- rsync -ar 192.168.26.10::sync_windows /pruebas --delete

Second:
- rsync -ar 192.168.26.10::sync_windows /dev/vg00/lvol3/pruebas --delete

But the error is the same:
rsync: failed to connect to 192.168.26.10: Connection refused (111)
rsync error: error in socket IO (code 10) at clientserver.c(124) [receiver=3.0.6]"

since you issued that on the PC, it would seem that its possible that the daemon isn't running on the HPUX side. Did you add any entries to /etc/services and /etc/inetd.conf? If so, did you restart inetd?

see:

http://www.infoscience.co.jp/technical/rsync/original/rsyncd_conf.html
WayneHP
Frequent Advisor

Re: How configure rsync in my server

Did you try a basic test.

Like rsync -avz source_host:/source/path /destination/path

and be careful about the trailing "/" they cause rsync change recursive behavior.

man rsync.

This will test if you have ssh credentials working wiht rsync.

Then you can go back to the daemon testing.
juanitourquiza
Occasional Advisor

Re: How configure rsync in my server

I need disable two things:

- rsync 873/tcp
- rsync stream tcp nowait root /usr/bin/rsync rsyncd â daemon

I changed path in configuration:

[sync_windows]
uid=root
gid=root
comment=Sincroniza carpeta web entre servidores
path=/pruebas
read only=false
hosts allow=172.16.5.56

Thanks for your responseI need enable two things:

- rsync 873/tcp
- rsync stream tcp nowait root /usr/bin/rsync rsyncd â daemon

I changed the configuration:

[sync_windows]
uid=root
gid=root
comment=Sincroniza carpeta web entre servidores
path=/pruebas
read only=false
hosts allow=172.16.5.56

Thanks for your response
Problem resolved
juanitourquiza
Occasional Advisor

Re: How configure rsync in my server

Sorry this is correct:

I need ENABLE two things:

- rsync 873/tcp
- rsync stream tcp nowait root /usr/bin/rsync rsyncd â  daemon

I changed path in configuration:

[sync_windows]
uid=root
gid=root
comment=Sincroniza carpeta web entre servidores
path=/pruebas
read only=false
hosts allow=172.16.5.56

Thanks for your responseI need enable two things:

- rsync 873/tcp
- rsync stream tcp nowait root /usr/bin/rsync rsyncd â  daemon

I changed the configuration:

[sync_windows]
uid=root
gid=root
comment=Sincroniza carpeta web entre servidores
path=/pruebas
read only=false
hosts allow=172.16.5.56

Thanks for your response
Problem resolved