[Linux-cluster] Help with a two node cluster for a web server needed

Holger L. Ratzel holger.ratzel at she.net
Mon Jan 14 17:30:16 UTC 2008


Hi,

I've now tried to get a working cluster config for quite a while. But I didn't 
succeed :-( Now I'm hoping that someone on this list can help me. Perhaps 
with a correct 'cluster.conf'...

The cluster consists of two nodes running the lates RHEL5.1. They are using 
RPS-10 power switches which are attached to /dev/ttyS0. The Apache should 
allways run the node with the connection to the rest of the network. So I've 
configured the qdiskd to use a 'ping' heuristic. But every time I tried to 
simulate a network partition by pulling the network cable from the server 
running Apache (testcluster-1), it ended with both nodes fencing each 
other :-( I've then tried to modify the timeout parameters slightly, but with 
no success...

You can finde my lates 'cluster.conf' attached to this mail. I've also 
attached a part form '/var/log/messages' for both nodes, showing what happend 
during my last test.

So, how should a correct 'cluster.conf' look like?

Many thanks and best regards,

	Holger

-- 
----------------- SHE - IT-Sicherheit von Experten ------------------
SHE Informationstechnologie AG
Holger L. Ratzel                               Fon:+49 621 5200 - 210 
Service Delivery & Support                     Fax:+49 621 5200 - 555
Donnersbergweg 3                                holger.ratzel at she.net
D-67059 Ludwigshafen                              http://www.she.net/
Sitz der Gesellschaft und Registergericht Ludwigshafen HRB 4593
Aufsichtsratsvorsitzender: Ulrich Engelhardt
Vorstand: Klaus Schulz
----- I haven't lost my mind; it's backed up on tape somewhere! -----

PGP-Fingerprint:
9A 73 40 22 72 64 BE D1  D8 1A 54 3C 5B 64 AF C3  CC E3 CA A8
Get my PGP public key at: http://pgp.she.net/
-------------- next part --------------
<?xml version="1.0"?>
<cluster alias="Test" config_version="25" name="Test">
	<quorumd interval="1" label="Qdisk1" tko="5" votes="1">
		<heuristic interval="1" program="ping 10.200.10.1 -c1 -t1" score="1" tko="3"/>
	</quorumd>
	<fence_daemon post_fail_delay="0" post_join_delay="3"/>
	<clusternodes>
		<clusternode name="testcluster-2" nodeid="2" votes="1">
			<fence>
				<method name="1">
					<device name="RPS"/>
				</method>
			</fence>
			<multicast addr="224.0.0.10" interface="eth0"/>
		</clusternode>
		<clusternode name="testcluster-1" nodeid="1" votes="1">
			<fence>
				<method name="1">
					<device name="RPS"/>
				</method>
			</fence>
			<multicast addr="224.0.0.10" interface="eth0"/>
		</clusternode>
	</clusternodes>
	<cman expected_votes="3" two_node="0">
		<multicast addr="224.0.0.10"/>
	</cman>
	<fencedevices>
		<fencedevice agent="fence_rps10" device="/dev/ttyS0" name="RPS" option="reboot" port="0"/>
	</fencedevices>
	<rm>
		<failoverdomains>
			<failoverdomain name="Apache" ordered="1" restricted="1">
				<failoverdomainnode name="testcluster-1" priority="1"/>
				<failoverdomainnode name="testcluster-2" priority="2"/>
			</failoverdomain>
		</failoverdomains>
		<resources>
			<ip address="10.200.10.189" monitor_link="1"/>
			<script file="/etc/init.d/httpd" name="Apache"/>
			<fs device="/dev/sdb1" force_fsck="0" force_unmount="1" fsid="26076" fstype="ext3" mountpoint="/data/httpd" name="DISK_Apache" options="" self_fence="0"/>
		</resources>
		<service autostart="1" domain="Apache" name="HTTPD">
			<ip ref="10.200.10.189"/>
			<script ref="Apache"/>
			<fs ref="DISK_Apache"/>
		</service>
	</rm>
</cluster>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: node1.log
Type: text/x-log
Size: 46425 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/linux-cluster/attachments/20080114/a5d43f69/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: node2.log
Type: text/x-log
Size: 45577 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/linux-cluster/attachments/20080114/a5d43f69/attachment-0001.bin>


More information about the Linux-cluster mailing list