Updated on 2022-12-08 GMT+08:00

Logging In to the Management Node

Scenarios

Some O&M operation scripts and commands need to be run or can be run only on the active management node. You can identify and log in to the active or standby management node based on the following operations.

Checking and Logging In to the Active and Standby Management Nodes

  1. Log in to FusionInsight Manager.
  2. Choose System > OMS.

    In the Basic Information area, Current Active indicates the host name of the active management node, and the Current Standby indicates the host name of the standby management node. Click a host name to go to the host details page. On the host details page, record the IP address of the host.

  3. Log in to the active or standby management node as user omm.

Identifying the Active and Standby Management Nodes by Running Scripts and Logging In to Them

  1. Log in to any node where FusionInsight Manager is deployed as user omm.
  2. Run the following command to identify the active and standby management nodes:

    sh ${BIGDATA_HOME}/om-server/om/sbin/status-oms.sh

    In the command output, the value of HAActive for the active management node is active, and that for the standby management node is standby. In the following example, Master1 is the active management node, and Master2 is the standby management node.

    HAMode 
    double 
    NodeName              HostName        HAVersion          StartTime                HAActive             HAAllResOK           HARunPhase  
    192-168-0-30          Master1           V100R001C01        2022-05-01 23:43:02      active               normal               Actived     
    192-168-0-24          Master2           V100R001C01        2022-05-01 07:14:02      standby              normal               Deactived 

  3. Run the following command to obtain the IP addresses of the active and standby management nodes.

    cat /etc/hosts

    The following is an example of the IP addresses of the active and standby management nodes:

    127.0.0.1      localhost
    192.168.0.30    Master1
    192.168.0.24    Master2

  4. Log in to the active or standby management node as user omm.