Installing Keepalived

install | setup | simple | routing states | check-ha

tested on slackware current (oct 2021) and debian12

debian

apt install nftables keepalived

slackware

    slackpkg install sysvinit-functions
    ls -lF /etc/rc.d/init.d/functions
    ls -lF /sbin/consoletype

    slackpkg install iptables libnftnl libpcap dbus-1
    slackpkg install nftables jansson

    sbopkg -i keepalived
    cat /etc/default/keepalived # no change required

shared

we need a dedicated user for the check and notify scripts to run

    grep ^keepalive /etc/group
    grep ^keepalive /etc/passwd

    groupadd --system keepalive
    useradd --system -s /bin/bash -g keepalive -d /var/tmp --no-create-home keepalive
    # -s /sbin/nologin

troubleshooting

(seen with the debian build)

    -g requires configure option --enable-log-file

==> enable at build time or be happy with syslog

resources

slackware

https://slackbuilds.org/repository/15.0/network/keepalived/

troubles

https://serverfault.com/questions/1115426/keepalived-with-log-file-doesnt-work ==> enable at build time


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun