[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 410
  • Last Modified:

ESXi 4.1 NoPrimaryAgentAvailible

Hi all, have 5 ESXi 4.1 host in a HA cluster. One of our servers is reporting "HA agent disabled on  ServerName.Domain in  cluster ClusterName. And the other 4 hosts are reporting "HA agent on ServerName in cluster ClusterName has an error: NoPrimaryAgentAvailible.

We have restarted the management agents and VMware are asking us to reboot the hosts (no easy to do). Question, how do I determine the primary agent for the cluster?
0
Jason Thomas
Asked:
Jason Thomas
  • 4
  • 3
  • 2
  • +1
5 Solutions
 
Haresh NikumbhCommented:
you can use powercli command to check primary Master

Get-Cluster clustername | Get-HAPrimaryVMHost

Open in new window


Or you can reconfigure HA cluster again to fix this .The first 5 hosts that join the VMware HA cluster are automatically selected as primary nodes.  All the others are automatically selected as secondary nodes. When you do a reconfigure for HA the primary nodes and secondary nodes are selected again, this is at random
0
 
Jason ThomasAuthor Commented:
Hi, I have 5 hosts and so if they are all primary why is the one server reporting primary agent failure?
Also, can I run the powercli from a desktop?

Thanks for your help thus far
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Before restarting the hosts, have you Restarted Network Management Agents ON ALL ESXi hosts.

This will not affect the running VMs.
0
2017 Webroot Threat Report

MSPs: Get the facts you need to protect your clients.
The 2017 Webroot Threat Report provides a uniquely insightful global view into the analysis and discoveries made by the Webroot® Threat Intelligence Platform to provide insights on key trends and risks as seen by our users.

 
Jason ThomasAuthor Commented:
Many thanks all.
Hi, we have restarted management agents but errors remain. I'm just wondering how do I ID the primary agent for the cluster that is being referenced by one of the ESXi hosts.
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
/var/logs/vmkernel.log
0
 
gheistCommented:
Go to vcenter, untick HA and let it disable
Then tick it again - vcenter will install missing HA agents. No restarts needed.
0
 
Jason ThomasAuthor Commented:
I I do the untick and then re enable do I loose any of the current configuration within vsphere?
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Configuration will remain, but HA Agent will be uninstalled/stopped.
0
 
gheistCommented:
You can right click individual ESXi and "reconfigure for HA", but experience shows that if one is broke some other is broke too, so it is better to reinstall all HA agents.
0
 
Jason ThomasAuthor Commented:
Many thanks chaps
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 4
  • 3
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now