Re: redhat cluster running on debian 6.

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

 



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@xxxxxxxxxxx
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?"

--
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