Solved

Problems with two node redhat cluster with quorum disk.

Posted on 2010-09-02
7
2,752 Views
Last Modified: 2012-08-14
Hello,

I'm building a RHEL 5.5 cluster with 2 nodes and a quorum disk. When I reboot both the nodes in the cluster at the same time, clustat shows both the nodes online and the quorum disk. When I disable one node, it fences the node and reboots. The problem is, this node is not able to quorate to the cluster and never joins back to the cluster. Hence the cluster is left with one node and the quorum disk and the node which was rebooted thinks it is online (split-brain).

Following is how my cluster.conf looks like. Any comments/suggestions will be helpful :)


<?xml version="1.0"?>
<cluster alias="clu" config_version="25" name="clu">
        <fence_daemon clean_start="0" post_fail_delay="0" post_join_delay="30"/>
        <clusternodes>
                <clusternode name="node1" nodeid="1" votes="1">
                        <fence>
                                <method name="1">
                        --                                  
                                </method>
                        </fence>
                </clusternode>
                <clusternode name="node2" nodeid="2" votes="1">
                        <fence>
                                <method name="1">
                                  --
                                </method>
                        </fence>
                </clusternode>
        </clusternodes>
        <cman expected_votes="3"/>
        <fencedevices>
          --
        </fencedevices>
        <rm>
                <failoverdomains>
                        <failoverdomain name="nofailback" nofailback="1" ordered="1" restricted="1">
                                <failoverdomainnode name="node1" priority="1"/>
                                <failoverdomainnode name="node2" priority="2"/>
                        </failoverdomain>
                </failoverdomains>
                <resources/>
        </rm>
        <totem consensus="4800" join="60" token="136000" token_retransmits_before_loss_const="20"/>
        <quorumd interval="3" label="quorumdisk" min_score="1" tko="15" votes="1"/>
</cluster>

0
Comment
Question by:smary
  • 5
  • 2
7 Comments
 
LVL 77

Expert Comment

by:arnold
ID: 33597128
Is the quorum disk on separate system?

I'm not seeing fencedevices nor fence method.
0
 
LVL 1

Author Comment

by:smary
ID: 33598267
Quorum is a shared SAN space between these two nodes and I do have fencedevices and fence method, but I've not included it here. It shouldnt make any difference in deciding this, but I can include it if required.
0
 
LVL 77

Assisted Solution

by:arnold
arnold earned 500 total points
ID: 33598457
Are you using iscsi to access the storage or do you have FC connection to the drives?
When both nodes are up, can both nodes access the data on the shared drive?
Which fencingmethod and fencing device are you using?
A complete cluster.conf would be helpful.

See if the info in http://sourceware.org/cluster/doc/usage.txt helps.
The example has FC connected storage (brocade fencing)
0
Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

 
LVL 77

Expert Comment

by:arnold
ID: 33598525
One other thing, make sure that both nodes have an identical copy of the cluster.conf file.
Each node may have itself listed as active and you have post_fail_delay="0"  which I think may lead to both trying to comeup as active nodes.

Any error message in /var/log/messages on either node.  You should also not reboot both at the same time. power off one, then reboot the other which should configure itself as the active one.  Then power up the second node which should then run and attempt to rejoin the cluster.  Double check that the IP resource is configured.
0
 
LVL 77

Expert Comment

by:arnold
ID: 33598598
Not sure which version this deals with centos is based on the redhat foundation http://www.centos.org/docs/5/

If you have access to rhn.redhat.com a similar set of documents should be available there.
0
 
LVL 1

Author Comment

by:smary
ID: 33613217
"Are you using iscsi to access the storage or do you have FC connection to the drives?"
-> FC Connection

"When both nodes are up, can both nodes access the data on the shared drive?"
-> Should be. Both the nodes can see the quorum drive online at the same time.

Which fencingmethod and fencing device are you using?"
-> IBM blade center.

I've verified the both the nodes have identical cluster.conf. The problem is, eventually when one of the two nodes goes down and is rebooted, that node can not form a quorum with the cluster and shows as offline. The node is not able to rejoin the cluster. So the logs in /var/log/messages says that 'Cluster is not quorate. Refusing connections'

I was not able to find much useful info about two node cluster with quorum disk, hence seeking help here.

Any idea why is the node not able to form quorum and join the cluster.
0
 
LVL 77

Accepted Solution

by:
arnold earned 500 total points
ID: 33613987
Other than the storage fencing, don't you also have an IP based fencing?
Can you post the cluster config?
You need to fence based on all the shared resources.
IP,
http://sources.redhat.com/cluster/wiki/FAQ/Fencing

http://www.redhat.com/docs/manuals/csgfs/browse/rh-cs-en/s1-config-fence-devices.html

What is the error if any on the active node.  I think the issue is that when a rebooted node comes up, it can not
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I previously wrote an article addressing the use of UBCD4WIN and SARDU. All are great, but I have always been an advocate of SARDU. Recently it was suggested that I go back and take a look at Easy2Boot in comparison.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
This video teaches viewers how to encrypt an external drive that requires a password to read and edit the drive. All tasks are done in Disk Utility. Plug in the external drive you wish to encrypt: Make sure all previous data on the drive has been …
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now