<div dir="ltr"><div><div><div>Hi Everyone, <br><br></div>Thank you very much for your help ! <br></div>I will follow <a href="http://clusterlabs.org">clusterlabs.org</a>'s quickstart guide. :)<br><br></div>Thanachit W.<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jun 17, 2014 at 2:10 AM, emmanuel segura <span dir="ltr"><<a href="mailto:emi2fast@gmail.com" target="_blank">emi2fast@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">So Document examples for redhat 6 made it with Redhat 7 :)<br>
<br>
2014-06-16 19:58 GMT+02:00 Thanachit Wichianchai <<a href="mailto:thanachit.w@googlemail.com">thanachit.w@googlemail.com</a>>:<br>
<div class="HOEnZb"><div class="h5">> Hi, It is EL 6.5. For Version: 1.1.10-5.el7-9abe687 it is the output posted in redhat document. --<br>
>>>>> <a href="https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Configuring_the_Red_Hat_High_Availability_Add-On_with_Pacemaker/ap-configfile-HAAR.html" target="_blank">https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Configuring_the_Red_Hat_High_Availability_Add-On_with_Pacemaker/ap-configfile-HAAR.html</a><br>
><br>
> Thank you very much.<br>
><br>
> Thanachit<br>
><br>
><br>
> Sent from my iPad<br>
><br>
>> On 16 มิ.ย. 2557, at 23:24, Digimer <<a href="mailto:lists@alteeve.ca">lists@alteeve.ca</a>> wrote:<br>
>><br>
>> The subject says 6.5, so we need Thanachit to clarify.<br>
>><br>
>> If EL7, then no, there is no cman. You can use pcsd to form the cluster initially, but also, that version should not attempt to start cman at all, so I am still thinking it is RHEL/CentOS 6.<br>
>><br>
>>> On 16/06/14 12:20 PM, emmanuel segura wrote:<br>
>>> From the previous output i seen this "Version: 1.1.10-5.el7-9abe687",<br>
>>> so my question is "cman is used on redhat7?"<br>
>>><br>
>>> 2014-06-16 18:10 GMT+02:00 Digimer <<a href="mailto:lists@alteeve.ca">lists@alteeve.ca</a>>:<br>
>>>> You need to setup a skeleton cluster.conf file. You can use the 'ccs' tool,<br>
>>>> here is an example (I use for my cluster, adjust the names to suit):<br>
>>>><br>
>>>> ccs -f /etc/cluster/cluster.conf --createcluster an-anvil-04<br>
>>>> ccs -f /etc/cluster/cluster.conf --setcman two_node="1" expected_votes="1"<br>
>>>> ccs -f /etc/cluster/cluster.conf --addnode <a href="http://an-a04n01.alteeve.ca" target="_blank">an-a04n01.alteeve.ca</a><br>
>>>> ccs -f /etc/cluster/cluster.conf --addnode <a href="http://an-a04n02.alteeve.ca" target="_blank">an-a04n02.alteeve.ca</a><br>
>>>> ccs -f /etc/cluster/cluster.conf --addfencedev pcmk agent=fence_pcmk<br>
>>>> ccs -f /etc/cluster/cluster.conf --addmethod pcmk-redirect<br>
>>>> <a href="http://an-a04n01.alteeve.ca" target="_blank">an-a04n01.alteeve.ca</a><br>
>>>> ccs -f /etc/cluster/cluster.conf --addmethod pcmk-redirect<br>
>>>> <a href="http://an-a04n02.alteeve.ca" target="_blank">an-a04n02.alteeve.ca</a><br>
>>>> ccs -f /etc/cluster/cluster.conf --addfenceinst pcmk <a href="http://an-a04n01.alteeve.ca" target="_blank">an-a04n01.alteeve.ca</a><br>
>>>> pcmk-redirect port=<a href="http://an-a04n01.alteeve.ca" target="_blank">an-a04n01.alteeve.ca</a><br>
>>>> ccs -f /etc/cluster/cluster.conf --addfenceinst pcmk <a href="http://an-a04n02.alteeve.ca" target="_blank">an-a04n02.alteeve.ca</a><br>
>>>> pcmk-redirect port=<a href="http://an-a04n02.alteeve.ca" target="_blank">an-a04n02.alteeve.ca</a><br>
>>>> ccs -f /etc/cluster/cluster.conf --setfencedaemon post_join_delay="30"<br>
>>>><br>
>>>> hth<br>
>>>><br>
>>>><br>
>>>>> On 16/06/14 07:13 AM, Thanachit Wichianchai wrote:<br>
>>>>><br>
>>>>> Hello Pacemaker guys,<br>
>>>>><br>
>>>>> I am doing a proof of concept of active/passive HA cluster on RHEL 6.5<br>
>>>>> Since the customer who I am working for will finally get support from<br>
>>>>> Red Hat. Therefore, I am trying to comply with Red Hat Documentation.<br>
>>>>> as stated in several places that on RHEL 6.5 - pacemaker is now<br>
>>>>> supported with CMAN stack.<br>
>>>>><br>
>>>>> I started configuring things by following steps describe in<br>
>>>>><br>
>>>>> <a href="https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Configuring_the_Red_Hat_High_Availability_Add-On_with_Pacemaker/ap-configfile-HAAR.html" target="_blank">https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Configuring_the_Red_Hat_High_Availability_Add-On_with_Pacemaker/ap-configfile-HAAR.html</a><br>
>>>>> document. This document provides configuration steps by using pcs<br>
>>>>> command. no ccs or crmsh commands at all.<br>
>>>>><br>
>>>>> After I have created cluster. I can start cluster services on node1 but<br>
>>>>> cannot start it on node2 - there error is /etc/cluster/cluster.conf is<br>
>>>>> not there on node2<br>
>>>>><br>
>>>>> pcs cluster start<br>
>>>>> Starting Cluster...<br>
>>>>> Starting cluster:<br>
>>>>> Checking if cluster has been disabled at boot... [ OK ]<br>
>>>>> Checking Network Manager... [ OK ]<br>
>>>>> Global setup... [ OK ]<br>
>>>>> Loading kernel modules... [ OK ]<br>
>>>>> Mounting configfs... [ OK ]<br>
>>>>> Starting cman... xmlconfig cannot find /etc/cluster/cluster.conf<br>
>>>>> [FAILED]<br>
>>>>> Stopping cluster:<br>
>>>>> Leaving fence domain... [ OK ]<br>
>>>>> Stopping gfs_controld... [ OK ]<br>
>>>>> Stopping dlm_controld... [ OK ]<br>
>>>>> Stopping fenced... [ OK ]<br>
>>>>> Stopping cman... [ OK ]<br>
>>>>> Unloading kernel modules... [ OK ]<br>
>>>>> Unmounting configfs... [ OK ]<br>
>>>>><br>
>>>>> Error: unable to start cman<br>
>>>>><br>
>>>>> pcs cluster status command output on node1 shows "cman" stack<br>
>>>>><br>
>>>>> pcs cluster status<br>
>>>>> Cluster Status:<br>
>>>>> Last updated: Mon Jun 16 15:31:53 2014<br>
>>>>> Last change: Mon Jun 16 14:23:04 2014 via crmd on rhcs1.localdomain<br>
>>>>> Stack: cman<br>
>>>>> Current DC: rhcs1.localdomain - partition with quorum<br>
>>>>> Version: 1.1.10-14.el6-368c726<br>
>>>>> 2 Nodes configured<br>
>>>>> 0 Resources configured<br>
>>>>><br>
>>>>> PCSD Status:<br>
>>>>> Error: no nodes found in corosync.conf<br>
>>>>><br>
>>>>><br>
>>>>> but from the aforementioned document from Red Hat. the stack is corosync.<br>
>>>>><br>
>>>>> [root@z1 ~]#*|pcs cluster status|*<br>
>>>>><br>
>>>>> Cluster Status:<br>
>>>>> Last updated: Thu Jul 25 13:01:26 2013<br>
>>>>> Last change: Thu Jul 25 13:04:45 2013 via crmd <a href="http://onz2.example.com" target="_blank">onz2.example.com</a><br>
>>>>> <<a href="http://z2.example.com" target="_blank">http://z2.example.com</a>><br>
>>>>> Stack: corosync<br>
>>>>> Current DC:<a href="http://z2.example.com" target="_blank">z2.example.com</a> <<a href="http://z2.example.com" target="_blank">http://z2.example.com</a>> (2) - partition with<br>
>>>>> quorum<br>
>>>>><br>
>>>>> Version: 1.1.10-5.el7-9abe687<br>
>>>>> 2 Nodes configured<br>
>>>>> 0 Resources configured<br>
>>>>><br>
>>>>><br>
>>>>> from the 2 incidents above, I am not sure whether I am on the right path.<br>
>>>>><br>
>>>>> My PoC objectives are to<br>
>>>>><br>
>>>>><br>
>>>>> 1. configure Active/Passive HA cluster on RHEL 6.5<br>
>>>>><br>
>>>>> 2. Get Full Support from Red Hat on both OS and High Availability Add-on<br>
>>>>><br>
>>>>><br>
>>>>> 3. choose HA Cluster software and stacks which has a future. I expect to<br>
>>>>> have more than 5 years support from Red Hat and Community.<br>
>>>>><br>
>>>>><br>
>>>>> I found this quick start guide for redhat on cluster<br>
>>>>> labshttp://<a href="http://clusterlabs.org/quickstart-redhat.html" target="_blank">clusterlabs.org/quickstart-redhat.html</a><br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>> I am not sure whether I should use ccs command to create cluster first and<br>
>>>>> use pcs to manage resource.<br>
>>>>><br>
>>>>> on more question, I see corosync will be supported in RHEL7. Can I use<br>
>>>>> only corosync with pacemaker in RHEL 6.5? Will I get support from Red Hat ?<br>
>>>>><br>
>>>>><br>
>>>>> Could you guys please help advise? Thanks a lot.<br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>> --<br>
>>>>><br>
>>>>> Thanachit Wichianchai / IT Specialist - RHCSA, RHCE<br>
>>>>> +66 87 696 5522/ thanachit [at] <a href="http://acm.org" target="_blank">acm.org</a><br>
>>>>> <mailto:<a href="mailto:thanachit%2520">thanachit%20</a>[at]%<a href="http://20acm.org" target="_blank">20acm.org</a>><br>
>>>>><br>
>>>>> <a href="http://hi.im/thanachit" target="_blank">http://hi.im/thanachit</a><br>
>>>>><br>
>>>>> Google Plus <<a href="https://plus.google.com/u/0/102459307371925233265/posts" target="_blank">https://plus.google.com/u/0/102459307371925233265/posts</a>><br>
>>>>> Linkedin <<a href="http://th.linkedin.com/in/thanachit" target="_blank">http://th.linkedin.com/in/thanachit</a>><br>
>>>>><br>
>>>>><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>
>>>><br>
>>>><br>
>>>> --<br>
>>>> Digimer<br>
>>>> Papers and Projects: <a href="https://alteeve.ca/w/" target="_blank">https://alteeve.ca/w/</a><br>
>>>> What if the cure for cancer is trapped in the mind of a person without<br>
>>>> access to education?<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>
>><br>
>><br>
>> --<br>
>> Digimer<br>
>> Papers and Projects: <a href="https://alteeve.ca/w/" target="_blank">https://alteeve.ca/w/</a><br>
>> What if the cure for cancer is trapped in the mind of a person without access to education?<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>
> 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>
--<br>
</div></div><div class="im HOEnZb">esta es mi vida e me la vivo hasta que dios quiera<br>
<br>
</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><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><br clear="all"><br>-- <br><div dir="ltr"><p style="font-family:Helvetica,Arial,sans-serif;font-size:10px;line-height:11px;color:#999"><span style="font-weight:bold">Thanachit Wichianchai</span>
                                 <span>/</span> <span>IT Specialist - RHCSA, RHCE</span><br>
                                 <span>+66 87 696 5522</span><span>/</span> <a href="mailto:thanachit%20[at]%20acm.org" style="color:#dda200" target="_blank">thanachit [at] acm.org</a></p><p style="font-family:Helvetica,Arial,sans-serif;font-size:10px;line-height:11px;color:#999">
<a href="http://hi.im/thanachit" style="color:rgb(221,162,0)" target="_blank">http://hi.im/thanachit</a></p>
<p> <a href="https://plus.google.com/u/0/102459307371925233265/posts" target="_blank"><img src="http://3sparks.net/signature/images/social/google-plus.png" alt="Google Plus"></a> <a href="http://th.linkedin.com/in/thanachit" target="_blank"><img src="http://3sparks.net/signature/images/social/linkedin.png" alt="Linkedin"></a></p>
</div>
</div>