<div dir="ltr"><div>I am very happy that I somehow triggered this discussion :).<br></div><div><br></div><div>What I did was basically just take the information that was available to me (thanks to Andreas notes and mainly his previous patches that he sent over the years) and provide a single place where one could look at and get pacemaker running on OmniOS.</div><div><br></div><div>When I started this work I was a complete newbie on Illumos and pacemaker, so I realized that I would have saved a lot of time if some tutorial like that existed.</div><div>Unfortunately, I couldn't have too much of a critical eye, as a beginner, so I ignored some things, like trying to run pacemaker compiled with the latest sources as root instead of hacluster (this was my first attempt, with old sources, and failed, so I didn't change the script again later).</div><div><br></div><div>So, I just tried to use root as "CLUSTER_USER" in the SMF script and the cluster seems to run correctly, so I will update this in the post.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2014-11-14 4:02 GMT+01:00 Andrew Beekhof <span dir="ltr"><<a href="mailto:andrew@beekhof.net" target="_blank">andrew@beekhof.net</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
> On 14 Nov 2014, at 6:54 am, Grüninger, Andreas (LGL Extern) <<a href="mailto:Andreas.Grueninger@lgl.bwl.de">Andreas.Grueninger@lgl.bwl.de</a>> wrote:<br>
><br>
> I am really sorry but I forgot the reason. It is now 2 years ago when I had problems with starting pacemaker as root.<br>
> When I remember well pacemaker got always access denied when connection to corosync.<br>
> With a non-root account it worked flawlessly.<br>
<br>
<br>
</span>Oh!!!! That would be this patch: <a href="https://github.com/beekhof/pacemaker/commit/3c9275e9" target="_blank">https://github.com/beekhof/pacemaker/commit/3c9275e9</a><br>
I always thought there was a philosophical objection.<br>
<span class=""><br>
<br>
><br>
> The pull request from branch upstream3 can be closed.<br>
> There is a new pull request from branch upstream4 with the changes against the current master.<br>
<br>
</span>Excellent<br>
<div class="HOEnZb"><div class="h5"><br>
><br>
><br>
> -----Ursprüngliche Nachricht-----<br>
> Von: Andrew Beekhof [mailto:<a href="mailto:andrew@beekhof.net">andrew@beekhof.net</a>]<br>
> Gesendet: Donnerstag, 13. November 2014 12:11<br>
> An: The Pacemaker cluster resource manager<br>
> Betreff: Re: [Pacemaker] Notes on pacemaker installation on OmniOS<br>
><br>
><br>
>> On 13 Nov 2014, at 9:50 pm, Grüninger, Andreas (LGL Extern) <<a href="mailto:Andreas.Grueninger@lgl.bwl.de">Andreas.Grueninger@lgl.bwl.de</a>> wrote:<br>
>><br>
>> I added heartbeat and corosync to have both available.<br>
>> Personally I use pacemaker/corosync.<br>
>><br>
>> There is no need any more to run pacemaker as non-root with the newest version of pacemaker.<br>
><br>
> I'm curious... what was the old reason?<br>
><br>
>><br>
>> The main problems with pacemaker are the changes in the last months especially in services_linux.c.<br>
>> As the name implies this must be a problem with non-linux systems.<br>
>> What is your preferred way to handle e.g. pure linux kernel functions?<br>
><br>
> Definitely to isolate them with an appropriate #define (preferably by feature availability rather than OS)<br>
><br>
>><br>
>> I compiled a version of pacemaker yesterday but with a revision of pacemaker from august.<br>
>> There are pull requests waiting with patches for Solaris/Illumos.<br>
>> I guess it would be better to add this patches from august and my patches from yesterday to the current master.<br>
>> Following the patch from Vincenco I changed services_os_action_execute in services_linux.c and added for non-linux systems the synchronous wait with ppoll which is available for Solaris/BSD/MacOS. Should be same functionality as this function uses file descriptors and signal handlers.<br>
>> Can pull requests be rejected or redrawn?<br>
><br>
> Is there anything left in them that needs to go in?<br>
> If so, can you indicate which parts are needed in those pull requests please?<br>
> The rest we can close - I didn't want to close them in case there was something I had missed.<br>
><br>
>><br>
>> Andreas<br>
>><br>
>><br>
>> -----Ursprüngliche Nachricht-----<br>
>> Von: Andrew Beekhof [mailto:<a href="mailto:andrew@beekhof.net">andrew@beekhof.net</a>]<br>
>> Gesendet: Donnerstag, 13. November 2014 11:13<br>
>> An: The Pacemaker cluster resource manager<br>
>> Betreff: Re: [Pacemaker] Notes on pacemaker installation on OmniOS<br>
>><br>
>> Interesting work... a couple of questions...<br>
>><br>
>> - Why heartbeat and corosync?<br>
>> - Why the need to run pacemaker as non-root?<br>
>><br>
>> Also, I really encourage the kinds of patches referenced in these instructions to bring them to the attention of upstream so that we can work on getting them merged.<br>
>><br>
>>> On 13 Nov 2014, at 7:09 pm, Vincenzo Pii <<a href="mailto:piiv@zhaw.ch">piiv@zhaw.ch</a>> wrote:<br>
>>><br>
</div></div><div class="HOEnZb"><div class="h5">>>> Hello,<br>
>>><br>
>>> I have written down my notes on the setup of pacemaker and corosync on IllumOS (OmniOS).<br>
>>><br>
>>> This is just the basic setup, to be in condition of running the Dummy resource agent. It took me quite some time to get this done, so I want to share what I did assuming that this may help someone else.<br>
>>><br>
>>> Here's the link:<br>
>>> <a href="http://blog.zhaw.ch/icclab/use-pacemaker-and-corosync-on-illumos-omni" target="_blank">http://blog.zhaw.ch/icclab/use-pacemaker-and-corosync-on-illumos-omni</a><br>
>>> o<br>
>>> s-to-run-a-ha-activepassive-cluster/<br>
>>><br>
>>> A few things:<br>
>>><br>
>>> * Maybe this setup is not optimal for how resource agents are managed<br>
>>> by the hacluster user instead of root. This led to some problems,<br>
>>> check this thread:<br>
>>> <a href="https://www.mail-archive.com/pacemaker@oss.clusterlabs.org/msg20834.h" target="_blank">https://www.mail-archive.com/pacemaker@oss.clusterlabs.org/msg20834.h</a><br>
>>> t<br>
>>> ml<br>
>>> * I took some scripts and the general procedure from Andreas and his page here: <a href="http://grueni.github.io/libqb/" target="_blank">http://grueni.github.io/libqb/</a>. Many thanks!<br>
>>><br>
>>> Regards,<br>
>>> Vincenzo.<br>
>>><br>
>>> --<br>
>>> Vincenzo Pii<br>
>>> Researcher, InIT Cloud Computing Lab<br>
>>> Zurich University of Applied Sciences (ZHAW) <a href="http://blog.zhaw.ch/icclab" target="_blank">blog.zhaw.ch/icclab</a><br>
</div></div><div class="HOEnZb"><div class="h5">>>> _______________________________________________<br>
>>> Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
>>> <a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
>>><br>
>>> Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a> Getting started:<br>
>>> <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
>>> Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
>><br>
>><br>
>> _______________________________________________<br>
>> Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
>> <a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
>><br>
>> Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a> Getting started:<br>
>> <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
>> Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
>><br>
>> _______________________________________________<br>
>> Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
>> <a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
>><br>
>> Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a> Getting started:<br>
>> <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
>> Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
><br>
><br>
> _______________________________________________<br>
> Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a> <a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
><br>
> Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a> Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
> Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
><br>
> _______________________________________________<br>
> Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
> <a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
><br>
> Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
> Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
> Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
<br>
<br>
_______________________________________________<br>
Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
</div></div></blockquote></div><br></div><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Vincenzo Pii<br></div>Researcher, InIT Cloud Computing Lab<br>Zurich University of Applied Sciences (ZHAW)<br><a href="http://blog.zhaw.ch/icclab" style="color:rgb(17,85,204)" target="_blank">blog.zhaw.ch/icclab</a><br></div></div>