----- Original Message ----- > From: "Ahmed Munir" <ahmedmunir...@gmail.com> > To: linux-ha@lists.linux-ha.org > Sent: Tuesday, March 19, 2013 11:03:38 AM > Subject: Re: [Linux-HA] Linux HA for Asterisk > > Thanks David, > > BTW, is there any document/material available on Internet for > configuring > it and testing the Asterisk OCF resource? > > Please advise.
I'm sure there is, but I am unfamiliar with the agent other than knowing it exists. If you don't find any help here, perhaps try the asterisk-users mailing list (subscribe here, http://www.asterisk.org/community/discuss) -- Vossel > Date: Tue, 19 Mar 2013 10:49:56 -0400 (EDT) > > From: David Vossel <dvos...@redhat.com> > > Subject: Re: [Linux-HA] Linux HA for Asterisk > > To: General Linux-HA mailing list <linux-ha@lists.linux-ha.org> > > Message-ID: > > <506620979.929845.1363704596090.javamail.r...@redhat.com> > > Content-Type: text/plain; charset=utf-8 > > > > > > > > ----- Original Message ----- > > > From: "Ahmed Munir" <ahmedmunir...@gmail.com> > > > To: linux-ha@lists.linux-ha.org > > > Sent: Monday, March 18, 2013 12:31:17 PM > > > Subject: [Linux-HA] Linux HA for Asterisk > > > > > > Hi all, > > > > > > The version for heartbeat I installed on two CentOS 5.9 boxes is > > > 3.0.3-2 > > > and it is for Asterisk fail over. As per default/standard > > > configuration if > > > I stop heartbeat service from either one machine, the virtual IP > > > automatically assign to another machine and this setup is working > > > good but > > > it only applies on the system level. Whereas I'm looking forward > > > for > > > service level i.e. if Asterisk service isn't running on serverA, > > > IP > > > address > > > automatically assign to serverB. > > > > > > Please advise to accomplish this case (service level failover) as > > > there > > > are no such OCF resources exist for Asterisk. > > > > Have you seen this? > > > > > > https://github.com/ClusterLabs/resource-agents/blob/master/heartbeat/asterisk > > > > -- Vossel > > > > > Listing down the standard configuration for Linux HA below; > > > > > > <nodes> > > > <node id="887bae58-1eb6-47d1-b539-d12a2ed3d836" > > > uname="asterisk1" > > > type="normal"/> > > > <node id="b966dfa2-5973-4dfc-96ba-b2d38319c174" > > > uname="asterisk2" > > > type="normal"/> > > > </nodes> > > > <resources> > > > <group id="group_1"> > > > <primitive class="ocf" id="IPaddr_10_3_152_103" > > > provider="heartbeat" type="IPaddr"> > > > <operations> > > > <op id="IPaddr_10_3_152_103_mon" interval="5s" > > > name="monitor" > > > timeout="5s"/> > > > </operations> > > > <instance_attributes > > > id="IPaddr_10_3_152_103_inst_attr"> > > > <attributes> > > > <nvpair id="IPaddr_10_3_152_103_attr_0" name="ip" > > > value="10.3.152.103"/> > > > </attributes> > > > </instance_attributes> > > > </primitive> > > > <primitive class="lsb" id="asterisk_2" > > > provider="heartbeat" > > > type="asterisk"> > > > <operations> > > > <op id="asterisk_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="preferred_location_group_1" score="100"> > > > <expression attribute="#uname" > > > id="preferred_location_group_1_expr" operation="eq" > > > value="asterisk1"/> > > > </rule> > > > </rsc_location> > > > </constraints> > > > </configuration> > > > > > > > > > -- > > > Regards, > > > > > > Ahmed Munir Chohan > > > _______________________________________________ > > > Linux-HA mailing list > > > Linux-HA@lists.linux-ha.org > > > http://lists.linux-ha.org/mailman/listinfo/linux-ha > > > See also: http://linux-ha.org/ReportingProblems > > > > > > > > -- > Regards, > > Ahmed Munir Chohan > _______________________________________________ > Linux-HA mailing list > Linux-HA@lists.linux-ha.org > http://lists.linux-ha.org/mailman/listinfo/linux-ha > See also: http://linux-ha.org/ReportingProblems > _______________________________________________ Linux-HA mailing list Linux-HA@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems