NSX-T Backup and Restore During Upgrade Procedure

29 April 2022 0 By arnaud

About NSX-T backups and restore there are already a lot of documents and blog posts, but still I would like to add an additional topic on top of it. What if you need to restore your NSX-T environment during an upgrade? The past year a lot of new NSX-T versions were released. Think about NSX-T 3.1/3.2 and all there patched versions on top. It can happened that such upgrade is going wrong for whatever reason. So it’s always good to know about the procedure you can go through to restore it.

All officially released versions can be found here: https://kb.vmware.com/s/article/67207

Why restore from backup and not rollback to the earlier version?

The answer is simple: there is no official rollback procedure for NSX-T. If something goes wrong during an upgrade, you have to solve it (with or without the help of VMware support) or try to restore your environment with all available documentation. One of these procedures is the restore from backup of the NSX-T management cluster.
And yes, there are a few other steps when you are in the middle of an upgrade of NSX-T.

How to restore?

Please be aware of the following remarks:

  • If you had a cluster of the NSX Manager appliance when the backup was taken, the restore process restores one node first and then prompts you to add the other nodes. You can add the other nodes during the restore process or after the first node is restored.

Before the restore

  1. Be sure that all NSX Manager nodes are powered off.
  2. Define which backup you want to restore. This will define with which IP/FQDN you have the deploy the first manager node.
    For this, I would to recommend to follow the simple script that has been delivered on every NSX-T manager node: https://docs.vmware.com/en/VMware-NSX-T-Data-Center/3.1/administration/GUID-0CC64F79-E733-4B0E-B7DD-24A629F1275A.html

The restore process during an upgrade

If you have to restore your environment during an upgrade, place be sure to follow the steps in this documentation: https://docs.vmware.com/en/VMware-NSX-T-Data-Center/3.1/upgrade/GUID-CD90B16E-1053-407F-94E0-1603157600FE.html

  1. Deploy your Management Plane node with the same IP address that the backup was created from.
  2. Power On the new VM.
  3. After the new manager node is running and online, you can proceed with the restore.
  4. From a browser, log in with admin privileges to the NSX Manager.
  5. Select System > Backup & Restore.
  6. To configure the backup file server, click Edit.
  7. Do not configure automatic backup if you are going to perform a restore.
  8. Enter the IP address or FQDN.
  9. Change the port number, if necessary. The default is 22.
  10. In the Directory Path text box, enter the absolute directory path where the backups are stored.
  11. Upload the upgrade bundle that you used at the beginning of the upgrade process.
    • Login into the NSX-T Manager -> System -> Upgrade
  12. Upgrade the Upgrade Coordinator.
  13. Restore the backup taking during the upgrade process. The restore process prompts you to take action, if necessary, as it progresses.
  • Check if the Compute Manager is in UP state. This can be checked in the NSX-T UI system → compute managers

ATTENTION: Joining and the cluster stabilizing process might take from 10 to 15 minutes. Run “get cluster status” to view the status. Verify that the status for every cluster service group is UP before making any other cluster changes or adding the third node. From experience it seems that the controller status can stay down, but don’t worry yet. In this case and only if ALL other process are UP, you can continue by adding the third node.

If everything went well during the above procedure, you should have successfully restored your environment. Before continuing the upgrade, be sure you addressed the encountered problem(s), why in the first place you had to restore NSX-T.

Cleanup and verification after the restore.

  • If you had other manager cluster VMs that you powered down before the restore, delete them after the new manager cluster is deployed and restored.
  • Perform a NSX-T health check. Be sure to check NSX appliances/transport nodes/T0/T1/…
  • Check if all certificates are OK (versions prior 3.1.1 have to perform actions to get this OK)