Logs?
On Mon, Dec 15, 2008 at 05:03, Tanveer Chowdhury <[email protected]> wrote: > Hi, > I have configured the below in RHEL but it doesn't start the Virtual > IP address or even the services. > Below is the settings I took. Most probably the cib.xml file is not in > right format. > > Thanks in advance. > > # cat /etc/ha.d/ha.cf > > debugfile /var/log/ha-debug > logfile /var/log/ha-log > logfacility local0 > keepalive 1 > deadtime 5 > warntime 3 > initdead 10 > udpport 694 > bcast eth0 > auto_failback on > node clusternode1 > node clusternode2 > crm on > > > # vi /etc/ha.d/haresources > clusternode1 10.10.4.xxx httpd > > > # vi /etc/ha.d/authkeys > auth 1 > 1 crc > > # ll /etc/init.d/apache > lrwxrwxrwx 1 root root 31 Feb 1 00:20 /etc/init.d/apache -> > /usr/local/apache/bin/apachectl > # ll /etc/init.d/httpd > lrwxrwxrwx 1 root root 31 Oct 22 2008 /etc/init.d/httpd -> > /usr/local/apache/bin/apachectl > > # rpm -qa | grep heartbeat > heartbeat-pils-2.1.3-3.el5.centos > heartbeat-stonith-2.1.3-3.el5.centos > heartbeat-2.1.3-3.el5.centos > > # uname -a > Linux clusternode2 2.6.18-53.el5 #1 SMP Wed Oct 10 16:34:02 EDT 2007 > i686 i686 i386 GNU/Linux > > > # cat /etc/issue > Red Hat Enterprise Linux Server release 5.1 (Tikanga) > > This cib.xml file was auto generated after I started heartbeat service. > > # vi /var/lib/heartbeat/crm/cib.xml > > <cib generated="true" admin_epoch="0" epoch="1" num_updates="1" > have_quorum="true" ignore_dtd="false" ccm_transition="1" num_peers="1" > cib_feature_revision="2.0" cib-last-written="Fri Dec 15 00:15:48 > 2008"> > <configuration> > <crm_config> > <cluster_property_set id="cib-bootstrap-options"> > <attributes> > <nvpair id="cib-bootstrap-options-dc-version" > name="dc-version" value="2.1.3-node: > 552305612591183b1628baa5bc6e903e0f1e26a3"/> > </attributes> > </cluster_property_set> > </crm_config> > <nodes> > <node id="d354acf4-568d-4583-9fe9-72eabb2835b1" > uname="clusternode2" type="normal"/> > </nodes> > <resources/> > <constraints/> > </configuration> > </cib> > > Then I added these lines with it as follows > <resources> > <group id="apache_group"> > <primitive id="ip_resource_1" class="ocf" type="IPaddr" > provider="heartbeat"> > <instance_attributes> > <attributes> > <nvpair name="ip" value="10.10.4.xxx"/> > </attributes> > </instance_attributes> > </primitive> > <primitive id="apache" class="heartbeat" type="apache"/> > </group> > > So it became like > <cib generated="true" admin_epoch="0" epoch="1" num_updates="1" > have_quorum="true" ignore_dtd="false" ccm_transition="1" num_peers="1" > cib_feature_revision="2.0" cib-last-written="Fri Dec 15 00:15:48 > 2008"> > <configuration> > <crm_config> > <cluster_property_set id="cib-bootstrap-options"> > <attributes> > <nvpair id="cib-bootstrap-options-dc-version" > name="dc-version" value="2.1.3-node: > 552305612591183b1628baa5bc6e903e0f1e26a3"/> > </attributes> > </cluster_property_set> > </crm_config> > <nodes> > <node id="d354acf4-568d-4583-9fe9-72eabb2835b1" > uname="clusternode2" type="normal"/> > </nodes> > <resources> > <group id="apache_group"> > <primitive id="ip_resource_1" class="ocf" type="IPaddr" > provider="heartbeat"> > <instance_attributes> > <attributes> > <nvpair name="ip" value="10.10.4.xxx"/> > </attributes> > </instance_attributes> > </primitive> > <primitive id="apache" class="heartbeat" type="apache"/> > </group> > <resources/> > <constraints/> > </configuration> > </cib> > _______________________________________________________ > Linux-HA-Dev: [email protected] > http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev > Home Page: http://linux-ha.org/ > _______________________________________________________ Linux-HA-Dev: [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
