Disable carp after upgrade
-
I am having the issue described here http://redmine.pfsense.org/issues/2218 where carp is passed back to the master before packages are reinstalled which means I have downtime untill the packages reinstall and start. This can be a few minutes when reinstalling Squid.
From what I understand the best way to currently stop this happening is use the shellcmd package and set the following command to run on boot.
sysctl net.inet.carp.allow=0
Does anyone know at the point this will get run, will the carp ip addresses have been already given to the master meaning I have some downtime?
After an upgrade will I not have to wait for the shellcmd package to reinstall before it runs anything, meaning if it installs last I still have the same downtime?
Is there a way I can set this permanently on my master which is 2.0.1 which will survive across an upgrade to 2.0.3?Are there any other work arounds for this problem?
-
The shellcmd package only manages shellcmd tags, it doesn't actually add support for running those commands, that's already baked into pfSense, we just don't offer a GUI to do it out of the box.
There are several types of shellcmd, and you can use an earlyshellcmd to make sure something runs early in the boot process so it's set sooner.
Or you can set that in /boot/loader.conf.local or system tunables (System > Advanced, Tunables tab) which also get set at bootup.
Not sure how much that might help though, but it's worth trying.