LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-15-2017, 08:14 AM   #1
Immunitet
LQ Newbie
 
Registered: Sep 2012
Posts: 3

Rep: Reputation: Disabled
Pacemaker is continuously bouncing my lsb-resource


Hi all!
There is RHEL 7.3 2-node failover cluster.
I created by own lsb-scrip with start/stop/monitor parameters.
I checked the script manually - it works fine, according to lsb specs

Then I added my scrip to a cluster resources:
pcs resource create My_application lsb:my_script.sh op monitor interval=40s start timeout=20s stop timeout=20s

and now the issue is: pacemaker starts and stops my resource continuously.
How can I troubleshoot this? Are there any special requirement for lsb-script in cluster?
 
Old 06-15-2017, 01:38 PM   #2
Demosa
Member
 
Registered: Feb 2013
Distribution: Fedora 25, RHEL7, RHCI stack
Posts: 38

Rep: Reputation: Disabled
I could be off (been a while since I've dealt with Pacemaker), but your monitor interval is longer than your timeout intervals, so it sounds like you're running into Fencing.

Try changing the start and stop timeouts to something longer, and the monitor interval shorter, see if that fixes it. (30s monitor, 2m start/stop)
 
Old 06-19-2017, 06:38 AM   #3
Immunitet
LQ Newbie
 
Registered: Sep 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Demosa View Post
your monitor interval is longer than your timeout intervals, so it sounds like you're running into Fencing.

Try changing the start and stop timeouts to something longer, and the monitor interval shorter, see if that fixes it. (30s monitor, 2m start/stop)
It works in different way:

monitor interval - is the interval for the health check command.
start/stop timeout - is the time period while cluster will wait for the response from the script. And if script does not return any result within this period cluster will consider it like a failure.
So, those parameters do not affect each other.

With regard to my problem - I've found the reason.
I used "monitor" command for health check while the LSB-standard assumes "status" instead. I did this looking into corosync.log:
Quote:
Initiating monitor operation My_application_monitor_0 locally on Node2
Result of monitor operation for My_application on Node2: 7 (not running)
Initiating start operation My_application_start_0 locally on Node2
Result of start operation for My_application on Node2: 0 (ok)
Initiating monitor operation My_application_monitor_30000 locally on Node2
Result of monitor operation for My_application on Node2: 7 (not running)
Initiating stop operation My_application_stop_0 locally on Node2 | action 2
Result of stop operation for My_application on Node2: 0 (ok)
Pacemaker mainly works with OCF-standard where "monitor" command is used, but for LSB it sends "status" and writes "monitor" to the log file.

I just changed the "monitor()" function name to "status()" and it become stable. Actually, it was my fault since LSB-standard does not have "monitor" command in the specification.
 
1 members found this post helpful.
  


Reply

Tags
cluster, pacemaker



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
pacemaker corosynce lsb resource script( Sybase Database ASE Server and Backup Server) Arthur Cheng Red Hat 0 04-22-2016 02:45 AM
Lubuntu the pacemaker can't start the drbd resource Bruninho Linux - Virtualization and Cloud 1 09-17-2015 09:44 AM
pacemaker does not failover the resource when eth1 interface goes down Satheesh.kv13 Linux - Server 0 09-10-2014 05:44 PM
[SOLVED] pacemaker - how to start a resource eantoranz Linux - Server 1 10-03-2012 01:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration