Force transition to SLAVE if interface fails?
"MURTARI, JOHN" <[email protected]> Thu, 8 Jun 2017 17:35:14 +0000
| Newsgroups | gmane.linux.keepalived.announce |
|---|---|
| Message-ID | <CC8CDD00405C5C498FFE95D153A482FE19534739@MISOUT7MSGUSRCC.ITServices.sbc.com> |
--===============8017084869133914336==
Content-Language: en-US
Content-Type: multipart/alternative;
boundary="_000_CC8CDD00405C5C498FFE95D153A482FE19534739MISOUT7MSGUSRCC_"
--_000_CC8CDD00405C5C498FFE95D153A482FE19534739MISOUT7MSGUSRCC_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Folks,
Wasn't sure where to go for help. Saw a few questions pos=
ted to the announce list so thought I'd give it a try.
We're new to keepalived. Have a very simple lab setup with=
two servers and we are able to move a floating IP (10.10.140.100) between =
the servers (but only if we stop the keepalived process on the MASTER). I=
f an admin command is used to bring the interface down (ip addr del 10.10.1=
40.100/27 dev eth1) - we see a log entry the address is removed, but no act=
ion from the SLAVE? Added the 'track_interface' option, but didn't seem t=
o help.
Config below, any help is much appreciated!
global_defs {
notification_email {
root@localhost
}
notification_email_from root@localhost
smtp_server localhost
smtp_connect_timeout 30
}
vrrp_instance VRRP1 {
state MASTER
# Specify the network interface to which the virtual address is assigned
interface eth1
# Watch the interface
track_interface {
eth1
}
# The virtual router ID must be unique to each VRRP instance that you def=
ine
virtual_router_id 41
# Set the value of priority higher on the master server than on a backup =
server
priority 200
advert_int 1
authentication {
auth_type PASS
auth_pass 1066
}
virtual_ipaddress {
10.10.140.100/27
}
}
----------------
John Murtari - [email protected]<mailto:[email protected]>
Ciberspring
office: 315-944-0998
cell: 315-430-2702
--_000_CC8CDD00405C5C498FFE95D153A482FE19534739MISOUT7MSGUSRCC_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-US" link=3D"#0563C1" vlink=3D"#954F72">
<div class=3D"WordSection1">
<p class=3D"MsoNormal">Folks,<o:p></o:p></p>
<p class=3D"MsoNormal"> &nbs=
p; Wasn’t sure where to go for he=
lp. Saw a few questions posted to the announce list so thought =
I’d give it a try.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal"> &nbs=
p; We’re new to keepalived. =
Have a very simple lab setup with two servers and we are able to move a fl=
oating IP (10.10.140.100) between the servers (but only if we stop the keep=
alived process on the MASTER). If an admin
command is used to bring the interface down (ip addr del 10.10.140.100/27 =
dev eth1) – we see a log entry the address is removed, but no action =
from the SLAVE? Added the ‘track_interface’ option,=
but didn’t seem to help.
<o:p></o:p></p>
<p class=3D"MsoNormal"> &nbs=
p; Config below, any help is much appre=
ciated!<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New"">global_defs {<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New""> notification_email {<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New""> root@localhost<o:p></o:p></span></=
p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New""> }<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New""> notification_email_from root@localhost<o:p></o=
:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New""> smtp_server localhost<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New""> smtp_connect_timeout 30<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New"">}<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New""><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New"">vrrp_instance VRRP1 {<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New""> state MASTER<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New""># Specify the network interface to which the vi=
rtual address is assigned<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New""> interface eth1<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New""># Watch the interface<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New""> track_interface {<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New""> eth1<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New""> }<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New""># The virtual router ID must be unique to each =
VRRP instance that you define<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New""> virtual_router_id 41<o:p></o:p></span></=
p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New""># Set the value of priority higher on the maste=
r server than on a backup server<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New""> priority 200<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New""> advert_int 1<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New""> authentication {<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New""> auth_type PASS<o=
:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New""> auth_pass 1066<o=
:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New""> }<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New""> virtual_ipaddress {<o:p></o:p></span></p=
>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New""> 10.10.140.=
100/27<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New""> }<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:"Cou=
rier New"">}<o:p></o:p></span></p>
<p class=3D"MsoNormal"> &nbs=
p; <o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal">---------------- <br>
John Murtari – <a href=3D"mailto:[email protected]">[email protected]</a><o=
:p></o:p></p>
<p class=3D"MsoNormal">Ciberspring<o:p></o:p></p>
<p class=3D"MsoNormal">office: 315-944-0998<o:p></o:p></p>
<p class=3D"MsoNormal">cell: 315-430-2702<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>
--_000_CC8CDD00405C5C498FFE95D153A482FE19534739MISOUT7MSGUSRCC_--
--===============8017084869133914336==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
--===============8017084869133914336==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Keepalived-announce mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/keepalived-announce
--===============8017084869133914336==--