29-Sep-2011 14:20
I've been using the ConfigSync.pl script to try to download the config of one of the HA pair and load it onto the standalone unit at our DR site. According to what I've read, this should leave the bigip_base.conf file in place on the unit at the DR site, since the host names are different. They both have the same VLANs and Route Domains configured, but I need to get all the Virtual Servers, Pools, etc. copied up. Since that's the part that changes regularly, I wanted to automate this so that bigip3 is kept in sync (within 24 hours or so) with the HA pair.
BUT, when I restored the config file from bigip2 onto bigip3, I got unexpected results. The management IP and hostname remain the same, but bigip3 suddenly thinks he is part of an HA pair and all bigip3's Self-IPs are replaced with the self-IPs from bigip2.
Shouldn't the self-IPs that were previously configured on bigip3 stay? Fortunately I had a backup of bigip3 taken just before this, so it was easy to correct.
I'm running BIP-IP 10.2.2 Build 763.3.
Thanks for any assistance.
29-Sep-2011 15:20
We backup our configs off the device anyway so in a DR event we will restore the entire UCS config to our DR device. Our plan looks something like this:
1. SCP UCS from backup location to DR device
2. SSH to AOM address an run hostconsh
3. Restore the UCS to the DR box
b config install /path/to/config.ucs
4. Change the management IP back to what it is supposed to be
b mgmt 10.10.10.10 { netmask 255.255.255.0 }
b mgmt route default inet { gateway 10.10.10.1 }
5. Fix the hostname
b system { hostname our.f5.example.com }
6. Make the unit into a stand alone unit
b failover redundant disable
7. Test
8. Extinguish any hair that is on fire
The only thing we are considering doing to make it more automatic is to make sure that a copy of the config from UNIT 1 in the production HA pair is copied automatically to the DR unit. The reason we haven't is because the box we use to connect to the DR unit is the same box we keep the backups on. So if we can't get to that we can't do much anyway. I supposed if the backup were on the DR unit someone could console the F5 to get it up.
Hope this helps.
-Alan
30-Sep-2011 07:35
Here's what shows up when I do this via command line:
[root@bigip3:Active] ucs b config install bigip2_full.ucs
Saving active configuration...
Current configuration backed up to /var/local/ucs/cs_backup.ucs.
Product : BIG-IP
Version : 10.2.2
Hostname: UCS : bigip2.winndixieus.wd.com
System: bigip3.winndixieus.wd.com
Installing --shared-- configuration on host bigip3.winndixieus.wd.com
Installing configuration...
Post-processing...
Reading configuration from /config/low_profile_base.conf.
Reading configuration from /defaults/config_base.conf.
Reading configuration from /config/bigip_sys.conf.
Reading configuration from /config/bigip_base.conf.
Reading configuration from /usr/share/monitors/base_monitors.conf.
Reading configuration from /config/profile_base.conf.
Reading configuration from /config/daemon.conf.
Reading configuration from /config/bigip.conf.
Reading configuration from /config/bigip_local.conf.
Loading the configuration ...
[root@bigip3:Standby] ucs
Even though it says it installed the shared configuration, all the Self-IPs on bigip3 are identical to bigip2, and it thinks it's part of an HA pair.
30-Sep-2011 08:40
Try restoring a config from bigip1 and then running "b failover redundant disable". This will make the unit think its a standalone instead of a member of a HA pair.
Another option if you are really only concerned about the shared parts of the config is to use something like
bigip2 b export oneline | grep -e "^\(node\|monitor\|virtual\|pool\)" > /var/tmp/shared.conf
bigip2 scp /var/tmp/shared.conf bigip3:/var/tmp/shared.conf
bigip3 b config save /var/tmp/bigip3_full.ucs
bigip3 b merge /var/tmp/shared.conf
The bigpipe merge command is like import but instead of replacing the whole config it merges it with the config provided.
Regards,
-Alan
30-Sep-2011 08:51
If any virtual services/pools etc are deleted from bigip1/2 they won't be deleted as part of the export | merge. You'd have to remember to manually delete them from bigip3. If your setup is really pretty constant though this might not be a problem for you.
We on the other hand have a pretty dynamic config so the UCS restore with a few fixes is a better solution for us.
-Alan
30-Sep-2011 12:33
Did you get some of the above from another article/site? If so, can you link it here? Looking for more details, as this looks promising.
30-Sep-2011 13:29
As for running it repeatedly I don't think it would be a problem. How automated is your DR process? Will human hands be involved in cutting over to your DR site? Maybe you can just periodically export the config and copy it to bigip3 and then during a DR event apply the config.
Along those lines it might be wise to keep a copy of the UCS from bigip1 or bigip2 available during a DR scenario anyway. That way if you've forgotten something you can at least get it from the config.
Regards,
-Alan