Forum Discussion

Athiri's avatar
Athiri
Level 3
9 years ago
Solved

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

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

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

  • 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
     #