[Linux-cluster] RHSCv4 2-node cluster hangs while startingfenced

Hirantha Wijayawardena hirantha at vcs.informatics.lk
Wed Nov 2 10:40:25 UTC 2005


Dear all,

Thanks a lot for support you guys. I managed to start the cluster with
fenced. I tried what Dave told me - but I'm not sure whether this is what he
told coz I don't have a clue

I changed the fence-levels between 2 nodes. Say:
Node1 --> HPiLO_node2 --> fence-level-1
Node2 --> HPiLO_node1 --> fence-level-6

But I do not have a clue what is fence-level and what was the different
between each level and why is start to work after changing as above.

Here is my .conf file and please advice me what is fence-levels and how it
works..

<cluster config_version="38" name="alpha_cluster">
	<fence_daemon clean_start="0" post_fail_delay="0"
post_join_delay="3"/>
	<clusternodes>
		<clusternode name="node1" votes="1">
			<fence>
				<method name="1"/>
				<method name="2"/>
				<method name="3"/>
				<method name="4"/>
				<method name="5"/>
				<method name="6">
					<device name="HPiLO_node2"/>
				</method>
			</fence>
		</clusternode>
		<clusternode name="node2" votes="1">
			<fence>
				<method name="1">
					<device name="HPiLO_node1"/>
				</method>
			</fence>
		</clusternode>
	</clusternodes>
	<cman expected_votes="1" two_node="1"/>
	<fencedevices>
		<fencedevice agent="fence_ilo" hostname="10.10.10.1"
                 login="Administrator" name="HPiLO_node1"
passwd="RWE232WE"/>
  		<fencedevice agent="fence_ilo" hostname="10.10.10.2"
                  login="Administrator" name="HPiLO_node2"
 passwd="QWD31D4D"/>


Thanks all your support

- Hirantha

-----Original Message-----
From: linux-cluster-bounces at redhat.com
[mailto:linux-cluster-bounces at redhat.com] On Behalf Of Mark Hlawatschek
Sent: Wednesday, November 02, 2005 2:49 PM
To: linux clustering
Subject: RE: [Linux-cluster] RHSCv4 2-node cluster hangs while
startingfenced

Hi Hirantha,

The fence device for nodeN has to be the ILO device that is used to
fence nodeN - i.e. the ILO device inside nodeN.

For the cluster.conf this means:
(...)
<clusternode name="nodeN" votes="1">
	<fence>
 		<method name="1">
 			<device name="HPiLO_nodeN"/>
 		</method>
 	</fence>
</clusternode>
(...)
<fencedevices>
	<fencedevice agent="fence_ilo" hostname="hostname of ILO device
inside nodeN"
        login="ilouser" name="HPiLO_nodeN" passwd="ilopassword"/>
</fencedevices>

and so on...

I hope that helps,

Mark


On Wed, 2005-11-02 at 10:20 +0600, Hirantha Wijayawardena wrote:
> Thanks all,
> 
> But I didn't get - the configuration is backwards!!
> 
> I'm very new to RHCS but not for Linux Cluster and please help on this.
> 
> As you know I have 2 fence devices each node has its own.
> 
> Node1 has HPiLO_node1
> Node2 has HPiLO_node2
> 
> So I configured as follows
> 
> <clusternode name="node1" votes="1">
>  			<fence>
>  				<method name="1">
>  					<device name="HPiLO_node2"/>
>  				</method>
>  			</fence>
>  		</clusternode>
>  
>  		<clusternode name="node2" votes="1">
>  			<fence>
>  				<method name="1">
>  					<device name="HPiLO_node1"/>
>  				</method>
>  			</fence>
>  		</clusternode>
> 
>  	<fencedevices>
>  		<fencedevice agent="fence_ilo" hostname="10.10.10.1"
>                 login="Administrator" name="HPiLO_node1"
passwd="RWE232WE"/>
>  		<fencedevice agent="fence_ilo" hostname="10.10.10.2"
>                  login="Administrator" name="HPiLO_node2"
> passwd="QWD31D4D"/>
>  	</fencedevices>
> 
> Is this correct?
> 
> And I will do what Dave suggests and let you guys know. Before that please
> advice me is my configuration on fence devices are correct.
> 
> Thanks in advance
> 
> - Hirantha
> 
> 
> -----Original Message-----
> From: Lon Hohberger [mailto:lhh at redhat.com] 
> Sent: Wednesday, November 02, 2005 2:41 AM
> To: linux clustering
> Cc: Hirantha Wijayawardena
> Subject: Re: [Linux-cluster] RHSCv4 2-node cluster hangs while
> startingfenced
> 
> On Tue, 2005-11-01 at 09:37 -0600, David Teigland wrote:
> 
> > > 		<clusternode name="node1" votes="1">
> > > 			<fence>
> > > 				<method name="1">
> > > 					<device name="HPiLO_node2"/>
> > > 				</method>
> > > 			</fence>
> > > 		</clusternode>
> > 
> > > 		<clusternode name="node2" votes="1">
> > > 			<fence>
> > > 				<method name="1">
> > > 					<device name="HPiLO_node1"/>
> > > 				</method>
> > > 			</fence>
> > > 		</clusternode>
> > 
> > > 	<fencedevices>
> > > 		<fencedevice agent="fence_ilo" hostname="10.10.10.1"
> > >                login="Administrator" name="HPiLO_node1"
> passwd="RWE232WE"/>
> > > 		<fencedevice agent="fence_ilo" hostname="10.10.10.2"
> > >                 login="Administrator" name="HPiLO_node2"
> passwd="QWD31D4D"/>
> > > 	</fencedevices>
> > 
> > I've never configured fence_ilo before, but you may want to check this.
> > You specify in node A's <fence> section how others will fence node A
> > (not how node A will fence another node).  So, shouldn't node1 list
> > HPiLO_node1 as its fence device and node2 list HPiLO_node2?
> 
> Yes, this is correct - the configuration looks backwards.
> 
> -- Lon
> 
> --
> Linux-cluster mailing list
> Linux-cluster at redhat.com
> https://www.redhat.com/mailman/listinfo/linux-cluster

-- 
Mark Hlawatschek <hlawatschek at atix.de>

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




More information about the Linux-cluster mailing list