I am playing with a setup of 'hosting' environment with redundant storage based on HAST. Monitoring and availability are managed by CARP.
CARP is configured as:
on both hosts. Upon reboot of any of the servers what happens is:
- the remaining running server switches role to MASTER.
- when the rebooting server comes up, it first becomes MASTER, then BACKUP:
Trouble is, HAST and application startup/teardown are in response to devd events and immediately after boot at the "up" event the storage is activated and application started. Shortly after that, it is stopped again.
Is there way to avoid CARP putting the interface UP at boot? Or perhaps delay it until it is confirmed no other hosts on the network is MASTER.
Ideally, I would prefer to have the host that became MASTER for whatever reason, stay MASTER for as long as it is alive.
CARP is configured as:
Code:
ifconfig_carp0="vhid 1 pass password advskew 20 a.b.c.d/24"
on both hosts. Upon reboot of any of the servers what happens is:
- the remaining running server switches role to MASTER.
- when the rebooting server comes up, it first becomes MASTER, then BACKUP:
Code:
carp0: link state changed to UP
carp0: MASTER -> BACKUP (more frequent advertisement received)
carp0: link state changed to DOWN
Trouble is, HAST and application startup/teardown are in response to devd events and immediately after boot at the "up" event the storage is activated and application started. Shortly after that, it is stopped again.
Is there way to avoid CARP putting the interface UP at boot? Or perhaps delay it until it is confirmed no other hosts on the network is MASTER.
Ideally, I would prefer to have the host that became MASTER for whatever reason, stay MASTER for as long as it is alive.