X
X
Xyp2018-06-28 20:45:41
linux
Xyp, 2018-06-28 20:45:41

How to set up keepalived in Alt Linux?

Hello.
There was a problem setting up keepalived v1.2.16.
There are two servers on Alt Linux 7.0.5. I installed keepalived on them, I set up one server as a master, the second as a backup. The problem is that a virtual IP is raised on both servers, although it should only be on the master.
Here are the configs of the
master server keepalived.conf:

vrrp_instance failover_test {
state MASTER
interface eth0
virtual_router_id 10
priority 110
advert_int 4
authentication {
auth_type AH
auth_pass 1111
}
virtual_ipaddress {
    10.35.225.36 dev eth0 label eth0:vip
}
}

Backup server keepalived.conf:
vrrp_instance failover_test {
state BACKUP
interface eth0
virtual_router_id 10
priority 100
advert_int 4
authentication {
auth_type AH
auth_pass 1111
}
 virtual_ipaddress {
    10.35.225.36 dev eth0 label eth0:vip
}

}

I’m setting up keepalived for the first time, but as I understand it, the virtual ip should only rise on the master, and if the master server fails for some reason, the virtual ip should move to the backup server, that is, it itself becomes the master. But at the moment the virtual ip has risen on both servers. Please tell me what could be the reason.
PS I wanted to see the logs, but for some reason keepalived does not write them, tell me how to enable them.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question