[Linux-cluster] redhat cluster running on debian 6.

Digimer linux at alteeve.com
Fri Oct 14 21:12:46 UTC 2011


On 10/14/2011 05:05 PM, Joey L wrote:
> <?xml version="1.0" ?>
> <cluster config_version="5" name="picky_cluster">
> 	<fence_daemon post_fail_delay="0" post_join_delay="3"/>
> 	<clusternodes>
> 		<clusternode name="192.168.2.110" nodeid="1" votes="1">
> 			<fence/>
> 		</clusternode>
> 		<clusternode name="192.168.2.111" nodeid="2" votes="1">
> 			<fence/>
> 		</clusternode>
> 	</clusternodes>
> 	<cman expected_votes="1" two_node="1"/>
> 	<fencedevices/>
> 	<rm>
> 		<failoverdomains>
> 			<failoverdomain name="fail1" ordered="0" restricted="0">
> 				<failoverdomainnode name="192.168.2.110" priority="1"/>
> 				<failoverdomainnode name="192.168.2.111" priority="1"/>
> 			</failoverdomain>
> 		</failoverdomains>
> 		<resources>
> 			<ip address="192.168.2.112" monitor_link="1"/>
> 			<apache config_file="/etc/apache2/apache2.conf" httpd_options=""
> name="debby" server_root="/var/www/html" shutdown_wait=""/>
> 		</resources>
> 		<service autostart="1" domain="fail1" name="web">
> 			<apache config_file="/etc/apache2/apache2.conf" httpd_options=""
> name="deb1" server_root="/var/www/html" shutdown_wait=""/>
> 			<apache config_file="/etc/apache2/apache2.conf" httpd_options=""
> name="deb2" server_root="/var/www/html" shutdown_wait=""/>
> 			<ip ref="192.168.2.112"/>
> 			<apache ref="debby"/>
> 		</service>
> 	</rm>
> </cluster>

I don't use apache, so I can't speak to that resource agent's config. I 
can say though that overall it looks okay with two exceptions.

You *must* configure fencing for the cluster to work properly. Even 
without shared storage, a node failure will trigger a fence call which, 
because it can't succeed, will leave your cluster hung hard.

Change the cluster names to the output of `uname -n` (should be the FQDN).

-- 
Digimer
E-Mail:              digimer at alteeve.com
Freenode handle:     digimer
Papers and Projects: http://alteeve.com
Node Assassin:       http://nodeassassin.org
"At what point did we forget that the Space Shuttle was, essentially,
a program that strapped human beings to an explosion and tried to stab
through the sky with fire and math?"




More information about the Linux-cluster mailing list