Forum Discussion
danielpenna
Cirrus
Mar 25, 2015ASM Sync across AWS Availability Zones
Hi all,
I have been working on a solution that synchronizes AWS F5s ( using 11.6.0 HF4 ) between Availability Zones with a large amount of success using SED and SCF files. This has been pretty su...
danielpenna
Cirrus
Sep 04, 2015I just rolled out to 11.60. HF5 ENG Fix ( For FQDN Autopopulation bug ) and would suggest that as a starting point :).
To be honest, the code that does this sync is scp and the heart of it is the below sed command. This is the change for the IPs between AZ A and B. My VPC is setup specifically for the F5 so there is no servers to share my Virtual Server Address space.
2. Edit the SCF file on EM, changing IPs over to AZ B IPs
sed -i.old \
-e 's/lbedmzaza/\lbedmzazb/g' \
-e 's/10\.112\.0\./10\.112\.4\./g' \
-e 's/10\.112\.1\./10\.112\.5\./g' \
-e 's/10\.112\.2\./10\.112\.6\./g' \
-e 's/10\.112\.3\./10\.112\.7\./g' \
-e 's/10-112-3-/10-112-7-/g' \
"$LOCALPATH"
I have run into some problems with this script,
1. You need to set DNS servers manually instead of using DHCP as once you start using FQDN objects you get issues
2. Deletion on the virtual server and re-using that VS IP before the sync of the deletion hit a bug that caused the config to fail to load on AZ B. Easy fix was to delete the VS on AZ B and the sync worked. I think this was a specific bug versus a sync script issue.
Apart from that, the Sync has been pretty trouble free, still got to work out the ASM Sync as we are manually importing/exporting.
The tricky bit though is the actually failover between AZ's ; ).
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects