Hi,

On Fri, Sep 28, 2007 at 11:48:33AM +0500, [EMAIL PROTECTED] wrote:
> > Hi,
> >
> > On Thu, Sep 27, 2007 at 03:19:03PM +0500, [EMAIL PROTECTED]
> > wrote:
> >> Hi all,
> >>
> >> I am a newbie in heartbeat. My heartbeat and OS are :
> >> Heartbeat-2.1.2 , Debian etch
> >>
> >> I have generated 'cib.xml' file from the 'haresources' file have the
> >> content
> >> __________________________________________________________
> >> hacluster 10.1.1.199 mon apache2 drbdlinks postgresql-8.1
> >> __________________________________________________________
> >>
> >>
> >> my ha.cf looks like as
> >> _______________________________________________
> >> logfacility daemon         # Log to syslog as facility "daemon"
> >> logfile /var/log/ha-log
> >> node HA-Linux iksws115            # List our cluster members
> >> keepalive 1                # Send one heartbeat each second
> >> deadtime 10                # Declare nodes dead after 10 seconds
> >> bcast eth1            # Broadcast heartbeats on eth0 and eth1 interfaces
> >> ping 10.1.1.101             # Ping our router to monitor ethernet
> >> connectivity
> >> auto_failback no           # Don't fail back to paul automatically
> >> compression     bz2
> >> compression_threshold 2
> >> crm yes
> >> ____________________________________________
> >>
> >>
> >>
> >> when I start heartbeat with no error it starts
> >>
> >> but when I run "crm_mon -i5" I see the following output
> >>
> >> ________________________________________________________________
> >> Refresh in 2s...
> >>
> >> ============
> >> Last updated: Thu Sep 27 06:15:49 2007
> >> Current DC: ha-linux (55896269-c4a5-4992-abdf-19fb0bc16b36)
> >> 2 Nodes configured.
> >> 1 Resources configured.
> >> ============
> >>
> >>
> >> Node: ha-linux (55896269-c4a5-4992-abdf-19fb0bc16b36): online
> >> Node: iksws115 (34097616-7ef8-4b9e-b8ee-8451d9942f88): online
> >>
> >> Resource Group: group_1
> >>     IPaddr_10_1_1_199   (heartbeat::ocf:IPaddr):        Started ha-linux
> >>     mon_2       (heartbeat:mon):        Started ha-linux FAILED
> >>     apache2_3   (heartbeat:apache2):    Started ha-linux FAILED
> >>     drbdlinks_4 (heartbeat:drbdlinks):  Started ha-linux
> >>     postgresql-8.1_5    (heartbeat:postgresql-8.1):     Started ha-linux
> >> FAILED
> >>
> >> Failed actions:
> >>     mon_2_monitor_120000 (node=ha-linux, call=39, rc=7): complete
> >>     apache2_3_monitor_120000 (node=ha-linux, call=41, rc=7): complete
> >>     postgresql-8.1_5_monitor_120000 (node=ha-linux, call=45, rc=7):
> >> complete
> >
> > Do you have these three resource agents? You didn't attach your
> > cib.xml, but those are probably in LSB, i.e. in /etc/init.d.
> > What is mon for? Do you really need that? Otherwise, before we
> > get into ifs and whys those LSB scripts don't work properly, you
> > should use the Heartbeat supplied OCF agents apache and
> > pgsql. See also http://linux-ha.org on how to configure resource
> > agents in the CIB.
> >
> > Thanks,
> >
> > Dejan
> >
> >> _____________________________________________________________________________
> >>
> >> My log file don't gives me any error, but the above output shows error
> and failed
> >> action , I could not figure out it. What I am missing in above
> >> configuration .
> >> Please help
> >>
> >> Regard
> >> Ali Muhammad
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >> --
> >> This message has been scanned for viruses and
> >> dangerous content by MailScanner, and is
> >> believed to be clean.
> >>
> >> _______________________________________________
> >> Linux-HA mailing list
> >> [email protected]
> >> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> >> See also: http://linux-ha.org/ReportingProblems
> > _______________________________________________
> > Linux-HA mailing list
> > [email protected]
> > http://lists.linux-ha.org/mailman/listinfo/linux-ha
> > See also: http://linux-ha.org/ReportingProblems
> >
> > --
> > This message has been scanned for viruses and
> > dangerous content by MailScanner, and is
> > believed to be clean.
> >
> >
> 
> 
> Hi Dejan,
> Thanks for quick reply and sorry for my bad english.

That's no problem.

> Actually I am newbie to heartbeat
> I am attaching my cib.xml file
> who do you mean by resource agent?? If RA means start/stop scripts then
> Should I place them in /etc/ha.d/resource.d/ ... , If yes then I have made
> soft links for each script as
> 
> ln -s /etc/init.d/postgresql-8.1 /etc/ha.d/resource.d/postgresql-8.1
> for each resources.

That just won't do. There are three different classes of resource
agents and they follow different standards. You can't expect a
resource agent of one class to behave properly in another.

> "mon" is the package for monitoring services/resouce
> 
> for more detail about "mon" visit
> http://www.geocities.com/latompa/ha/apache_heartbeat.html
> I need it.
> 
> The heartbeat supplied OCF (what are OCF??) ,From where should I get these
> 
> Please give me a detail description about this problem, I am totally stuck
> here from 2 days , I will be very thankful to you.

I'm afraid that you'll have to first read some documentation.
Perhaps you can start at
http://linux-ha.org/LearningAboutHeartbeat and
http://linux-ha.org/HeartbeatTutorials.

Thanks,

Dejan

> Regards
> Ali Muhammad
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> -- 
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
> 

>  <cib admin_epoch="0" generated="false" have_quorum="true" ignore_dtd="false" 
> num_peers="0" cib_feature_revision="1.3" epoch="1" num_updates="1" 
> cib-last-written="Fri Sep 28 08:00:36 2007" ccm_transition="1">
>    <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="0"/>
>            <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="15s"/>
>            <nvpair id="cib-bootstrap-options-is-managed-default" 
> name="is-managed-default" value="true"/>
>          </attributes>
>        </cluster_property_set>
>      </crm_config>
>      <nodes>
>        <node id="55896269-c4a5-4992-abdf-19fb0bc16b36" uname="ha-linux" 
> type="normal"/>
>        <node id="34097616-7ef8-4b9e-b8ee-8451d9942f88" uname="iksws115" 
> type="normal"/>
>      </nodes>
>      <resources>
>        <group id="group_1">
>          <primitive class="ocf" id="IPaddr_10_1_1_199" provider="heartbeat" 
> type="IPaddr">
>            <operations>
>              <op id="IPaddr_10_1_1_199_mon" interval="5s" name="monitor" 
> timeout="5s"/>
>            </operations>
>            <instance_attributes id="IPaddr_10_1_1_199_inst_attr">
>              <attributes>
>                <nvpair id="IPaddr_10_1_1_199_attr_0" name="ip" 
> value="10.1.1.199"/>
>              </attributes>
>            </instance_attributes>
>          </primitive>
>          <primitive class="heartbeat" id="mon_2" provider="heartbeat" 
> type="mon">
>            <operations>
>              <op id="mon_2_mon" interval="120s" name="monitor" timeout="60s"/>
>            </operations>
>          </primitive>
>          <primitive class="heartbeat" id="apache2_3" provider="heartbeat" 
> type="apache2">
>            <operations>
>              <op id="apache2_3_mon" interval="120s" name="monitor" 
> timeout="60s"/>
>            </operations>
>          </primitive>
>          <primitive class="heartbeat" id="drbdlinks_4" provider="heartbeat" 
> type="drbdlinks">
>            <operations>
>              <op id="drbdlinks_4_mon" interval="120s" name="monitor" 
> timeout="60s"/>
>            </operations>
>          </primitive>
>          <primitive class="heartbeat" id="postgresql-8.1_5" 
> provider="heartbeat" type="postgresql-8.1">
>            <operations>
>              <op id="postgresql-8.1_5_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="hacluster"/>
>          </rule>
>        </rsc_location>
>      </constraints>
>    </configuration>
>  </cib>
> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to