Tuesday, December 7, 2021

Checking which nodes is the prism leader in Nutanix

Description: 

  • All nodes in the cluster will run the Prism service, however only one in the cluster will be the Prism Leader. 
  • The node which held the Prism Leader role had additional PIDs associated with the Prism service as compared to the other nodes. Running 'cluster status' could be used to verify which node had more Prism PIDs. 

Solution: 

  • To determine which node is currently the Prism Leader, run below command from any CVM in the cluster. 
  • Find the node with 'Bootstrap' entry in the output and that will be Prism Leader. 

nutanix@cvm$ allssh jps 
Executing jps on the cluster
================== x.x.2.4 =================
18289 Bootstrap
7954 HyperintMain
17001 Jps
5162 QuorumPeerMain