Restore Distributed Switch on new vCenter if old vCenter is crashed with no backup

patron
patron used Ask the Experts™
on
Is it possible technically ..to restore my dv switch if i lost[crashed] my old vc with no more backup of dv swicth ?

is there any limitation to version compatibility ?

Can we restore this config from any of Host or somewhere else it is saved ?

Please share best practice to restore dv switch in such case .

Thanks
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
If you've had to build a new vCenter and attach to the affected hosts, then the DV switch configuration is gone.

The hosts should still have their original configuration, though, so they will continue to pass traffic and existing VMs will continue to run.  You won't be able to move machines between hosts, or change guest network configurations.

To fix this, you will need to create a new DV switch, add a host to it, reconfigure your VLANS, etc.  Then migrate some guests onto the that host and move on to the next host.  Rinse and repeat until all of the hosts are on the new DV switch.
I had another thought....  Is the SQL database on a separate server?

You could likely install a fresh vCenter into a different database, and then modify the DSN to point to the original SQL instance.  It would then pick up all of the settings from the original installation.
Aaron TomoskyDirector of Solutions Consulting
Commented:
last time I had to do this was with a 5.5 VCSA and I had to make standard switches, migrate to those, then migrate to new DV Switches. YMMV going direct from dVS to dVS
Should you be charging more for IT Services?

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Top Expert 2015
Commented:
To start with - all ESXi-s keep good configuration. And all your VMs stay running.

Now configure vcenter to access management interfaces
And follow aaron's path from then on.
asavener makes a very good point if your DB server is on another server you just need to do a fresh install and point to the old DB.

On another note, was the vcenter server physical or virtual?
patronTechnical consultant

Author

Commented:
have diff db and vc vm.so if my vc is crashed ,I ll prepare new vc on another vm n point it to old db?
will that work simply without any more config?
will that restore all my dv switch config back or if any more config required?
Yes, that should work.  All configuration data is kept in the database.

It's basically the same as migrating to a different SQL server.

I suggest that you first take a backup of the current vCenter database, so that you can always get back to this state.

https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2003493
Aaron TomoskyDirector of Solutions Consulting

Commented:
Reusing the DB server is what saved the dvswitch configuration. Always backup your DB!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start Today