Case
Yesterday we upgraded vCenter 2.5u2 to vCenter 2.5u3 (yeah, please don't ask why we didn't upgrade to u4). The upgrade process went fine, until we discovered the process was not started.
Errors
One thing that caught our eye was the Service Account used to start the vCenter Server Service. It was set to the default 'Local System' account while it was set to an NPA (Non Person Account we use these kind of services). So after that change we hoped it would start the vCenter Server Service. But it didn't, gave us a clueless error -2:
"The VMware VirtualCenter Server service terminated with service-specific error 2 (0x2)."
For some reason we were unable to start the service.
Try to solve
The next thing I did was starting the vpxd.exe with the -s option from the commandline:
vpxd.exe -s, note the 3rd line from the bottom.
 So I started my 'Microsoft SQL Server Management Studio' and opened up my vCenter database.
There is a table called: 'VPX_VERSION'. In this table, there is only one row and two values: VER_ID = '5' which is fine. The other one: VERSION_VALUE = 'VirtualCenter Database 2.5u2' which is NOT fine. Changed it to 'VirtualCenter Database 2.5u3' and closed the table. Headed to the service, tadaaa, starting the service works! I just fooled vCenter .
Anyway, since this is a heavy production environment (48 ESX Hosts on this vCenter and growing) I wanted to make sure there are NO differences in the database and n original 2.5u3 database.
Export database structure
I exported the database tables and views structure: 'Right click on the database, Tasks, Generate Scripts...'
 Click Next here (shouldn't be a problem)
Choose your vCenter Database
This is where things get interesting. I didn't care about the owner and the use database part. I did care about all the stuff which is in the database structure. So I set all the setting to 'true' on the bottom part.
 I wanted to compare everything, SP's, Tables, Views.
Selected everything since I wanted to compare everything 
And I wanted the output to a file.
Take a short peek at the end and do the same on your other database.
The compare
Using WinMerge or better yet, the portable one , I compared both files. Lucky for us, there was only one difference since the data in the table wasn't fille. Check the screenshot.

So the upgrade was quite succesful, to bad the installer did some strange things. But using the export in SQL and WinMerge I was able to resolve the issue and get a satisfied feeling about the upgrade.
|