Always use img for updates?
-
Like many others posting here I became complacent with upgrades. They always worked flawlessly. Then came 21.02. I'm on site (thank goodness) dealing with another AT&T install nightmare and since I had some down time why not do a quick upgrade on their SG-3000? It locked. I was suddenly getting uncomfortable. Fortunately I was able to get it to come back up after a couple reboots. Whew! Now however I'm a little shy on 21.02.
This weekend I tried to upgrade my home SG-2440. What a disaster. After the upgrade the system wasn't responding to pings, no GUI, and the console would go to the command line but no console menu. Other than a crappy cell phone connection I had no internet thus little to no ability to do any research. Fortunately I had a spare FW at work which I drove out and picked up. I was able to get that going, then download a img for the 2440 and reload the OS and finally the config.
So all this indicates I need a new method to do upgrades. Offsite upgrades are no longer an option. I'm thinking the most reliable method would be to download the latest img for the appliance, backup the config, then install the img and finally restore the config.
Thoughts? Would this be any riskier than doing a GUI upgrade or doing a console upgrade? It seems it would be better as any filesystem inconsistencies, corruptions, or whatever would be eliminated.
I'm looking at 2 more SG-3000s that should be upgraded as well as a XG-1537. I'd rather plan on the extra time for on site installs and prep than risk any more excitement.
-
@dennis100 it is definitely cleaner doing it this way and safer, just perhaps not so convenient. It tends be something I often do now, just feels like I'm getting a fresh system at the new version, rather than something hacked around with to drag it up to the latest version.
Also an upgrade scenario is harder to test and debug all eventualities, whereas a clean install with an image file means it installs from a clean slate.
Interesting to hear what others think.
-
After a discussion with support I decided my new upgrade procedure will be:
- Download img for current install version (if I don't already have it).
- Download img for new release.
- Backup my config.
- Run the upgrade from the console.
- If it is successful -> done
- If it fails install the img from the new release with the retain config option.
- If the new img is successful but the config failed restore the config from backup.
- If the new img install fails do #6/7 using the old img.
Determining what is successful can be subjective or could take a while to realize. Fortunately our firewall configuration is somewhat static so we can run on a new release for a while and still roll back relatively easily.
For major releases (21.02) I'm leaning towards going directly to a img install on those.