Keepalived Installation
Use Case
This guide is useful if you need to install keepalived on Rocky Linux or Red Hat Enterprise Linux for creating redundant Broadcast Suite installations. This is essential for providing high availability and redundancy.
This guide will help you:
- Install
keepalived
using the package manager - Configure
keepalived
with an example configuration file
Installation Steps
Step 1: Installation
To install keepalived
, follow these steps:
- Open a terminal
- Run the following command:
sudo dnf install keepalived
Step 2: Configuration
After installing keepalived
, you need to configure it. You can use the example configuration file located at /opt/slg/broadcastsuite/samples/keepalived.conf
. To do this, follow these steps:
- Copy the example configuration file to the appropriate location:
sudo cp /opt/slg/broadcastsuite/samples/keepalived.conf /etc/keepalived/keepalived.conf
- Edit the configuration file if necessary:
sudo nano /etc/keepalived/keepalived.conf
Make any required changes to suit your network environment.
The virtual_router_id
must be unique within the network.
The example configuration file can be found in the appendix.
Step 3: Start and Enable Keepalived
To start keepalived
and enable it to run on boot, execute the following commands:
sudo systemctl enable keepalived --now
Step 4: Verify the Installation
After starting keepalived
, you can verify that it is running correctly by checking its status:
sudo systemctl status keepalived
This command should display the status, indicating whether it is active and running.