Am Dienstag, 22. Dezember 2009 11:42:50 schrieb Chandrakant Solanki: > Hello > > I am newbie to HA. I am using CentOS 5.2 > > I have installed *heartbeat-2.0.8.tar.gz*
Do NOT use that old and buggy version any more. See: www.clusterlabs.org > *# ./ConfigureMe configure --prefix=/usr --sysconfdir=/etc > --localstatedir=/var > # make > # make install > # useradd hacluster > * > Entry in */etc/hosts* > node1 172.18.100.72 > node2 172.18.100.66 > > And *VirtualIP : 172.18.100.99* > > My */etc/ha.d/ha.cf* file looks below... on both *node1* and *node2* > > use_logd on > keepalive 500ms > deadtime 2 > warntime 1 > initdead 8 > udpport 694 > bcast eth0 > auto_failback on > node node1 > node node2 > crm yes > autojoin any > > > my */var/lib/heartbeat/crm/cib.xml* looks like > > <cib admin_epoch="0" have_quorum="true" ignore_dtd="false" num_peers="2" > cib_feature_revision="1.3" ccm_transition="2" generated="true" > dc_uuid="06be9282-ee71-4c7a-b6fd-16776b6a3623" epoch="16" num_updates="234" > cib-last-written="Tue Dec 22 15:39:00 2009"> > <configuration> > <crm_config> > <cluster_property_set id="cib-bootstrap-options"> > <attributes> > <nvpair id="cib-bootstrap-options-symmetric-cluster" > name="symmetric-cluster" value="true"/> > <nvpair id="cib-bootstrap-options-no_quorum-policy" > name="no_quorum-policy" value="stop"/> > <nvpair id="cib-bootstrap-options-default-resource-stickiness" > name="default-resource-stickiness" value="0"/> > <nvpair > id="cib-bootstrap-options-default-resource-failure-stickiness" > name="default-resource-failure-stickiness" value="INFINITY"/> > <nvpair id="cib-bootstrap-options-stonith-enabled" > name="stonith-enabled" value="false"/> > <nvpair id="cib-bootstrap-options-stonith-action" > name="stonith-action" value="reboot"/> > <nvpair id="cib-bootstrap-options-stop-orphan-resources" > name="stop-orphan-resources" value="true"/> > <nvpair id="cib-bootstrap-options-stop-orphan-actions" > name="stop-orphan-actions" value="true"/> > <nvpair id="cib-bootstrap-options-remove-after-stop" > name="remove-after-stop" value="false"/> > <nvpair id="cib-bootstrap-options-short-resource-names" > name="short-resource-names" value="true"/> > <nvpair id="cib-bootstrap-options-transition-idle-timeout" > name="transition-idle-timeout" value="5min"/> > <nvpair id="cib-bootstrap-options-default-action-timeout" > name="default-action-timeout" value="5s"/> > <nvpair id="cib-bootstrap-options-is-managed-default" > name="is-managed-default" value="true"/> > </attributes> > </cluster_property_set> > </crm_config> > <nodes> > <node id="06be9282-ee71-4c7a-b6fd-16776b6a3623" uname="sabseserver2" > type="normal"/> > <node uname="node1" type="normal" > id="6d29fe13-3c58-4d42-bf0c-805af4f561ac"> > <instance_attributes > id="nodes-6d29fe13-3c58-4d42-bf0c-805af4f561ac"> > <attributes> > <nvpair name="standby" > id="standby-6d29fe13-3c58-4d42-bf0c-805af4f561ac" value="false"/> > </attributes> > </instance_attributes> > </node> > </nodes> > <resources> > <group id="group_1"> > <primitive class="ocf" id="IPaddr_172_18_100_99" > provider="heartbeat" type="IPaddr"> > <operations> > <op id="IPaddr_172_18_100_99_mon" interval="5s" name="monitor" > timeout="5s"/> > </operations> > <instance_attributes id="IPaddr_172_18_100_99_inst_attr"> > <attributes> > <nvpair id="IPaddr_172_18_100_99_attr_0" name="ip" > value="172.18.100.99"/> > </attributes> > </instance_attributes> > </primitive> > <primitive class="lsb" id="httpd_2" provider="heartbeat" > type="httpd"> > <operations> > <op id="httpd_2_mon" interval="120s" name="monitor" > timeout="60s"/> > </operations> > </primitive> > </group> > </resources> > <constraints> > <rsc_location id="rsc_location_group_1" rsc="group_1"> > <rule id="prefered_location_group_1" score="100"> > <expression attribute="#uname" > id="prefered_location_group_1_expr" operation="eq" value="node1"/> > </rule> > </rsc_location> > </constraints> > </configuration> > </cib> > > > *Problem :* > > 1] When I stopped my httpd service manually then it can't start on > *node2*or *vica versa* Your primitive has no monitor operation defined. How should the cluster recognize that the httpd is not running any more? -- Dr. Michael Schwartzkopff MultiNET Services GmbH Addresse: Bretonischer Ring 7; 85630 Grasbrunn; Germany Tel: +49 - 89 - 45 69 11 0 Fax: +49 - 89 - 45 69 11 21 mob: +49 - 174 - 343 28 75 mail: [email protected] web: www.multinet.de Sitz der Gesellschaft: 85630 Grasbrunn Registergericht: Amtsgericht München HRB 114375 Geschäftsführer: Günter Jurgeneit, Hubert Martens --- PGP Fingerprint: F919 3919 FF12 ED5A 2801 DEA6 AA77 57A4 EDD8 979B Skype: misch42 _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
