<div dir="ltr"><div>Hi 
Oyvind,</div><div>thank you for reply!<br></div><div></div><div><br></div><div>I<span class="gmail-tlid-translation gmail-translation" lang="en"><span title="" class="gmail-">interesting, but not simple...</span></span></div><div><span class="gmail-tlid-translation gmail-translation" lang="en"><span title="" class="gmail-">
</span></span><div class="gmail-text-wrap gmail-tlid-copy-target"><div class="gmail-result-shield-container gmail-tlid-copy-target" tabindex="0"><span class="gmail-tlid-translation gmail-translation" lang="en"><span title="" class="gmail-">I did some tests with ocf_heartbeat_anything and the simple start and stop seems to work correctly</span></span><span class="gmail-tlid-translation-gender-indicator gmail-translation-gender-indicator"></span>.</div><div class="gmail-result-shield-container gmail-tlid-copy-target" tabindex="0">
<div class="gmail-text-wrap gmail-tlid-copy-target"><div class="gmail-result-shield-container gmail-tlid-copy-target" tabindex="0"><span class="gmail-tlid-translation gmail-translation" lang="en"><span title="" class="gmail-">Would it be possible to create two opposite "services" with this ocf?</span></span><span class="gmail-tlid-translation-gender-indicator gmail-translation-gender-indicator"></span></div><div class="gmail-result-shield-container gmail-tlid-copy-target" tabindex="0"><br></div><div class="gmail-result-shield-container gmail-tlid-copy-target" tabindex="0">Example:</div><div class="gmail-result-shield-container gmail-tlid-copy-target" tabindex="0"><br></div><div class="gmail-result-shield-container gmail-tlid-copy-target" tabindex="0">
NODE1 (Master)   service-master (START) & service-slave (STOP)<br>NODE2 (Slave)     service-master (STOP) & service-slave (START) <br></div><div class="gmail-result-shield-container gmail-tlid-copy-target" tabindex="0"><br></div><div class="gmail-result-shield-container gmail-tlid-copy-target" tabindex="0">"S<span class="gmail-tlid-translation gmail-translation" lang="en"><span title="" class="gmail-">ervice-master" puts down "service-slave" and </span></span><span class="gmail-tlid-translation gmail-translation" lang="en"><span title="" class="gmail-">does the opposite in the second node.</span></span></div><div class="gmail-result-shield-container gmail-tlid-copy-target" tabindex="0"><span class="gmail-tlid-translation gmail-translation" lang="en"><span title="" class="gmail-"><br></span></span></div><div class="gmail-result-shield-container gmail-tlid-copy-target" tabindex="0"><span class="gmail-tlid-translation gmail-translation" lang="en"><span title="" class="gmail-">Regards</span></span></div><div class="gmail-result-shield-container gmail-tlid-copy-target" tabindex="0"><span class="gmail-tlid-translation gmail-translation" lang="en"><span title="" class="gmail-">Sim<br></span></span></div></div>

</div></div>



</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno mar 14 lug 2020 alle ore 10:41 Oyvind Albrigtsen <<a href="mailto:oalbrigt@redhat.com">oalbrigt@redhat.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">You should be able to make your custom agent by following this doc:<br>
<a href="https://github.com/ClusterLabs/resource-agents/blob/master/doc/dev-guides/ra-dev-guide.asc" rel="noreferrer" target="_blank">https://github.com/ClusterLabs/resource-agents/blob/master/doc/dev-guides/ra-dev-guide.asc</a><br>
<br>
Oyvind<br>
<br>
On 13/07/20 10:08 +0200, Sim wrote:<br>
>Hi,<br>
>I need to create a cluster with these characteristics:<br>
><br>
>NODE1 (Master)<br>
>NODE2 (Slave)<br>
><br>
>Example sequence to moving the role from NODE1 to NODE2:<br>
><br>
>- NODE1: stopped a process with "systemctl stop"<br>
>- NODE1: executed a script with parameter "slave"<br>
>- NODE1: executed again the process with "systemctl start"<br>
>- NODE2: stopped a process with "systemctl stop"<br>
>- NODE2: executed a script "master"<br>
>- NODE2: executed again the process with "systemctl start"<br>
><br>
>I only found ocf_heartbeat_anything but I don't know if it's right for me.<br>
>Any suggestions?<br>
><br>
>Regards<br>
>Sim<br>
<br>
>_______________________________________________<br>
>Manage your subscription:<br>
><a href="https://lists.clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.clusterlabs.org/mailman/listinfo/users</a><br>
><br>
>ClusterLabs home: <a href="https://www.clusterlabs.org/" rel="noreferrer" target="_blank">https://www.clusterlabs.org/</a><br>
<br>
_______________________________________________<br>
Manage your subscription:<br>
<a href="https://lists.clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.clusterlabs.org/mailman/listinfo/users</a><br>
<br>
ClusterLabs home: <a href="https://www.clusterlabs.org/" rel="noreferrer" target="_blank">https://www.clusterlabs.org/</a><br>
</blockquote></div>