On 10/01/2015 11:04 AM, H Yavari wrote: > Hi, > I'm newbie so sorry for this questions.But I can't find any usuful doc. > I added ocf resource agent of asterisk to my heartbeat lib. I used this > command to add a resource :pcs resource create pbx ocf:heartbeat:asterisk > params user="root" group="root" maxfiles="65536" op start interval="1" > timeout="30s" op monitor interval="5s" timeout="30s" > > but when I run "pcs status", I received "FAILED (unmanaged)" and " > pbx_start_0 on ha-1 'unknown error' (1): call=12, status=Timed Out, > exitreason='none', > last-rc-change='Thu Oct 1 23:40:53 2015', queued=0ms, exec=20003ms" > errors. > So what is problem?
I'd take the asterisk resource out of the cluster first, and make sure it can be started manually with no errors. If so, I'd next try calling the resource agent directly to see what error it reports. I haven't used the asterisk resource agent so I can't be much more specific than that. FYI, some issues to consider when running asterisk HA: * The easiest setup is pure SIP. If you have a physical line (T1, ISDN, whatever), that complicates the situation significantly. * It's best to have two SIP providers so that you don't have a single point of failure there. FreePBX (based on asterisk) has some nice features to simplify this. * You need shared/replicated storage for asterisk's files (voice mails, etc.). * In the past, I've run FreePBX inside a VM, and made the VM the HA resource instead of asterisk directly. That can simplify the HA setup. VMs have more startup time, but there's the possible benefit of live migration. I expect using a Docker container would be another good alternative. > (I configured IPaddr2 too and It's work.) > > Thanks for reply. > > > From: H Yavari <[email protected]> > > > > > Hi, > I want to add Asterisk pbx as a rsource to pacemaker/corosync. I'm using that > latest version (version 1.1.13-a14efad). I searched but I could find only old > version configuration.Can you give me some hints for configs?Thanks. > Regards. _______________________________________________ Users mailing list: [email protected] http://clusterlabs.org/mailman/listinfo/users Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://bugs.clusterlabs.org
