Hi All,
I have upgraded 1 of the 2 FreeBSD that are working in failover for the moment from 9.3 -> 10. The other one is still on 9.3. I modify the CARP config on /etc/rc.conf to work with V10 and CARP is working pretty well. The problem that I have is with the configuration of devd.conf. Before I was using this config devd.conf:
I have seen that configuration of devd() changed for the V10 in this URL http://www.freebsd.org/cgi/man.cgi?...=FreeBSD+10.0-stable&arch=default&format=html. I change a little bit to fit and changed the carp-hast-switch to work with MASTER and BACKUP arguments:
On this URL http://www.freebsd.org/doc/handbook/disks-hast.html it's written that I just should keep the name of the CARP-configured interface and so keep the old devd() config. Something like:
I tried both configs and it doesn't work. When I run the script /usr/local/sbin/carp-hast-switch MASTER/BACKUP it works perfectly. The Master and Backup state of my CARP switch also perfectly.
My last question is about the place of the devd.conf. On 9.3 it was working at this place /usr/local/etc/devd/devd.conf, on V10 I tried /usr/local/etc/devd/devd.conf and add at the end of /etc/devd.conf without success.
I'm sure I'm close to the solution but I haven't seen a lot of doc on the net and I have nothing on the /var/log/messages that can help me.
Thanks,
I have upgraded 1 of the 2 FreeBSD that are working in failover for the moment from 9.3 -> 10. The other one is still on 9.3. I modify the CARP config on /etc/rc.conf to work with V10 and CARP is working pretty well. The problem that I have is with the configuration of devd.conf. Before I was using this config devd.conf:
Code:
notify 30 {
match "system" "IFNET";
match "subsystem" "carp0";
match "type" "LINK_UP";
action "/usr/local/sbin/carp-hast-switch master";
};
notify 30 {
match "system" "IFNET";
match "subsystem" "carp0";
match "type" "LINK_DOWN";
action "/usr/local/sbin/carp-hast-switch slave";
};
I have seen that configuration of devd() changed for the V10 in this URL http://www.freebsd.org/cgi/man.cgi?...=FreeBSD+10.0-stable&arch=default&format=html. I change a little bit to fit and changed the carp-hast-switch to work with MASTER and BACKUP arguments:
Code:
notify 0 {
match "system" "CARP";
match "subsystem" "[0-9]+@[0-9a-z]+";
match "type" "(MASTER|BACKUP)";
action "/usr/local/sbin/carp-hast-switch $type";
};
On this URL http://www.freebsd.org/doc/handbook/disks-hast.html it's written that I just should keep the name of the CARP-configured interface and so keep the old devd() config. Something like:
Code:
notify 30 {
match "system" "IFNET";
match "subsystem" "em0_alias0";
match "type" "LINK_UP";
action "/usr/local/sbin/carp-hast-switch MASTER";
};
notify 30 {
match "system" "IFNET";
match "subsystem" "em0_alias0";
match "type" "LINK_DOWN";
action "/usr/local/sbin/carp-hast-switch BACKUP";
};
I tried both configs and it doesn't work. When I run the script /usr/local/sbin/carp-hast-switch MASTER/BACKUP it works perfectly. The Master and Backup state of my CARP switch also perfectly.
My last question is about the place of the devd.conf. On 9.3 it was working at this place /usr/local/etc/devd/devd.conf, on V10 I tried /usr/local/etc/devd/devd.conf and add at the end of /etc/devd.conf without success.
I'm sure I'm close to the solution but I haven't seen a lot of doc on the net and I have nothing on the /var/log/messages that can help me.
Thanks,