VMWARE: VCSA 6.5 resetting update manager database

Martin 10/01/2018

When triyng to scan og remediate hosts, you may get errors saying that hosts cannot be updated in the event log, but nothing more, a quick and easy fix is to reset the update manage db and the patch store:

Cautions: The following is a destructive task. Ensure you have working backups and/or snapshots of the vCenter Server Appliance 6.5 before proceeding.

  1. Connect to vCenter Server Appliance 6.5 via SSH
  2. Run the shell command to switch to the BASH Shell:

    shell

  3. Stop the VMware Update Manager Service:

    service-control –stop vmware-updatemgr

  4. Run the following command to reset the VMware Update Manager Database:

    /usr/lib/vmware-updatemgr/bin/updatemgr-util reset-db

  5. Run the following Command to delete the contents of the VMware Update Manager Patch Store:

    rm -rf /storage/updatemgr/patch-store/*

  6. Start the VMware Update Manager Service:

    service-control –start vmware-updatemgr

Note: You may need to log out and log back into any instances of the vSphere Web Client.
Source:

About the Author

Leave a Reply