Link to home
Start Free TrialLog in
Avatar of smary
smaryFlag for Canada

asked on

Problems with two node redhat cluster with quorum disk.

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>

Avatar of arnold
arnold
Flag of United States of America image

Is the quorum disk on separate system?

I'm not seeing fencedevices nor fence method.
Avatar of smary

ASKER

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.
SOLUTION
Avatar of arnold
arnold
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
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.
Avatar of smary

ASKER

"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.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial