[ClusterLabs] Question on restart of resource during fail over

Harishkumar Pathangay harishpathangay at outlook.com
Tue Dec 1 08:00:28 EST 2020


Hi,
I have DB2 resource agent scripted by myself.
It is working fine with a small glitch.

I have node1 and node2 in the cluster. No stonith enabled as I don't need one. The environment is for learning purpose only.

If one is down, it is starting the resource on other node which is good. My custom resource agent doing its job. Let us say DB2 is running with pid 4567.

Now, the original node which went down is back again.  I issue pcs cluster start on the node. Node is online. The resource also stays in the other node, which is again good. That way unnecessary movement of resources is avoided, exactly what I want. Good but there is a issue.
On the other node it is restarting the DB2 resource. So my pid of db2 changes to 3452.
This is unnecessary restart of resource which I want to avoid.
How to I get this working.

I am very new to cluster pacemaker.
Please help me so that I can create a working DB2 cluster for my learning purpose.
Also I will be blogging in my youtube channel DB2LUWACADEMY.
Please any help is of great significance to me.

I think it could be quorum issue. But don't know for sure, because there is only two nodes and DB2 resource needs to be active only in one node.

How do I get this configured.

Thanks.
Harish P

Get Outlook for Android<https://aka.ms/ghei36>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clusterlabs.org/pipermail/users/attachments/20201201/c2a37fc7/attachment.htm>


More information about the Users mailing list