<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Why we need Quorum Disk Heuristic in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/why-we-need-quorum-disk-heuristic/m-p/5256698#M52553</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Quorum-disk parameters and heuristics depend on the site environment and special requirements needed. To understand the use of quorum-disk parameters and heuristics, refer to the qdisk(5) man page. &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hack2defence.blogspot.com/2008/11/cluster-on-centos-or-redhat.html" target="_blank"&gt;http://hack2defence.blogspot.com/2008/11/cluster-on-centos-or-redhat.html&lt;/A&gt;</description>
    <pubDate>Mon, 27 Sep 2010 06:50:29 GMT</pubDate>
    <dc:creator>Hakki Aydin Ucar</dc:creator>
    <dc:date>2010-09-27T06:50:29Z</dc:date>
    <item>
      <title>Why we need Quorum Disk Heuristic</title>
      <link>https://community.hpe.com/t5/operating-system-linux/why-we-need-quorum-disk-heuristic/m-p/5256697#M52552</link>
      <description>Dear All,&lt;BR /&gt;&lt;BR /&gt;When i run "system-config-cluster" an option for &lt;BR /&gt;"Quorum Disk Heuristic" come. My query is what is "Quorum Disk Heuristic" ?? &amp;amp; why we need this ?? as i defined quorm disk in the "Use quorm disk" Tag??&lt;BR /&gt;&lt;BR /&gt;Can you give me a real world example of Quorum Disk Heuristic ??&lt;BR /&gt;&lt;BR /&gt;Thanks &lt;BR /&gt;Minhaz&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Sep 2010 06:02:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/why-we-need-quorum-disk-heuristic/m-p/5256697#M52552</guid>
      <dc:creator>Md. Minhaz Khan</dc:creator>
      <dc:date>2010-09-27T06:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: Why we need Quorum Disk Heuristic</title>
      <link>https://community.hpe.com/t5/operating-system-linux/why-we-need-quorum-disk-heuristic/m-p/5256698#M52553</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Quorum-disk parameters and heuristics depend on the site environment and special requirements needed. To understand the use of quorum-disk parameters and heuristics, refer to the qdisk(5) man page. &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hack2defence.blogspot.com/2008/11/cluster-on-centos-or-redhat.html" target="_blank"&gt;http://hack2defence.blogspot.com/2008/11/cluster-on-centos-or-redhat.html&lt;/A&gt;</description>
      <pubDate>Mon, 27 Sep 2010 06:50:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/why-we-need-quorum-disk-heuristic/m-p/5256698#M52553</guid>
      <dc:creator>Hakki Aydin Ucar</dc:creator>
      <dc:date>2010-09-27T06:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: Why we need Quorum Disk Heuristic</title>
      <link>https://community.hpe.com/t5/operating-system-linux/why-we-need-quorum-disk-heuristic/m-p/5256699#M52554</link>
      <description>In general, if a network failure splits a cluster in two equal-sized parts, there is a risk of a split-brain situation.&lt;BR /&gt;&lt;BR /&gt;RedHat cluster solves this primarily with fencing. But how does the cluster choose which half is allowed to continue, and which half gets fenced?&lt;BR /&gt;&lt;BR /&gt;Without quorum disk heuristics, the selection algorithm of the RedHat Cluster would be essentially "the fastest half wins". The quorum disk removes the possibility of fencing war: the fenced half cannot reboot, regain quorum and then try to fence the other half. Until the network problem is fixed, the fenced-out half of the cluster will stay out.&lt;BR /&gt;&lt;BR /&gt;Unfortunately, this is not ideal in real life: if one of the halves is idle because no clients are able to reach it, and the other is still serving clients, the idle half is likely fence the active half, because the active half is slowed down by the clients' requests...&lt;BR /&gt;&lt;BR /&gt;This problem can be solved by careful use of quorum disk heuristics: for example, if the clients are in one particular network segment, an useful heuristic would be something that monitors network connectivity to that network segment. &lt;BR /&gt;&lt;BR /&gt;The quorum disk heuristics are run periodically in every node. If the heuristics indicate a failure (by default: if less than 50% of the configured heuristics commands are successful), then the node will leave the cluster voluntarily and won't participate in cluster quorum voting... so the other nodes will fence the failing node. &lt;BR /&gt;&lt;BR /&gt;If the heuristics are chosen wisely and the cluster is split in two halves by a network failure, the part that is isolated from clients will detect the loss of network connectivity and won't even try to get quorum: this allows the other part to win the quorum and keep serving the clients.&lt;BR /&gt;&lt;BR /&gt;The quorum disk heuristics don't have to be network connectivity tests: you can use any command or any script as a heuristic. The only requirements are:&lt;BR /&gt;- the heuristics command should not take much time to run, and it should not hang in case of errors&lt;BR /&gt;- it should return a exit code of 0 if the test is successful, and any other value if there is a problem.&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Tue, 28 Sep 2010 04:33:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/why-we-need-quorum-disk-heuristic/m-p/5256699#M52554</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2010-09-28T04:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: Why we need Quorum Disk Heuristic</title>
      <link>https://community.hpe.com/t5/operating-system-linux/why-we-need-quorum-disk-heuristic/m-p/5256700#M52555</link>
      <description>Dear Matti Kurkela ,&lt;BR /&gt;&lt;BR /&gt;I am sorry that i am not able to understood your posting. My query is &lt;BR /&gt;&lt;BR /&gt;1) As i defined quorm disk (created by mkqdisk)in the cluster configuration then why i need to define Quorm Disk heuristic ??&lt;BR /&gt;&lt;BR /&gt;Is it mandatory for two or three nodes cluster ??&lt;BR /&gt; &lt;BR /&gt;2) I have found one example which is as below:&lt;BR /&gt;&lt;BR /&gt;1. root#mkqdisk -c /dev/sda1 -l qdisk_rac&lt;BR /&gt;&lt;BR /&gt;2. root#chkconfig --level 345 qdiskd on&lt;BR /&gt;&lt;BR /&gt;3. root#service qdiskd start&lt;BR /&gt;&lt;BR /&gt;4. root#system-config-cluster&lt;BR /&gt;&lt;BR /&gt;5. Cluster Name : apache-cluster and selected quorum disk with following options&lt;BR /&gt;Interval = 1&lt;BR /&gt;TKO = 10&lt;BR /&gt;votes =1&lt;BR /&gt;Minimum score = 3&lt;BR /&gt;Device = /dev/sda1&lt;BR /&gt;Label = qdisk_rac&lt;BR /&gt;&lt;BR /&gt;6. Quorum Disk Heuristic&lt;BR /&gt;Program = ping -c 2 10.10.10.1&lt;BR /&gt;Score =1&lt;BR /&gt;Interval = 2&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Why in the above example use "ping -c 2 10.10.10.1" What is the purpose of this ping in the cluster ??&lt;BR /&gt;&lt;BR /&gt;Please don't mind. I am new in LINUX &amp;amp; we are going to implement One 2 (two) nodes &amp;amp; One 3(three) nodes cluster. Thats why i am clearing my knowledge&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;7. Add new node to cluster&lt;BR /&gt;Node Name = node1.example.com&lt;BR /&gt;Quorum votes = 1&lt;BR /&gt;Node Name = node2.example.com&lt;BR /&gt;Quorum votes = 1&lt;BR /&gt;8. New Fence Device&lt;BR /&gt;HP ILO Device&lt;BR /&gt;Name = ILOGB89xxxxxx&lt;BR /&gt;user = manage&lt;BR /&gt;password = manage&lt;BR /&gt;Hostname = 10.10.10.100&lt;BR /&gt;HP ILO Device&lt;BR /&gt;Name = ILOGB88xxxxxx&lt;BR /&gt;user = manage&lt;BR /&gt;password = manage&lt;BR /&gt;Hostname = 10.10.10.101&lt;BR /&gt;&lt;BR /&gt;9. selected Node1 and "Manage fencing for this node"&lt;BR /&gt;Add New Fencing level -&amp;gt; Add Fencing to this Level. selected ILOGB89xxxxxx&lt;BR /&gt;&lt;BR /&gt;10. selected Node2 and "Manage fencing for this node"&lt;BR /&gt;Add New Fencing level -&amp;gt; Add Fencing to this Level. selected ILOGB88xxxxxx&lt;BR /&gt;11. Created failover domains "failover-cluster" and selected&lt;BR /&gt;"node1.example.com and node2.example.com" from menu, and selected&lt;BR /&gt;"&lt;BR /&gt;"Restrict to this Failover Domain"&lt;BR /&gt;&lt;BR /&gt;12. Create Resource&lt;BR /&gt;New Resource = Apache Server&lt;BR /&gt;Name = Apache HTTP Server service&lt;BR /&gt;Server Root = /etc/httpd&lt;BR /&gt;Config File = /etc/httpd/conf/httpd.conf&lt;BR /&gt;httpd options = /etc/rc.d/init.d/httpd&lt;BR /&gt;&lt;BR /&gt;13. Create a new Resource "File system"&lt;BR /&gt;Name = httpd-content&lt;BR /&gt;File System type = ext3&lt;BR /&gt;Mount point = /var/www/html&lt;BR /&gt;device = /dev/sdb1&lt;BR /&gt;&lt;BR /&gt;14. Create a new Resource "IP "&lt;BR /&gt;10.10.10.200&lt;BR /&gt;&lt;BR /&gt;15. Create a New Service "Web-Service"&lt;BR /&gt;Failover Domain = failover-cluster&lt;BR /&gt;And selected "Add shared resource to this service"&lt;BR /&gt;A. Apache HTTP Server Service&lt;BR /&gt;B. Httpd-Content&lt;BR /&gt;C. IP Address (10.10.10.200)&lt;BR /&gt;&lt;BR /&gt;16&lt;BR /&gt;#[node1@node1]scp /etc/cluster/cluster.conf node2:/etc/cluster/cluster.conf&lt;BR /&gt;&lt;BR /&gt;17&lt;BR /&gt;&lt;BR /&gt;#md5sum /etc/clsuter/cluster.conf&lt;BR /&gt;&lt;BR /&gt;541b1dc67392b18aad7e1df3612a6afe cluster.conf (both node )&lt;BR /&gt;&lt;BR /&gt;on both node &lt;BR /&gt;&lt;BR /&gt;18&lt;BR /&gt;#service cman start&lt;BR /&gt;#service rgmanager start&lt;BR /&gt;&lt;BR /&gt;19&lt;BR /&gt;&lt;BR /&gt;#chkconfig cman on&lt;BR /&gt;#chkconfig rgmanager on</description>
      <pubDate>Tue, 28 Sep 2010 07:07:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/why-we-need-quorum-disk-heuristic/m-p/5256700#M52555</guid>
      <dc:creator>Md. Minhaz Khan</dc:creator>
      <dc:date>2010-09-28T07:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Why we need Quorum Disk Heuristic</title>
      <link>https://community.hpe.com/t5/operating-system-linux/why-we-need-quorum-disk-heuristic/m-p/5256701#M52556</link>
      <description>&amp;gt; 1) As i defined quorm disk (created by mkqdisk)in the cluster configuration then why i need to define Quorm Disk heuristic ??&lt;BR /&gt;&lt;BR /&gt;The quorum disk daemon configuration requires at least one heuristic. You can configure multiple heuristics if you feel it's necessary.&lt;BR /&gt;&lt;BR /&gt;When there are problems in the network, each node must decide alone whether it can continue running the cluster services or not. In this situation, heuristics are used.&lt;BR /&gt;&lt;BR /&gt;Heuristics successful: "I seem to be in good enough condition to do some useful work. I will ask for extra quorum votes from the quorum disk; if I get them, I will use them to win the quorum vote, and then take over the cluster services. (If I don't get the extra votes, there is another node that is in good condition; too bad I cannot communicate with it.)"&lt;BR /&gt;&lt;BR /&gt;Heuristics failed: "Oh no, I seem to have too much problems to do anything useful now. I won't ask for extra quorum votes; that means I will most likely lose the vote. If another node wins the quorum vote, I'll be fenced out of the cluster. If nobody else wins, I'll just wait doing nothing and hope someone fixes the problems."&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Is it mandatory for two or three nodes cluster ??&lt;BR /&gt;&lt;BR /&gt;At least one heuristic is mandatory always when a quorum disk is used. The number of nodes is not the issue.&lt;BR /&gt;&lt;BR /&gt;Of course, if you simply cannot decide a useful heuristic, you might specify "/bin/true" as the heuristic, which means the heuristic will always be successful.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; 2) I have found one example [...]&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Why in the above example use "ping -c 2 10.10.10.1" What is the purpose of this ping in the cluster ??&lt;BR /&gt;&lt;BR /&gt;Possible reasons might be:&lt;BR /&gt;- 10.10.10.1 may be an external database server, when your clustered applications need to use the database - if the database cannot be reached from this node, this node is useless because the clustered applications cannot run on this node, and this node should be treated as "failed".&lt;BR /&gt;&lt;BR /&gt;- 10.10.10.1 may be the gateway through which your clients are accessing your cluster: if there is no connectivity between the node and the gateway, your clients cannot reach that node, so this node should be treated as "failed".&lt;BR /&gt;&lt;BR /&gt;Without the heuristics, the split-brain situation would be resolved more or less randomly: the node that can fence the other(s) quickest would win. This is not optimal, because it might lead into stupid situations, as the only node that could actually usefully run the service gets fenced out.&lt;BR /&gt;&lt;BR /&gt;(Sorry about the delay in answering; I needed some time to try and make a clearer explanation. I hope this is better than the previous one!)&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Wed, 29 Sep 2010 16:05:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/why-we-need-quorum-disk-heuristic/m-p/5256701#M52556</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2010-09-29T16:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: Why we need Quorum Disk Heuristic</title>
      <link>https://community.hpe.com/t5/operating-system-linux/why-we-need-quorum-disk-heuristic/m-p/5256702#M52557</link>
      <description>Dear MK,&lt;BR /&gt;&lt;BR /&gt;Thanks a lot to give me a clear understanding.&lt;BR /&gt;This example was really a good one. thanks again. &lt;BR /&gt;&lt;BR /&gt;Minhaz</description>
      <pubDate>Sun, 03 Oct 2010 06:47:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/why-we-need-quorum-disk-heuristic/m-p/5256702#M52557</guid>
      <dc:creator>Md. Minhaz Khan</dc:creator>
      <dc:date>2010-10-03T06:47:14Z</dc:date>
    </item>
  </channel>
</rss>

