Hi,
Well, I just saw that FreeBSD 10 did a full rewrite on CARP. Nice. However, I have a major problem. There's not a lot out there.
I have floating storage that has all my jails on it. The ezjail software in ports is managing it. Now, I believe I have the configuration correct for ifconfig in the /etc/rc.conf on the master and slave, respectively:
In the file /etc/devd.conf on both machines, I have:
The permissions/ownership on the action file are root:wheel and 774.
When I fail one machine by shutting it down, the floating storage (It's fiber channel connected to both machines via identical cards.) doesn't mount.
The main code in /usr/local/bin/carpmaster.sh, outside of logging directives, and other things, performs this:
There is no issue between CARP detection and BACKUP changing to MASTER on either machine in either direction.
The problem is the mounting of the storage and restarting of the jails.
Neither seems to occur and I'm at a loss. The logging states that everything is occurring but things just aren't showing up.
Pointers?
Thank you,
P.
Well, I just saw that FreeBSD 10 did a full rewrite on CARP. Nice. However, I have a major problem. There's not a lot out there.
I have floating storage that has all my jails on it. The ezjail software in ports is managing it. Now, I believe I have the configuration correct for ifconfig in the /etc/rc.conf on the master and slave, respectively:
Code:
ifconfig_ix0="inet 10.2.0.51 netmask 255.255.255.248.0"
ifconfig_ix0_alias0="inet vhid 1 pass <mypassword> alias 10.2.0.53/32"
Code:
ifconfig_ix0="inet 10.2.0.51 netmask 255.255.255.248.0"
ifconfig_ix0_alias0="inet vhid 1 advskew 100 pass <mypassword> alias 10.2.0.53/32"
In the file /etc/devd.conf on both machines, I have:
Code:
notify 0 {
match "system" "CARP"
match "subsystem" "[0-9+@[0-9a-z]+";
match "type" "(MASTER|BACKUP)"'
action "/usr/local/bin/carpmaster.sh"
The permissions/ownership on the action file are root:wheel and 774.
When I fail one machine by shutting it down, the floating storage (It's fiber channel connected to both machines via identical cards.) doesn't mount.
The main code in /usr/local/bin/carpmaster.sh, outside of logging directives, and other things, performs this:
Code:
zpool import -f mypool
/usr/local/etc/rc.d/ezjail restart
There is no issue between CARP detection and BACKUP changing to MASTER on either machine in either direction.
The problem is the mounting of the storage and restarting of the jails.
Neither seems to occur and I'm at a loss. The logging states that everything is occurring but things just aren't showing up.
Pointers?
Thank you,
P.