Saturday, 15 February 2020

STEP BY STEP PRACTICALS - VMWARE - HOW TO UPGRADE VC FROM 6.5 U2 TO 6.5 U3

STEP BY STEP PRACTICALS  - VMWARE

 

Please find the steps of the VC upgrade from 6.5 U2 TO 6.5 U3


1) In my example, I have taken the below scenario:-

My Demo VCenter is in High Availability

PSC01 - VCSA6.5 PSC - 10.0.0.1
PSC02 - VCSA6.5 PSC - 10.0.0.2
VCSA01 - VCSA6.5 Active - 10.0.0.3 - 192.168.1.9
VCSA01-peer - VCSA6.5 Passive - 192.168.1.10
VCSA-witness - VCSA6.5 Witness - 192.168.1.11

2) Take a backup of all the 5 appliances of the VC from the backup software
like Netbackup or Avamar or from the VCSA Backup appliance used in your
environment.

3) Take a snapshot of all the 5 nodes with memory before starting the upgrade.

4) Download the required binary ISO file from the VMware website or from
your internal repository (whichever is applicable).

5)  Upload the downloaded ISO to the shared data-store.

6) Now mount the ISO to all the 5 appliances.

7) Login on the PSC01 and PSC02 appliance and check the validity of the root
account password.
For example:-

https://fqdn or IP of PSC01 appliance:5480
https://10.0.0.1:5480 (Ist PSC Appliance)

Click on Administration - Password Expiration Settings.
Under Password Expiration Settings - Root Password Expire - Set this to
Never and click on Submit.
Perform the above step for the other PSC02 - 10.0.0.2 as well.

8) Now we will proceed with the upgrade of the 1st PSC - 10.0.0.1
Once logged in to the 1st PSC - 10.0.0.1, go to Summary-Update-Check Update and select the option Check CD ROM.

9) In the Available updates pane, you can view the details about the available
patches in the source that you selected.

10) Click Install Updates and select Install CDROM Updates. 

11) Read and accept the End User License Agreement which comes during the upgrade.

12) Uncheck Join CEIP and Click Install

13) Once the installation is complete on the 1st PSC01 - 10.0.0.1 node, reboot
the node by clicking on the reboot option in the Summary Tab.

14) Once the reboot is complete, login into the PSC01 - 10.0.0.1 and verify the
health status of the PSC01.

15) Also verify the Update version of the Vcenter configuration by going to the
update tab in PSC01 - 10.0.0.1. Now the PSC01 - 10.0.0.1 will show the new VC version.

16)  Now we will proceed with the upgrade of the 2nd PSC - 10.0.0.2.

17) In the Available updates pane, you can view the details about the available patches in the source that you selected.

18) Click Install Updates and select Install CDROM Updates. 

19) Read and accept the End User License Agreement which comes during the upgrade.

20) Uncheck Join CEIP and Click Install

21) Once the installation is complete on the 2nd PSC02 - 10.0.0.2 node, reboot
the node by clicking on the reboot option in the Summary Tab.

22) Once the reboot is complete, login into the PSC02 - 10.0.0.2 and verify the health status of the PSC02 - 10.0.0.2.

23) Also verify the Update version of the Vcenter configuration by going to the
update tab in PSC02 - 10.0.0.2. Now the PSC02 - 10.0.0.2 will show the new VC version.
This completes the upgrade of the 2 PSC's in our environment.

24) Now we will proceed with the upgrade the vCenter appliance in high availability.

VCSA01 - VCSA6.5 Active - 10.0.0.3  - 192.168.1.9
VCSA01-peer - VCSA6.5 Passive - 192.168.1.10
VCSA-witness - VCSA6.5 Witness - 192.168.1.11

Note:- IP 10.0.0.3 is IP of the load balancer defined in NSX in your
environment.

IP  192.168.1.x is the inernal IP defined on the VCSA appliances.

vCenter appliance into Maintainance Mode

From the vSphere Web Client, navigate to vCenter > Configure > vCenter HA.
Select Edit and choose Maintenance Mode

25) We will start with the upgrade of the VCSA Witness node - 192.168.1.11.

Hence perform an SSH via putty to the Active Node - 10.0.0.3.

Now from the Active node  connect to the witness node (192.168.1.11).

By running the command - ssh root@192.168.1.11 and enter the root password.

Accept the authenticity of the host by typing in Yes in the security warning.


26) Type in again the password of the witness VCSA node - 192.168.1.11.

27) Now type in the command - appliancesh and enter the password. Once the 

witness VCSA node - 192.168.1.11 is connected to the appliance shell.

Type in the command - software-packages install --iso --acceptEulas

28) Once the witness VCSA node - 192.168.1.11 is upgraded, it would show the message to reboot the node.

29) Disconnect the ISO from the Witness VM and then Reboot the Witness VM  -

VCSA Witness node - 192.168.1.11 will be rebooted by typing in the below
command:    -shutdown reboot -r "6.5 U2"

30) Once reboot will complete Witness node status will turn back to green.

31) Now we will upgrade the VCSA Passive node - 192.168.1.10.

Perform an SSH via putty to the Active Node - 10.0.0.3 - 192.168.1.9.

Now from the Active node  connect to the Passive node (192.168.1.10).

ssh root@Passve_node_IP_address

e.g. ssh root@192.168.1.10

32) Now type in the command - appliancesh and enter the password. Once the 

Passive VCSA node - 192.168.1.10 is connected to the appliance shell.

Type in the command - software-packages install --iso --acceptEulas

33) Once the passive VCSA node - 192.168.1.10 is upgraded, it would show the message to reboot the node.

34) Disconnect the ISO from the Passive Node - 192.168.1.10 and reboot the

Passive Node - 192.168.1.10.

VCSA Pasive node - 192.168.1.10 will be rebooted by typing in the below

command:- shutdown reboot -r "6.5 U2"

35) Once reboot will complete of the Passive node - 192.168.1.10, the  status will turn back to green.

36)  Now we will perform the upgrade of the new VCSA Active node -
 192.168.1.9.
 Hence log out from the appliance shell of the VCSA Active node - 192.168.1.9. VCSA
Active node update will be accomplished by making it passive by Initiating a vCenter HA failover manually.
Process:-
Login on the VC, then select the VC and click on configure.
Under Settings, select vCenter HA and click Initiate Failover.
Click Yes to start the failover.  

37) Once the failover is complete.
We can see in the vSphere Web Client that the Passive node has become the Active node and the Active node has become the Passive node.
Hence the new active and passive node would be:-
VCSA6.5 Active - 192.168.1.10
VCSA6.5 Passive - 192.168.1.9


Note:- IP - 10.0.0.3 is the IP defined in the NSX load balancer used in the environment.


38) Connect to the VCSA Active Node - 10.0.0.3 - 192.168.1.10 

 
Now from the new Active node - 192.168.1.10  connect to the Passive node (192.168.1.9).

ssh root@Passve_node_IP_address
e.g. root@192.168.1.9.

39)  Now type in the command - appliancesh and enter the password. Once the 

Passive VCSA node - 192.168.1.9 is connected to the appliance shell.

Type in the command - software-packages install --iso --acceptEulas

40) Once the passive VCSA node - 192.168.1.9 is upgraded, it would show the message to reboot the node.

41) Disconnect the ISO from the Passive node and then Reboot the Passive node -VCSA Passive node - 192.168.1.9 by typing in the below command:-

shutdown reboot -r "6.5 U2"

42)  Once the VCSA Passive node - 192.168.1.9 comes up.

Exit the maintenance mode. In the vSphere Web Client inventory, click the

Configure tab. Under Settings, select vCenter HA and click Edit.

Select Turn On vCenter HA and click OK

43)   Login on to the VAMI page of the Active VC and validate new build of

VCenter or by using command vpxd –v.


This completes the upgrade of the VC from U2 to U3.

No comments:

Post a Comment