Skip to content

vCenter

==vCenter Upgrade== Build Numbers for vCenter appliance

Check vCenter appliance build so you can re-create if upgrade fails so badly that snapshot is not recoverable. You will need the same installer to be able to recover the backup you took as the backup is version dependant

You will then want to backup the appliance and shut it down then take a snapshot while powered off. Once all complete you can power the appliance on and connect to the appliance to begin the upgrade.

Backup vCenter Appliance

Make sure you take a backup of the appliance before making any changes:

Go to the VAMI: https://:5480 then select the backup tab at the bottom and backup to an SFTP server or other option

Cancel Upgrade

If you need to rollback an upgrade to a new version of vsphere and the source vcenter appliance is stuck in the upgrade process (does not let you log into the VAMI) You can alter the upgrade logs to set the appliance into an upgrade complete state:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#Login to the appliance using ssh
#Create a backup copy of the file /etc/applmgmt/appliance/software_update_state.conf in a different location, e.g. in /storage/core:
cp /etc/applmgmt/appliance/software_update_state.conf /storage/core/software_update_state.conf

#Stop the VAMI service by running the command:
service-control --stop applmgmt

#For patch updates, remove the file /etc/applmgmt/appliance/software_update_state.conf :
rm -i /etc/applmgmt/appliance/software_update_state.conf

#change into the folder /var/log/vmware/upgrade :
cd /var/log/vmware/upgrade

#verify that the following 3 files exist in this folder:
#prechecks-succeeded
#export-succeeded
#import-succeeded
#If these files do not exist for patch updates or for major version upgrades, run the following 3 commands to create them:
touch prechecks-succeeded
touch export-succeeded
touch import-succeeded

#confirm that the files have been created:
ls -l   

#-rw-r--r-- 1 root root    0 Mar 11  2019 prechecks-succeeded
#-rw-r--r-- 1 root root    0 Mar 11  2019 import-succeeded
#-rw-r--r-- 1 root root    0 Mar 11  2019 export-succeeded

#Start the VAMI service using the following command:
service-control --start applmgmt

for just canceling the upgrade to new vcenter appliance only stopping the upgrade service and adding the *-succeeded files then starting the service was required.