Package Apache and Mysql Problem

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

 



Hi,

i have a little big problem with RH Cluster Suite.

I have 2 cluster nodes with 1 partition to share between the 2 node. There is no SAN.
The node have the same hardware and the same partition.
I have 1 partition with drbd to sycronize the 2 nodes Primary/Primary.

I try in a lot type of configuration of Apache and Mysql package but i have the same problem.
The error is:
Jul  1 18:50:39 nodo1 luci[2581]: Unable to retrieve batch 1072342062 status from nodo2.local:11111: clusvcadm start failed to start Httpd:

nodo1 and nodo2 is the 2 nodes and httpd is the apache service.

Any idea???

I try the configuration in this procedure: http://kbase.redhat.com/faq/docs/DOC-5648 for Mysql but the result is the same.

In attach my cluster.conf and drbd.conf

If we need more tell me please.

Thanks a lot

Andrea Giussani


AVVERTENZE AI SENSI DEL D.LGS. 196/2003    . 

Il contenuto di questo messaggio (ed eventuali allegati) e' strettamente confidenziale. L'utilizzo del contenuto del messaggio e' riservato esclusivamente al destinatario. La modifica, distribuzione, copia del messaggio da parte di altri e' severamente proibita. Se non siete i destinatari Vi invitiamo ad informare il mittente ed eliminare tutte le copie del suddetto messaggio     .               

The content of this message (and attachment) is closely confidentiality. Use of the content of the message is classified exclusively to the addressee. The modification, distribution, copy of the message from others are forbidden. If you are not the addressees, we invite You to inform the sender and to eliminate all the copies of the message.

?xml version="1.0"?>
<cluster alias="CentOS_Test" config_version="31" name="CentOS_Test">
	<fence_daemon clean_start="0" post_fail_delay="0" post_join_delay="3"/>
	<clusternodes>
		<clusternode name="nodo2.local" nodeid="1" votes="1">
			<fence/>
		</clusternode>
		<clusternode name="nodo1.local" nodeid="2" votes="1">
			<fence/>
		</clusternode>
	</clusternodes>
	<cman expected_votes="1" two_node="1"/>
	<fencedevices/>
	<rm>
		<failoverdomains>
			<failoverdomain name="Apache" nofailback="1" ordered="1" restricted="1">
				<failoverdomainnode name="nodo2.local" priority="1"/>
				<failoverdomainnode name="nodo1.local" priority="1"/>
			</failoverdomain>
		</failoverdomains>
		<resources>
			<ip address="172.22.1.233" monitor_link="1"/>
			<mysql config_file="/etc/my.cnf" listen_address="10.10.10.1, 10.10.10.2" name="mysql" shutdown_wait="0"/>
			<apache config_file="conf/httpd.conf" name="Apache" server_root="/etc/httpd" shutdown_wait="0"/>
			<clusterfs device="/dev/mapper/VG_Gfs-LV_Gfs_httpd" force_unmount="1" fsid="51171" fstype="gfs2" mountpoint="/gfs/httpd" name="gfs_res" self_fence="0"/>
		</resources>
		<service autostart="1" exclusive="1" name="Cluster" recovery="relocate">
			<ip ref="172.22.1.233"/>
		</service>
		<service autostart="1" domain="Apache" exclusive="1" name="httpd" recovery="relocate">
			<clusterfs fstype="gfs" ref="gfs_res"/>
			<ip ref="172.22.1.233">
				<apache ref="Apache"/>
			</ip>
		</service>
		<service autostart="1" domain="Apache" exclusive="1" name="Httpd" recovery="relocate">
			<ip address="10.10.10.3" monitor_link="1">
				<script file="/etc/rc.d/init.d/httpd" name="apache"/>
				<clusterfs device="/dev/mapper/VG_Gfs-LV_Gfs_httpd" force_unmount="1" fsid="57441" fstype="gfs2" mountpoint="/gfs/httpd" name="httpd" self_fence="0"/>
			</ip>
		</service>
		<service autostart="1" exclusive="1" name="gfs_testt" recovery="relocate">
			<clusterfs fstype="gfs" ref="gfs_res"/>
		</service>
	</rm>
</cluster>
#
# please have a a look at the example configuration file in
# /usr/share/doc/drbd82/drbd.conf
#
# DRBD8 HA /etc/drbd.conf configuration file
resource gfs_res {
  protocol C;				# protocol between devices
  startup {
    wfc-timeout 120; 			# wait 2min for other peers
    degr-wfc-timeout 120; 		# wait 2min if peer was already 
    					# down before this node was rebooted
    become-primary-on both;
  }
  net {
    allow-two-primaries;
    cram-hmac-alg "sha1";		# algo to enable peer authentication
    shared-secret "123456";
    
    # handle split-brain situations
    after-sb-0pri discard-least-changes;# if no primary auto sync from the 
    					# node that touched more blocks during
                         		# the split brain situation.
    after-sb-1pri discard-secondary;	# if one primary
    after-sb-2pri disconnect;		# if two primaries
    
    # solve the cases when the outcome
    # of the resync decision is incompatible
    # with the current role assignment in
    # the cluster
    rr-conflict disconnect;		# no automatic resynchronization
    					# simply disconnect
  }
  disk {
    on-io-error detach;			# detach the device from its
    					# backing storage if the driver of 
					# the lower_device reports an error 
					# to DRBD
  }
  syncer {
    rate 100M;
  }
  
  on nodo1 {
    device    /dev/drbd1;
    disk      /dev/sdb1, /dev/sdb2;
    address   10.10.10.1:7789;
    meta-disk internal;
  }
  
  on nodo2 {
    device    /dev/drbd1;
    disk      /dev/sdb1; /dev/sdb2;
    address   10.10.10.2:7789;
    meta-disk internal;
  }
}
--
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