Latest Articles

How to patch vCenter Server HA cluster

This procedure describes in detail how to patch vCenter Server in HA cluster.

You can download individual patches form (https://my.vmware.com/group/vmware/patch). Login with your My VMware account, select patches for VC (vCenter) and download the required patch. The patch comes as an ISO file which you can mount on the vCenter Server Appliance nodes in HA cluster. In this case, I will download and apply patch 5318154 which contains the vSAN 6.6 release.

Patch vCenter Server HA cluster

  1. Place the vCenter Server HA cluster in the maintenance mode.Patch vCenter Server HA - 01
  2. Open SSH to the Active node and login as root.
  3. First, patch the Witness node from the Active.
    1. Mount the ISO file containing the patch on the Witness.
    2. SSH to the Witness node: # ssh root@<Witness_IP_Address>
    3. Do not enter the shell mode!
    4. Stage the patch: > software-packages stage --iso
    5. Accet the EULA.
    6. Apply the patch: > software-packages install --iso --acceptEulas
    7. Dismount the ISO.
    8. Reboot the Witness node: > shutdown reboot -r “patch install”
  4. Wait for the Witness node to reboot.
  5. Second, patch the Passive node from the Active
    1. Mount the ISO file containing the patch on the Passive
    2. SSH to the Passive node: # ssh root@<Passive_Node_IP_Address>
    3. Do not enter the shell mode!
    4. Stage the patch: > software-packages stage --iso
    5. Accept the EULA.
    6. Apply the patch: > software-packages install --iso --acceptEulas
    7. Dismount the ISO.
    8. Reboot the Passive node: > shutdown reboot -r “patch install”
  6. Wait for the Passive node to reboot.
  7. Next, initiate vCenter HA failover.Patch vCenter Server in HA – 02
  8. Wait for the failover process to complete.Patch vCenter Server in HA – 03
  9. Finally, patch the Old Active node.
    1. Mount the ISO file containg the patch.
    2. SSH to the Old Active node: # ssh root@<Old_Active_Node_IP_Address>
    3. Do not enter the shell mode!
    4. Stage the patch: > software-packages stage --iso
    5. Accept the EULA.
    6. Apply the patch: > software-packages install --iso --acceptEula
    7. Dismount the ISO.
    8. Reboot the Old Active node: > shutdown -r “patch install”
  10. At this point the vCenter HA cluster is updated. Optionaly, you can initiate a failover back to the old active node but it is not necessary.
  11. Exit vCenter Server HA maintenance mode.

Done! 🙂

This concludes this post on how to patch vCenter Server HA cluster.

Cheers!

– Marek.Z

About Marek (293 Articles)
Marek is an IT professional with 15+ years of experience in the IT industry and is currently working as PSO Senior Consultant SDDC at VMware for the NEMEA region.

Leave a reply...