VMware Cloud Community
PKKR
Contributor
Contributor
Jump to solution

Primary/Secondary Host

If two hosts are present in a cluster, how can we know whether it is primary or secondary?

Thanks,

Prashant

Reply
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

Just to make sure, are you using vSphere 4.x ?

In vSphere 5 this concept changed.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

Reply
0 Kudos
5 Replies
PKKR
Contributor
Contributor
Jump to solution

And if there are 3 hosts in a cluster., during HA the VM's will migrate to which host?

Thanks,

Prashant

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

Just to make sure, are you using vSphere 4.x ?

In vSphere 5 this concept changed.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
aravinds3107
Virtuoso
Virtuoso
Jump to solution

Primary and Secondary HA concept is no more avilable on vSphere 5. if you are running vSphere 4.1 or prior you can find primary and seconday nodes details from

cat /var/log/vmware/aam/aam_config_util_listnodes.log

In vSphere 5.0 a new concept called master/slave

Refere HA deepdive section for more details



If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful |Blog: http://aravindsivaraman.com/ | Twitter : ss_aravind
PKKR
Contributor
Contributor
Jump to solution

I am using 4.x.

Thanks,

Prashant

Reply
0 Kudos
RvdNieuwendijk
Leadership
Leadership
Jump to solution

In a two node vSphere 4 HA cluster probably both hosts will be primaries. You can easily find the primary hosts for a cluster called MyCluster with:

(Get-Cluster MyCluster).Extensiondata.RetrieveDasAdvancedRuntimeInfo().DasHostInfo.PrimaryHosts


Regards, Robert

Blog: https://rvdnieuwendijk.com/ | Twitter: @rvdnieuwendijk | Author of: https://www.packtpub.com/virtualization-and-cloud/learning-powercli-second-edition