if node is restarted, db2 is coming up, probably by autostart

that is what you want to keep the standby in sync ?

you can turn the node offline if maintenance is needed..

On Tue, 1 Dec 2020 at 18:51, Harishkumar Pathangay <
[email protected]> wrote:

> 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 node one is down [power off], 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
>
>
>
>
>
> Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for
> Windows 10
>
>
> _______________________________________________
> Manage your subscription:
> https://lists.clusterlabs.org/mailman/listinfo/users
>
> ClusterLabs home: https://www.clusterlabs.org/
>


-- 
Best Regards , Guy Przytula

Tel : +32 475 33 8186
mail : [email protected]
_______________________________________________
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users

ClusterLabs home: https://www.clusterlabs.org/

Reply via email to