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.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Zephyr ICTCloud ArchitectCommented:
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.
AXISHKAuthor Commented:
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 ?

Zephyr ICTCloud ArchitectCommented:
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.
Protecting & Securing Your Critical Data

Considering 93 percent of companies file for bankruptcy within 12 months of a disaster that blocked access to their data for 10 days or more, planning for the worst is just smart business. Learn how Acronis Backup integrates security at every stage

AXISHKAuthor Commented:
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

Zephyr ICTCloud ArchitectCommented:
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.
AXISHKAuthor Commented:
Which log are you talking about , under which directory ?

Tks again.
Zephyr ICTCloud ArchitectCommented:
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.
AXISHKAuthor Commented:
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
Zephyr ICTCloud ArchitectCommented:
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"
AXISHKAuthor Commented:
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/

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.
Zephyr ICTCloud ArchitectCommented:
Well yes something like that, like I said, depends on how lsyncd scripts are set up. If there are problems it's usually something with a script or a changed component (drives/folders being changed). In rare cases you could be checking rsync for issues, again, depends on how it is used.

The only reference valid is the Issue tracker on the lsyncd Github page, you can find that here

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.