Re: Starting two-node cluster with only one node

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Have you tried setting the "post_join_delay" value in the <fence_daemon ...> declaration to -1?

<fence_daemon clean_start="0" post_fail_delay="0" post_join_delay="-1" />

This is a hint I picked up from the fenced man page section on avoiding boot time fencing. It tells fenced to wait until all of the nodes have joined the cluster before starting up. We use this on a couple of 2 node clusters (with qdisk) to allow them to start up without the first node to grab the quorum disk fencing the other node.

--Aaron

On Jul 16, 2009, at 12:16 AM, Abed-nego G. Escobal, Jr. wrote:



Tried it and now the two node cluster is running with only one node. My problem right now is how to force the second node to join the first node's cluster. Right now it is creating its own cluster and trying to fence the first node. I tried cman_tool leave on the second node but I got

cman_tool: Error leaving cluster: Device or resource busy

clvmd and gfs are not running on the second node. What is running on the second node is cman. When I did

service cman start

It took 5 approximately 5 minutes before I got the [ok] meassage. Am I missing something here? Not doing right? Should be doing something?


--- On Thu, 7/16/09, Abed-nego G. Escobal, Jr. <abednegoyulo@xxxxxxxxx> wrote:

From: Abed-nego G. Escobal, Jr. <abednegoyulo@xxxxxxxxx>
Subject:  Starting two-node cluster with only one node
To: "linux clustering" <linux-cluster@xxxxxxxxxx>
Date: Thursday, 16 July, 2009, 10:46 AM

Using the config file below

<?xml version="1.0"?>
<cluster name="GFSCluster" config_version="5">
<cman expected_votes="1" two_node="1"/>
  <clusternodes><clusternode
name="node01.company.com" votes="1"
nodeid="1"><fence><method
name="single"><device
name="node01_ipmi"/></method></fence></clusternode><clusternode
name="node02.company.com" votes="1"
nodeid="2"><fence><method
name="single"><device
name="node02_ipmi"/></method></fence></clusternode></clusternodes>
  <fencedevices><fencedevice
name="node01_ipmi" agent="fence_ipmilan" ipaddr="10.1.0.5"
login="root" passwd="********"/><fencedevice
name="node02_ipmi" agent="fence_ipmilan" ipaddr="10.1.0.7"
login="root" passwd="********"/></fencedevices>
  <rm>
    <failoverdomains/>
    <resources/>
  </rm>
</cluster>

Is it possible to start the cluster by only bringing up one
node? The reason why I asked is because currently bringing
them up together produces a split brain, each of them member
of the cluster GFSCluster of their own fencing each other.
My plan is to bring up only one node to create a quorum then
bring the other one up and manually join it to the existing
cluster.

I have already don the start_clean approach but it seems it
does not work.




--
Linux-cluster mailing list
Linux-cluster@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/linux-cluster



Try the new Yahoo! Messenger. Now with all you love about messenger and more! http://ph.messenger.yahoo.com

--
Linux-cluster mailing list
Linux-cluster@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/linux-cluster

--
Linux-cluster mailing list
Linux-cluster@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/linux-cluster

[Index of Archives]     [Corosync Cluster Engine]     [GFS]     [Linux Virtualization]     [Centos Virtualization]     [Centos]     [Linux RAID]     [Fedora Users]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Camping]

  Powered by Linux