cancel
Showing results for 
Search instead for 
Did you mean: 

Difference between CVM Nid, CM Nid, cat /etc/llthosts

Athiri
Level 3

Hello Team, 

I usually check /etc/llthosts to find which is masternode in CVM cluster i.e. 0- measn that is the master node. But vxdctl -c  mode gives a different nodes as master. I am little confused here that we do not need to look /etc/llthosts to find which is master node?. 

From vxclustadm nidmap i could see a CVm Nid and CM Nid colums with differnet numbers. How the cluster actually grep that info and works and if possible can you explain that. 

Thanks in advance. 

 

Thanks & Regards,

Ashok

1 ACCEPTED SOLUTION

Accepted Solutions

starflyfly
Level 6
Employee Accredited Certified

only vxdctl -d mode tell you who is  cvm  master.

View solution in original post

3 REPLIES 3

Athiri
Level 3

Can i have an update please

starflyfly
Level 6
Employee Accredited Certified

Hi, 

  according manual:

  nidmap    Prints a table showing the  mapping  between  node
               IDs  in  VxVM's cluster-support subsystem and node
               IDs in the cluster monitor.

 

 # vxclustadm nidmap
Name                             CVM Nid    CM Nid     State               
t5120a                           1          0          Joined: Master      
t5120b                           0          1          Joined: Slave       
root

 #

 # cat  /etc/llthosts
0 t5120a   <<<node id 0
1 t5120b     <<<node id 1
 # vxdctl -c mode
mode: enabled: cluster active - SLAVE
master: t5120a
 #

starflyfly
Level 6
Employee Accredited Certified

only vxdctl -d mode tell you who is  cvm  master.