Hello all,
Just wondering if anyone know any tutorial on setting up HA+DRBD solution for kamailio.
Especially creating partitions, DRBD devices and mount points.
Thanks in advance,
-Sid
"May the light be with you." ______________________________________________ Siddhardha Garige www.luminepixels.com
Siddhardha Garige writes:
Just wondering if anyone know any tutorial on setting up HA+DRBD solution for kamailio.
Especially creating partitions, DRBD devices and mount points.
there is nothing special about those. follow a mysql tutorial.
-- juha
On 03/24/2009 07:18 AM, Juha Heinanen wrote:
Siddhardha Garige writes:
Just wondering if anyone know any tutorial on setting up HA+DRBD solution for kamailio.
Especially creating partitions, DRBD devices and mount points.
there is nothing special about those. follow a mysql tutorial.
AFAIK, DRBD does harddrive mirroring over network. I wonder if this has impact when you run mysql on each server -- probably does not work...
Thanks, Daniel
Hello,
On 03/24/2009 07:18 AM, Juha Heinanen wrote:
Siddhardha Garige writes:
Just wondering if anyone know any tutorial on setting up HA+DRBD solution for kamailio.
Especially creating partitions, DRBD devices and mount points.
there is nothing special about those. follow a mysql tutorial.
AFAIK, DRBD does harddrive mirroring over network. I wonder if this has impact when you run mysql on each server -- probably does not work...
I know mysql works ok with HA+DRBD. We have that setup for a none Kamailio application and works ok.
Regards.
Saludos JesusR.
------------------------------------ Jesus Rodriguez VozTelecom Sistemas, S.L. jesusr@voztele.com http://www.voztele.com Tel. 902360305 -------------------------------------
On 03/27/2009 03:24 PM, Jesus Rodriguez wrote:
Hello,
On 03/24/2009 07:18 AM, Juha Heinanen wrote:
Siddhardha Garige writes:
Just wondering if anyone know any tutorial on setting up HA+DRBD solution for kamailio.
Especially creating partitions, DRBD devices and mount points.
there is nothing special about those. follow a mysql tutorial.
AFAIK, DRBD does harddrive mirroring over network. I wonder if this has impact when you run mysql on each server -- probably does not work...
I know mysql works ok with HA+DRBD. We have that setup for a none Kamailio application and works ok.
are the mysql servers running at same time or backup instance is started by HA when becoming active?
Thanks, Daniel
Hi Daniel,
On 03/27/2009 03:24 PM, Jesus Rodriguez wrote:
Hello,
On 03/24/2009 07:18 AM, Juha Heinanen wrote:
Siddhardha Garige writes:
Just wondering if anyone know any tutorial on setting up HA+DRBD solution for kamailio.
Especially creating partitions, DRBD devices and mount points.
there is nothing special about those. follow a mysql tutorial.
AFAIK, DRBD does harddrive mirroring over network. I wonder if this has impact when you run mysql on each server -- probably does not work...
I know mysql works ok with HA+DRBD. We have that setup for a none Kamailio application and works ok.
are the mysql servers running at same time or backup instance is started by HA when becoming active?
Backup instance is started by HA when becoming active. Services are started only in the active node.
Saludos JesusR.
------------------------------------ Jesus Rodriguez VozTelecom Sistemas, S.L. jesusr@voztele.com http://www.voztele.com Tel. 902360305 -------------------------------------
2009/3/27 Daniel-Constantin Mierla miconda@gmail.com:
I know mysql works ok with HA+DRBD. We have that setup for a none Kamailio application and works ok.
are the mysql servers running at same time or backup instance is started by HA when becoming active?
HA manages services by running each one just in a node. This is, is node A fails, HA in node B detects it, gets the service IP (IP alias), gets the DRBD (sets it in active mode), mounts the filesystem in this DRBD partition, and starts the services (MySQL and so).
Hello to all. Every time I do an ENUM call, this error appears... but the call is placed anyway:
[16783]: LOG: route 1 sip:351210329169@"MY_IP"/<null> [16783]: LOG: ENUM: E164.org query EXISTS :) [16783]: ERROR:rr:w_record_route: Double attempt to record-route [16788]: ACC: transaction answered: timestamp=1238173021;method=INVITE; .....
Here is my route[1] code:
route[1] { xlog("LOG: route 1 $ru/$du\n"); if (check_route_param("nat=yes")) { setbflag(6); } if (isflagset(5) || isbflagset(6)) { route(5); }
#ENUM area if (!lookup("location")) {
if (is_method("INVITE")) {
if ( method=="INVITE" && ( uri=~"sip:[1-9][0-9]*@MY_IP" )) {
prefix("+"); if(!enum_query("e164.org.")) { log(1, "LOG: ENUM: E164.org query falhou!!! :( \n"); strip(1); }else{ log(1, "LOG: ENUM: E164.org query EXISTS :) \n");
if (!method=="REGISTER") record_route(); t_relay(); return; }
} } }
if (is_method("INVITE")) { xlog("LOG ---> T_ON_REPLY - $rc/$mF\n"); t_on_reply("1"); t_on_failure("1"); }
if (!t_relay()) { xlog("LOG ---> T_RELAY - $rc/$mF\n"); sl_reply_error(); } exit; } # end of route 1
What could be wrong with the configuration? Thanks Regards Joao Pereira
Hello,
the error says that you call two times in your config record_route() function. Check your config routing logic and see the cases when record_route() is executed.
Cheers, Daniel
On 03/27/2009 07:05 PM, Joao Gomes Pereira wrote:
Hello to all. Every time I do an ENUM call, this error appears... but the call is placed anyway:
[16783]: LOG: route 1 sip:351210329169@"MY_IP"/<null> [16783]: LOG: ENUM: E164.org query EXISTS :) [16783]: ERROR:rr:w_record_route: Double attempt to record-route [16788]: ACC: transaction answered: timestamp=1238173021;method=INVITE; .....
Here is my route[1] code:
route[1] { xlog("LOG: route 1 $ru/$du\n"); if (check_route_param("nat=yes")) { setbflag(6); } if (isflagset(5) || isbflagset(6)) { route(5); }
#ENUM area if (!lookup("location")) {
if (is_method("INVITE")) { if ( method=="INVITE" && ( uri=~"sip:[1-9][0-9]*@MY_IP" )) { prefix("+"); if(!enum_query("e164.org.")) { log(1, "LOG: ENUM: E164.org query falhou!!! :( \n"); strip(1); }else{ log(1, "LOG: ENUM: E164.org query EXISTS :) \n"); if (!method=="REGISTER") record_route(); t_relay(); return; }
} } }
if (is_method("INVITE")) { xlog("LOG ---> T_ON_REPLY - $rc/$mF\n"); t_on_reply("1"); t_on_failure("1"); } if (!t_relay()) { xlog("LOG ---> T_RELAY - $rc/$mF\n"); sl_reply_error(); } exit;
} # end of route 1
What could be wrong with the configuration? Thanks Regards Joao Pereira
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Yes, I had also record_routing in the main routing:
# record routing if (!is_method("REGISTER|MESSAGE")) record_route();
I erased it and the error disappeared. isn't this going to be necessary in other situations? Thanks regards Joao Pereira
Daniel-Constantin Mierla wrote:
Hello,
the error says that you call two times in your config record_route() function. Check your config routing logic and see the cases when record_route() is executed.
Cheers, Daniel
On 03/27/2009 07:05 PM, Joao Gomes Pereira wrote:
Hello to all. Every time I do an ENUM call, this error appears... but the call is placed anyway:
[16783]: LOG: route 1 sip:351210329169@"MY_IP"/<null> [16783]: LOG: ENUM: E164.org query EXISTS :) [16783]: ERROR:rr:w_record_route: Double attempt to record-route [16788]: ACC: transaction answered: timestamp=1238173021;method=INVITE; .....
Here is my route[1] code:
route[1] { xlog("LOG: route 1 $ru/$du\n"); if (check_route_param("nat=yes")) { setbflag(6); } if (isflagset(5) || isbflagset(6)) { route(5); }
#ENUM area if (!lookup("location")) {
if (is_method("INVITE")) { if ( method=="INVITE" && ( uri=~"sip:[1-9][0-9]*@MY_IP"
)) { prefix("+"); if(!enum_query("e164.org.")) { log(1, "LOG: ENUM: E164.org query falhou!!! :( \n"); strip(1); }else{ log(1, "LOG: ENUM: E164.org query EXISTS :) \n");
if (!method=="REGISTER") record_route(); t_relay(); return; }
} } }
if (is_method("INVITE")) { xlog("LOG ---> T_ON_REPLY - $rc/$mF\n"); t_on_reply("1"); t_on_failure("1"); } if (!t_relay()) { xlog("LOG ---> T_RELAY - $rc/$mF\n"); sl_reply_error(); } exit;
} # end of route 1
What could be wrong with the configuration? Thanks Regards Joao Pereira
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
On 03/27/2009 08:10 PM, Joao Gomes Pereira wrote:
Yes, I had also record_routing in the main routing:
# record routing if (!is_method("REGISTER|MESSAGE")) record_route();
I erased it and the error disappeared. isn't this going to be necessary in other situations?
you better keep the record_route() -- check why is called two times. you have somewhere call of route(0)?
Daniel
Thanks regards Joao Pereira
Daniel-Constantin Mierla wrote:
Hello,
the error says that you call two times in your config record_route() function. Check your config routing logic and see the cases when record_route() is executed.
Cheers, Daniel
On 03/27/2009 07:05 PM, Joao Gomes Pereira wrote:
Hello to all. Every time I do an ENUM call, this error appears... but the call is placed anyway:
[16783]: LOG: route 1 sip:351210329169@"MY_IP"/<null> [16783]: LOG: ENUM: E164.org query EXISTS :) [16783]: ERROR:rr:w_record_route: Double attempt to record-route [16788]: ACC: transaction answered: timestamp=1238173021;method=INVITE; .....
Here is my route[1] code:
route[1] { xlog("LOG: route 1 $ru/$du\n"); if (check_route_param("nat=yes")) { setbflag(6); } if (isflagset(5) || isbflagset(6)) { route(5); }
#ENUM area if (!lookup("location")) {
if (is_method("INVITE")) { if ( method=="INVITE" && ( uri=~"sip:[1-9][0-9]*@MY_IP"
)) { prefix("+"); if(!enum_query("e164.org.")) { log(1, "LOG: ENUM: E164.org query falhou!!! :( \n"); strip(1); }else{ log(1, "LOG: ENUM: E164.org query EXISTS :) \n");
if (!method=="REGISTER") record_route(); t_relay(); return; }
} } }
if (is_method("INVITE")) { xlog("LOG ---> T_ON_REPLY - $rc/$mF\n"); t_on_reply("1"); t_on_failure("1"); } if (!t_relay()) { xlog("LOG ---> T_RELAY - $rc/$mF\n"); sl_reply_error(); } exit;
} # end of route 1
What could be wrong with the configuration? Thanks Regards Joao Pereira
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
No, I never call route(0) But I removed the record_route() from the ENUM zone and the error disappeared... and the calls are working fine.
if (is_method("INVITE")) { if ( method=="INVITE" && ( uri=~"sip:[1-9][0-9]*@MY_IP" )) { prefix("+"); if(!enum_query("e164.org.")) { log(1, "LOG: ENUM: E164.org query falhou!!! :( \n"); strip(1); }else{ log(1, "LOG: ENUM: E164.org query EXISTS :) \n");
# if (!method=="REGISTER") record_route(); t_relay(); return; }
Thanks regards Joao Pereira
Daniel-Constantin Mierla wrote:
On 03/27/2009 08:10 PM, Joao Gomes Pereira wrote:
Yes, I had also record_routing in the main routing:
# record routing if (!is_method("REGISTER|MESSAGE")) record_route();
I erased it and the error disappeared. isn't this going to be necessary in other situations?
you better keep the record_route() -- check why is called two times. you have somewhere call of route(0)?
Daniel
Thanks regards Joao Pereira
Daniel-Constantin Mierla wrote:
Hello,
the error says that you call two times in your config record_route() function. Check your config routing logic and see the cases when record_route() is executed.
Cheers, Daniel
On 03/27/2009 07:05 PM, Joao Gomes Pereira wrote:
Hello to all. Every time I do an ENUM call, this error appears... but the call is placed anyway:
[16783]: LOG: route 1 sip:351210329169@"MY_IP"/<null> [16783]: LOG: ENUM: E164.org query EXISTS :) [16783]: ERROR:rr:w_record_route: Double attempt to record-route [16788]: ACC: transaction answered: timestamp=1238173021;method=INVITE; .....
Here is my route[1] code:
route[1] { xlog("LOG: route 1 $ru/$du\n"); if (check_route_param("nat=yes")) { setbflag(6); } if (isflagset(5) || isbflagset(6)) { route(5); }
#ENUM area if (!lookup("location")) {
if (is_method("INVITE")) { if ( method=="INVITE" && (
uri=~"sip:[1-9][0-9]*@MY_IP" )) { prefix("+"); if(!enum_query("e164.org.")) { log(1, "LOG: ENUM: E164.org query falhou!!! :( \n"); strip(1); }else{ log(1, "LOG: ENUM: E164.org query EXISTS :) \n");
if (!method=="REGISTER") record_route(); t_relay(); return; }
} } }
if (is_method("INVITE")) { xlog("LOG ---> T_ON_REPLY - $rc/$mF\n"); t_on_reply("1"); t_on_failure("1"); } if (!t_relay()) { xlog("LOG ---> T_RELAY - $rc/$mF\n"); sl_reply_error(); } exit;
} # end of route 1
What could be wrong with the configuration? Thanks Regards Joao Pereira
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
On 03/27/2009 08:30 PM, Joao Gomes Pereira wrote:
No, I never call route(0)
ok. I understood you have record_route() only in main route. But you had it twice in config...
Cheers, Daniel
But I removed the record_route() from the ENUM zone and the error disappeared... and the calls are working fine.
if (is_method("INVITE")) { if ( method=="INVITE" && ( uri=~"sip:[1-9][0-9]*@MY_IP" )) { prefix("+"); if(!enum_query("e164.org.")) { log(1, "LOG: ENUM: E164.org query falhou!!! :( \n"); strip(1); }else{ log(1, "LOG: ENUM: E164.org query EXISTS :) \n");
# if (!method=="REGISTER") record_route(); t_relay(); return; }
Thanks regards Joao Pereira
Daniel-Constantin Mierla wrote:
On 03/27/2009 08:10 PM, Joao Gomes Pereira wrote:
Yes, I had also record_routing in the main routing:
# record routing if (!is_method("REGISTER|MESSAGE")) record_route();
I erased it and the error disappeared. isn't this going to be necessary in other situations?
you better keep the record_route() -- check why is called two times. you have somewhere call of route(0)?
Daniel
Thanks regards Joao Pereira
Daniel-Constantin Mierla wrote:
Hello,
the error says that you call two times in your config record_route() function. Check your config routing logic and see the cases when record_route() is executed.
Cheers, Daniel
On 03/27/2009 07:05 PM, Joao Gomes Pereira wrote:
Hello to all. Every time I do an ENUM call, this error appears... but the call is placed anyway:
[16783]: LOG: route 1 sip:351210329169@"MY_IP"/<null> [16783]: LOG: ENUM: E164.org query EXISTS :) [16783]: ERROR:rr:w_record_route: Double attempt to record-route [16788]: ACC: transaction answered: timestamp=1238173021;method=INVITE; .....
Here is my route[1] code:
route[1] { xlog("LOG: route 1 $ru/$du\n"); if (check_route_param("nat=yes")) { setbflag(6); } if (isflagset(5) || isbflagset(6)) { route(5); }
#ENUM area if (!lookup("location")) {
if (is_method("INVITE")) { if ( method=="INVITE" && (
uri=~"sip:[1-9][0-9]*@MY_IP" )) { prefix("+"); if(!enum_query("e164.org.")) { log(1, "LOG: ENUM: E164.org query falhou!!! :( \n"); strip(1); }else{ log(1, "LOG: ENUM: E164.org query EXISTS :) \n");
if (!method=="REGISTER") record_route(); t_relay(); return; }
} } }
if (is_method("INVITE")) { xlog("LOG ---> T_ON_REPLY - $rc/$mF\n"); t_on_reply("1"); t_on_failure("1"); } if (!t_relay()) { xlog("LOG ---> T_RELAY - $rc/$mF\n"); sl_reply_error(); } exit;
} # end of route 1
What could be wrong with the configuration? Thanks Regards Joao Pereira
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Daniel-Constantin Mierla writes:
AFAIK, DRBD does harddrive mirroring over network. I wonder if this has impact when you run mysql on each server -- probably does not work...
/var/lib/mysql gets mirrored and mounted on only one of servers. table engine should innodb.
-- juha
Dear all, i need kamailio HA+DRDA resource agent script.if anybody is having that please share.
-- View this message in context: http://sip-router.1086192.n5.nabble.com/HA-DRBD-setup-tp22576p139374.html Sent from the Users mailing list archive at Nabble.com.
Dear all, i need kamailio HA+DRBD resource agent script.if anybody is having that please share.
-- View this message in context: http://sip-router.1086192.n5.nabble.com/HA-DRBD-setup-tp22576p139375.html Sent from the Users mailing list archive at Nabble.com.
Here is a howto on kamailio/corosync/pacemaker setup:
https://blog.voipxswitch.com/2015/06/29/kamailio-high-availabilityfailover-w...
I haven't done DRBD with HA yet.
On Tue, Jul 7, 2015 at 6:12 AM, solution solution962@gmail.com wrote:
Dear all, i need kamailio HA+DRBD resource agent script.if anybody is having that please share.
-- View this message in context: http://sip-router.1086192.n5.nabble.com/HA-DRBD-setup-tp22576p139375.html Sent from the Users mailing list archive at Nabble.com.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hi, My aim is to monitor kamailio process in one server which is master and another one slave,by using corosync and pacemaker we need to handle fail over switching without using VIP.now fail over switching is working fine if i stop corosync and pacemaker in master,but while i manually killing that application fail over switching is not happening.
On Wed, Jul 8, 2015 at 7:23 AM, E. Schmidbauer [via SIP Router] < ml-node+s1086192n139400h89@n5.nabble.com> wrote:
Here is a howto on kamailio/corosync/pacemaker setup:
https://blog.voipxswitch.com/2015/06/29/kamailio-high-availabilityfailover-w...
I haven't done DRBD with HA yet.
On Tue, Jul 7, 2015 at 6:12 AM, solution <[hidden email] http:///user/SendEmail.jtp?type=node&node=139400&i=0> wrote:
Dear all, i need kamailio HA+DRBD resource agent script.if anybody is having that please share.
-- View this message in context: http://sip-router.1086192.n5.nabble.com/HA-DRBD-setup-tp22576p139375.html Sent from the Users mailing list archive at Nabble.com.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list [hidden email] http:///user/SendEmail.jtp?type=node&node=139400&i=1 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list [hidden email] http:///user/SendEmail.jtp?type=node&node=139400&i=2 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
If you reply to this email, your message will be added to the discussion below: http://sip-router.1086192.n5.nabble.com/HA-DRBD-setup-tp22576p139400.html To unsubscribe from HA+DRBD setup, click here http://sip-router.1086192.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=22576&code=c29sdXRpb245NjJAZ21haWwuY29tfDIyNTc2fC0xODA0Njc5NDcz . NAML http://sip-router.1086192.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
-- View this message in context: http://sip-router.1086192.n5.nabble.com/HA-DRBD-setup-tp22576p139401.html Sent from the Users mailing list archive at Nabble.com.
Hello,
For failover IP, why could not use keepalived ? With a script monitoring, you can switch vip from one host to another easily.
More simple than corosync etc in my opinion.
Regards. Loïc. Le 8 juil. 2015 13:49, "Fred Posner" fred@palner.com a écrit :
On 07/08/2015 12:31 AM, solution wrote:
but while i manually killing that application fail over switching is not happening.
Are there any errors?
--fred
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
we dont want to use VIP
On Wed, Jul 8, 2015 at 5:31 PM, Loic Chabert [via SIP Router] < ml-node+s1086192n139416h85@n5.nabble.com> wrote:
Hello,
For failover IP, why could not use keepalived ? With a script monitoring, you can switch vip from one host to another easily.
More simple than corosync etc in my opinion.
Regards. Loïc. Le 8 juil. 2015 13:49, "Fred Posner" <[hidden email] http:///user/SendEmail.jtp?type=node&node=139416&i=0> a écrit :
On 07/08/2015 12:31 AM, solution wrote:
but while i manually killing that application fail over switching is not happening.
Are there any errors?
--fred
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list [hidden email] http:///user/SendEmail.jtp?type=node&node=139416&i=1 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list [hidden email] http:///user/SendEmail.jtp?type=node&node=139416&i=2 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
If you reply to this email, your message will be added to the discussion below: http://sip-router.1086192.n5.nabble.com/HA-DRBD-setup-tp22576p139416.html To unsubscribe from HA+DRBD setup, click here http://sip-router.1086192.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=22576&code=c29sdXRpb245NjJAZ21haWwuY29tfDIyNTc2fC0xODA0Njc5NDcz . NAML http://sip-router.1086192.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
-- View this message in context: http://sip-router.1086192.n5.nabble.com/HA-DRBD-setup-tp22576p139418.html Sent from the Users mailing list archive at Nabble.com.
OK, and could you use anycast routing ? Your HA could be done with BGP using communities and bgp localpref.
One restriction to bgp anycast routing: your network should be stable (to preserve transaction and sip dialog).
Regards.
2015-07-08 14:02 GMT+02:00 solution solution962@gmail.com:
we dont want to use VIP
On Wed, Jul 8, 2015 at 5:31 PM, Loic Chabert [via SIP Router] <[hidden email] http:///user/SendEmail.jtp?type=node&node=139418&i=0> wrote:
Hello,
For failover IP, why could not use keepalived ? With a script monitoring, you can switch vip from one host to another easily.
More simple than corosync etc in my opinion.
Regards. Loïc. Le 8 juil. 2015 13:49, "Fred Posner" <[hidden email] http:///user/SendEmail.jtp?type=node&node=139416&i=0> a écrit :
On 07/08/2015 12:31 AM, solution wrote:
but while i manually killing that application fail over switching is
not
happening.
Are there any errors?
--fred
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list [hidden email] http:///user/SendEmail.jtp?type=node&node=139416&i=1 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list [hidden email] http:///user/SendEmail.jtp?type=node&node=139416&i=2 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
If you reply to this email, your message will be added to the discussion below: http://sip-router.1086192.n5.nabble.com/HA-DRBD-setup-tp22576p139416.html To unsubscribe from HA+DRBD setup, click here. NAML http://sip-router.1086192.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
View this message in context: Re: HA+DRBD setup http://sip-router.1086192.n5.nabble.com/HA-DRBD-setup-tp22576p139418.html Sent from the Users mailing list archive http://sip-router.1086192.n5.nabble.com/Users-f3.html at Nabble.com.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
i am not using anycast.
On Thu, Jul 9, 2015 at 1:06 PM, Loic Chabert [via SIP Router] < ml-node+s1086192n139436h5@n5.nabble.com> wrote:
OK, and could you use anycast routing ? Your HA could be done with BGP using communities and bgp localpref.
One restriction to bgp anycast routing: your network should be stable (to preserve transaction and sip dialog).
Regards.
2015-07-08 14:02 GMT+02:00 solution <[hidden email] http:///user/SendEmail.jtp?type=node&node=139436&i=0>:
we dont want to use VIP
On Wed, Jul 8, 2015 at 5:31 PM, Loic Chabert [via SIP Router] <[hidden email] http:///user/SendEmail.jtp?type=node&node=139418&i=0> wrote:
Hello,
For failover IP, why could not use keepalived ? With a script monitoring, you can switch vip from one host to another easily.
More simple than corosync etc in my opinion.
Regards. Loïc. Le 8 juil. 2015 13:49, "Fred Posner" <[hidden email] http:///user/SendEmail.jtp?type=node&node=139416&i=0> a écrit :
On 07/08/2015 12:31 AM, solution wrote:
but while i manually killing that application fail over switching is
not
happening.
Are there any errors?
--fred
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list [hidden email] http:///user/SendEmail.jtp?type=node&node=139416&i=1 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list [hidden email] http:///user/SendEmail.jtp?type=node&node=139416&i=2 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
If you reply to this email, your message will be added to the discussion below: http://sip-router.1086192.n5.nabble.com/HA-DRBD-setup-tp22576p139416.html To unsubscribe from HA+DRBD setup, click here. NAML http://sip-router.1086192.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
View this message in context: Re: HA+DRBD setup http://sip-router.1086192.n5.nabble.com/HA-DRBD-setup-tp22576p139418.html Sent from the Users mailing list archive http://sip-router.1086192.n5.nabble.com/Users-f3.html at Nabble.com.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list [hidden email] http:///user/SendEmail.jtp?type=node&node=139436&i=1 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list [hidden email] http:///user/SendEmail.jtp?type=node&node=139436&i=2 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
If you reply to this email, your message will be added to the discussion below: http://sip-router.1086192.n5.nabble.com/HA-DRBD-setup-tp22576p139436.html To unsubscribe from HA+DRBD setup, click here http://sip-router.1086192.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=22576&code=c29sdXRpb245NjJAZ21haWwuY29tfDIyNTc2fC0xODA0Njc5NDcz . NAML http://sip-router.1086192.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
-- View this message in context: http://sip-router.1086192.n5.nabble.com/HA-DRBD-setup-tp22576p139441.html Sent from the Users mailing list archive at Nabble.com.
I believe thats the configuration you've done via 'crm' to monitor for 3 crashes (by default probably) - that means if you kill it it will try start the monitored application on the same node first and if fails in 3 attempts only then goes to the secondary site. (try inducing an error in kamailio.cfg file and then killing the kamailio)
Now using a VIP or not is your choice.
I can only assume that you want to monitor the Kamailio service and if failed launch it on the secondary server that's all. If that's the case then you don't need to define any FAILOVER-IP
You need to read more on configuring via the crm command to change this behaviour.
Here is an old blog post I wrote on this: http://saevolgo.blogspot.ca/2013/05/opensipskamailio-high-availability.html
Probably the reference link can help you for more detailed explanation.
BR, Sammy
On Thu, Jul 9, 2015 at 6:24 AM, solution solution962@gmail.com wrote:
i am not using anycast.
On Thu, Jul 9, 2015 at 1:06 PM, Loic Chabert [via SIP Router] <[hidden email] http:///user/SendEmail.jtp?type=node&node=139441&i=0> wrote:
OK, and could you use anycast routing ? Your HA could be done with BGP using communities and bgp localpref.
One restriction to bgp anycast routing: your network should be stable (to preserve transaction and sip dialog).
Regards.
2015-07-08 14:02 GMT+02:00 solution <[hidden email] http:///user/SendEmail.jtp?type=node&node=139436&i=0>:
we dont want to use VIP
On Wed, Jul 8, 2015 at 5:31 PM, Loic Chabert [via SIP Router] <[hidden email] http:///user/SendEmail.jtp?type=node&node=139418&i=0> wrote:
Hello,
For failover IP, why could not use keepalived ? With a script monitoring, you can switch vip from one host to another easily.
More simple than corosync etc in my opinion.
Regards. Loïc. Le 8 juil. 2015 13:49, "Fred Posner" <[hidden email] http:///user/SendEmail.jtp?type=node&node=139416&i=0> a écrit :
On 07/08/2015 12:31 AM, solution wrote:
but while i manually killing that application fail over switching is
not
happening.
Are there any errors?
--fred
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list [hidden email] http:///user/SendEmail.jtp?type=node&node=139416&i=1 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list [hidden email] http:///user/SendEmail.jtp?type=node&node=139416&i=2 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
If you reply to this email, your message will be added to the discussion below:
http://sip-router.1086192.n5.nabble.com/HA-DRBD-setup-tp22576p139416.html To unsubscribe from HA+DRBD setup, click here. NAML http://sip-router.1086192.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
View this message in context: Re: HA+DRBD setup http://sip-router.1086192.n5.nabble.com/HA-DRBD-setup-tp22576p139418.html Sent from the Users mailing list archive http://sip-router.1086192.n5.nabble.com/Users-f3.html at Nabble.com.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list [hidden email] http:///user/SendEmail.jtp?type=node&node=139436&i=1 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list [hidden email] http:///user/SendEmail.jtp?type=node&node=139436&i=2 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
If you reply to this email, your message will be added to the discussion below: http://sip-router.1086192.n5.nabble.com/HA-DRBD-setup-tp22576p139436.html To unsubscribe from HA+DRBD setup, click here. NAML http://sip-router.1086192.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
View this message in context: Re: HA+DRBD setup http://sip-router.1086192.n5.nabble.com/HA-DRBD-setup-tp22576p139441.html Sent from the Users mailing list archive http://sip-router.1086192.n5.nabble.com/Users-f3.html at Nabble.com.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
when i kill manually this error appears and starts in same machine without switching "p_kamailio_monitor_5000 on node40(10.12.1.40) 'unknown error' (1): call=61, status=complete, exit-reason='none', last-rc-change='Wed Jul 8 17:28:"
On Wed, Jul 8, 2015 at 5:20 PM, Fred Posner-2 [via SIP Router] < ml-node+s1086192n139415h54@n5.nabble.com> wrote:
On 07/08/2015 12:31 AM, solution wrote:
but while i manually killing that application fail over switching is not happening.
Are there any errors?
--fred
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list [hidden email] http:///user/SendEmail.jtp?type=node&node=139415&i=0 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
If you reply to this email, your message will be added to the discussion below: http://sip-router.1086192.n5.nabble.com/HA-DRBD-setup-tp22576p139415.html To unsubscribe from HA+DRBD setup, click here http://sip-router.1086192.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=22576&code=c29sdXRpb245NjJAZ21haWwuY29tfDIyNTc2fC0xODA0Njc5NDcz . NAML http://sip-router.1086192.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
-- View this message in context: http://sip-router.1086192.n5.nabble.com/HA-DRBD-setup-tp22576p139417.html Sent from the Users mailing list archive at Nabble.com.