[ClusterLabs] Question on restart of resource during fail over

Guy Przytula przytula.guy at gmail.com
Wed Dec 2 03:17:47 EST 2020


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 <
harishpathangay at outlook.com> 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 : przytula.guy at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clusterlabs.org/pipermail/users/attachments/20201202/ff3d0b55/attachment.htm>


More information about the Users mailing list