Link to home
Start Free TrialLog in
Avatar of AXISHK
AXISHK

asked on

Lsyncd on RedHat 5

Lsyncd had been installed on my RedHat 5 server by an ex-staff. I am asked to write out an operation manual. Here are few questions

1. How to check the current lyncd version and the required packages on Lsyncd ?
2. How to start and stop the lsyncd synchronzation ?
3. What are the common problem for Lsyncd and how to fix it ?

Many thanks.
Avatar of Zephyr ICT
Zephyr ICT
Flag of Belgium image

1. "lyncd -version" and "rpm -q --requires lsyncd"
2. service lsyncd start | service lsyncd stop
3. That's a very broad question, connections can drop so you have to troubleshoot connections between hosts, permissions on directories, solve sync issues when not everything is being synched with the remote host. Keep an eye on the log of lsyncd, it will help you in pinpointing the issues.
Avatar of AXISHK
AXISHK

ASKER

Does lsyncd need rsync as well, or lsyncd can work without rsync ? Will there be a possibility that rsync stop the service but lsyncd service works fine ?



Tks
lsyncd uses Rsync to automate the replication of files from one server to another, so yes, rsync is needed and if it fails, synching will fail to. lsyncd can be active without rsync running but synching will not happen.
Avatar of AXISHK

ASKER

So, can I say that we can try to restart both lsyncd and rsync  in case of synchronziation problem :

service lsyncd restart
service rsync restart

Tks
Yes, it's a possible resolution, restart rsync first, then lsyncd ... Keep an eye on the logs to see if there is any issue while starting.
Avatar of AXISHK

ASKER

Which log are you talking about , under which directory ?

Tks again.
The logs of rsync I mean, either it's specified in the command or they are logged in the syslog, something in /var/log/

That's what I meant, just the standard place for logs if no specific logs are defined.
Avatar of AXISHK

ASKER

One more check, in my current server, rsync doesn't start but lsyncd works fine. Any idea ? Does it really need rsync ? Tks

# chkconfig --list | grep rsync
        rsync:          off
Maybe rsync isn't running as a daemon. It depends on how lsyncd is being used, maybe rsync is only needed on the other side.

Check if the process is running when lsyncd is running with something like "ps -ef | grep rsync"
Avatar of AXISHK

ASKER

Yes, I can see some entry. What does rsync is only called by Lsyncd if needed ? in case fo any problem, nothing need to be check on rsync, correct ?

$ ps -ef | grep rsync | more
root     17543     1  0 Jul23 ?        00:00:51 /usr/bin/rsync -Avzslt --rsh=/us
r/bin/ssh -l sdsadm -i /home/wadm/.ssh/id_rsa -r --delete --ignore-errors --f
orce --from0 --include-from=- --exclude=* /home/test/staging/ fs03:/mdisk2/
www/popa/

BTW, is there any reference for general problem encountered in Lsyncd and how to fix it ?
Normally, what should I need to check in the log ?

Thanks again.
ASKER CERTIFIED SOLUTION
Avatar of Zephyr ICT
Zephyr ICT
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial