`<div dir="ltr"><div><div><div><div><div>Hi,<br><br></div>I am currently trying to setup keepalived in an LX branded zone.<br><br></div>Since I get a lot of errors that might be related to the fact it is an LX branded zone, I was wondering if someone would be so kind to shed their light on it.<br><br></div>Especially since I never setup keepalived before, I am unsure if these errors are caused by the fact it is an LX branded zone, of just misconfiguration of keepalived.<br></div><div><br></div><div># Inside the zone<br></div>keepalived.conf</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><pre><code>global_defs {
<span style="color:rgb(153,153,153)"> router_id haproxy01
vrrp_version 3
}
vrrp_script check_haproxy {
script "/etc/keepalived/check_haproxy.sh"
interval 0.05
fall 2
rise 2
}
vrrp_instance haproxy_instance {
state MASTER
interface haproxy01vnic0
virtual_router_id 25
priority 150
advert_int 0.05
virtual_ipaddress {
<a href="http://192.168.1.25/2">192.168.1.25/2</a> label haproxy01vnic0:0
}
track_script {
check_haproxy
}
}</span></code></pre></div></blockquote><div> </div><code>keepalived -f /etc/keepalived/keepalived.conf -l -n</code><div><div><div><div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><span style="color:rgb(153,153,153)">Starting Keepalived v1.3.5 (03/19,2017), git commit v1.3.5-6-g6fa32f2<br>
Unable to resolve default script username 'keepalived_script' - ignoring<br>
Opening file '/etc/keepalived/keepalived.conf'.<br>
Starting Healthcheck child process, pid=13481<br>
Initializing ipvs<br>
Starting VRRP child process, pid=13482<br>
Registering Kernel netlink reflector<br>
Registering Kernel netlink command channel<br>
Error while registering gratuitous ARP shared channel<br>
Opening file '/etc/keepalived/keepalived.conf'.<br>
IPVS: Can't initialize ipvs: No such file or directory<br>
Keepalived_vrrp exited due to segmentation fault (SIGSEGV).<br>
Please report a bug at <a href="https://github.com/acassen/keepalived/issues">https://github.com/acassen/keepalived/issues</a><br>
and include this log from when keepalived started, what happened<br>
immediately before the crash, and your configuration file.</span></div></blockquote><div></div><div><p><br></p><p>/etc/keepalived/check_haproxy.sh</p>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><pre><code><span style="color:rgb(153,153,153)">#!/bin/bash
kill -0 $(cat /run/haproxy.pid) && echo 'OK' && exit 0 || echo 'NOK' && exit 1</span></code></pre></blockquote><div><br></div><div># Inside the global zone <br></div></div><div>cat /etc/zones/haproxy01.xml<br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span style="color:rgb(153,153,153)"><?xml version="1.0"?><br><!--<br> DO NOT EDIT THIS FILE. Use zonecfg(1M) instead.<br>--><br><!DOCTYPE zone PUBLIC "-//Sun Microsystems Inc//DTD Zones//EN" "file:///usr/share/lib/xml/dtd/zonecfg.dtd.1"><br><zone name="haproxy01" zonepath="/export/zones/haproxy01" autoboot="true" brand="lx" ip-type="exclusive" debugid="20"><br> <network physical="haproxy01vnic0"><br> <net-attr name="gateway" value="192.168.1.254"/><br> <net-attr name="ips" value="<a href="http://192.168.1.22/24">192.168.1.22/24</a>"/><br> <net-attr name="primary" value="true"/><br> </network><br> <attr name="dns-domain" type="string" value="<a href="http://sergefonville.nl">sergefonville.nl</a>"/><br> <attr name="resolvers" type="string" value="192.168.1.20"/><br> <attr name="kernel-version" type="string" value="3.10.0"/><br> <network physical="haproxy01vnic1"><br> <net-attr name="ips" value="<a href="http://10.0.0.1/24">10.0.0.1/24</a>"/><br> </network><br></zone><br></span></blockquote></div><div><br></div><div>uname -v</div><div><span style="color:rgb(153,153,153)">omnios-r151022-f9693432c2</span><br></div><div></div><div><br clear="all"><div><div><div class="gmail_signature"><div dir="ltr"><div>Any feedback or input is greatly appreciated!<br></div><div></div><div><br></div><div>Kind regards/met vriendelijke groet,</div><div><br></div><div>Serge Fonville</div><div><br></div><a href="http://www.sergefonville.nl" target="_blank">http://www.sergefonville.nl</a></div></div></div>
</div></div></div></div></div></div></div></div>
`