Yes it does. But as soon as the cron.d killed all the ganesha.nfsd process on all of the five CTs there is nowhere to move the IP to.Doesn't keepalived move the IP?
This is a part of my keepalived config:
Code:
rstumbaum@controlnode01.dc1:~$ cat keepalived/conf.d/check_proc_ganesha.conf
vrrp_script check_proc_ganesha {
script "/usr/bin/pkill -0 ganesha.nfsd" # cheaper than pidof
interval 1 # check every second
}
rstumbaum@controlnode01.dc1:~$ cat keepalived/conf.d/vlan3000.conf
vrrp_instance vlan3000 {
state BACKUP
nopreempt
#smtp_alert
interface eth4
virtual_router_id 30 # unique ID!
priority 100
advert_int 1
authentication {
# dont use pass unless on 100% secure net, its send in cleartext https://louwrentius.com/configuring-attacking-and-securing-vrrp-on-linux.html
# auth_type PASS
# much secure:
auth_type AH
auth_pass 123-3000
}
track_script {
check_proc_ganesha
}
virtual_ipaddress {
10.30.0.2/32
}
}
rstumbaum@controlnode01.dc1:~$
So if there is no ganesha.nfsd running the CT is no target for a VIP.