Hello all,
my setup consists of two hosts with CARP and PFSYNC. This works so far. The dhcpd should only start on the host which has the CARP status MASTER. In /etc/devd/dhcpd, i setup a configuration, which is in the sample section man 4 carp. Additional i wrote a little shell script which is triggered after devd notices the state change. This also works.
If i reboot a host, the Backup changes to state MASTER (the shell script starts dhcpd). But on the rebooted host, CARP has still status BACKUP and dhcpd gets startet.
Is there a way to avoid stating dhcpd if CARP state is BACKUP?
Another question. The Host with lower advskew does not switch back to MASTER after coming back online again. I expect this, but it
does not work.
This is the config from the Master, on Backup the advskew is 200
my setup consists of two hosts with CARP and PFSYNC. This works so far. The dhcpd should only start on the host which has the CARP status MASTER. In /etc/devd/dhcpd, i setup a configuration, which is in the sample section man 4 carp. Additional i wrote a little shell script which is triggered after devd notices the state change. This also works.
If i reboot a host, the Backup changes to state MASTER (the shell script starts dhcpd). But on the rebooted host, CARP has still status BACKUP and dhcpd gets startet.
Is there a way to avoid stating dhcpd if CARP state is BACKUP?
Another question. The Host with lower advskew does not switch back to MASTER after coming back online again. I expect this, but it
does not work.
This is the config from the Master, on Backup the advskew is 200
Code:
ifconfig_vmx0="inet xx.154.xx.7 netmask 255.255.255.224"
ifconfig_vmx0_alias0="inet vhid 66 pass 2cd112ce6a18c493e63e7dd45234476e alias xx.154.xx.6/27 advskew 10"