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

Joey L mjh2000 at gmail.com
Fri Oct 14 21:05:43 UTC 2011


On Fri, Oct 14, 2011 at 4:58 PM, Joey L <mjh2000 at gmail.com> wrote:
> I am new to redhat cluster and i am having some issues.
>
> 1. I am looking for a simple cluster.conf that I can use for :
> A. failing over an ip address.
> B. failing over apache.
> C. failing over mysql
> D. failing over asterisk.
> E. failing over a nfs mount.
>
> I have created the following cluster.conf using system-config-cluster :
>
> cat /etc/cluster/cluster.conf
> <?xml version="1.0" ?>
> <cluster config_version="2" 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/>
>                <resources>
>                        <ip address="192.168.2.112" monitor_link="1"/>
>                </resources>
>        </rm>
> </cluster>
>
>
> And I am getting the following errors :
>
> /etc/cluster/cluster.conf:5: element clusternode: Relax-NG validity
> error : Invalid attribute name for element clusternode
> /etc/cluster/cluster.conf:5: element clusternode: Relax-NG validity
> error : Element clusternodes has extra content: clusternode
> /etc/cluster/cluster.conf:5: element clusternode: Relax-NG validity
> error : Type ID doesn't allow value '192.168.2.110'
> Relax-NG validity error : Element clusternode failed to validate attributes
> /etc/cluster/cluster.conf:2: element cluster: Relax-NG validity error
> : Invalid sequence in interleave
> /etc/cluster/cluster.conf:2: element cluster: Relax-NG validity error
> : Element cluster failed to validate content
> /etc/cluster/cluster.conf fails to validate
>
> Also get this message when trying to open cluster.conf with
> system-config-cluster:
>
> Because this node is not currently part of a cluster, the management
> tab for this application is not available.
>
> Can anyone give me a pointer as what to do ?
> thanks
>
I have updated my cluster.conf with the following config - can anyone
tell me if this is correct ?
thanks

cat /etc/cluster/cluster.conf
<?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>




More information about the Linux-cluster mailing list