LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-07-2012, 01:01 AM   #1
Jerim79
LQ Newbie
 
Registered: Mar 2012
Posts: 1

Rep: Reputation: Disabled
Keepalived and Mysql Replication


I have two servers with mysql installed. MySQL replication works fine until I turn on keepalived on the slave. When I do, I get this message:
[ERROR] Slave I/O: error reconnecting to master 'repl@10.89.96.144:3306' - retry-time: 60 retries: 86400, Error_code: 2013
Here is the keepalived.conf file on the slave:
vrrp_instance VI_1 {
state SLAVE
interface eth0
virtual_router_id 11
priority 100

virtual_ipaddress {
10.89.96.56/24

}
notify_master "/etc/keepalived/notify.sh del 10.89.96.56"
notify_backup "/etc/keepalived/notify.sh add 10.89.96.56"
notify_fault "/etc/keepalived/notify.sh add 10.89.96.56"

}

virtual_server 10.89.96.56 80 {
delay_loop 30
lb_algo rr
lb_kind DR
persistence_timeout 50
protocol TCP

real_server 10.89.96.144 80 {
weight 2
HTTP_GET {
url {
path /index.php
digest 82520e8260668136231dc2a41d81309d
}
connect_timeout 3
nb_get_retry 3
delay_before_retry 2
}

}

real_server 10.89.96.127 80 {
weight 1
HTTP_GET {
url {
path /index.php
digest cd893ebd870b545d3d6cdcbb25d4510b
}
connect_timeout 3
nb_get_retry 3
delay_before_retry 2
}

}

}





 
Old 03-08-2012, 11:26 AM   #2
mulyadi.santosa
Member
 
Registered: Sep 2011
Posts: 96

Rep: Reputation: 15
Hi ...

It's been a long time ago since I worked with keepalived, but reading your described symptom, I have a guess that somehow keepalived "shutdown" the network connection to your mysql slave.

It could be due to something that block the http probing, like described in your keepalived config.

BTW, about Mysql error code, I got hints from this URL:
http://serverfault.com/questions/295...rror-2013-mean

hope it helps...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mysql replication failed after mysql reboot ajayan Linux - Newbie 8 09-08-2010 11:00 AM
MySQL replication Padawan.AVT Linux - Server 4 06-16-2009 09:27 PM
mysql replication lord-fu *BSD 1 04-03-2007 09:23 PM
MySQL Replication ACDII Linux - Server 5 12-18-2006 08:08 AM
mysql replication cheng Linux - Software 1 08-22-2002 02:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration