Updated on 2024-11-29 GMT+08:00

Logging In to the Management Node

Scenario

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 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 root.

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 installed as user root.
  2. Run the following command to identify the active and standby management nodes:

    su - omm

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

    In the command output, the node whose HAActive is active is the active management node (Master1), and the node whose HAActive is standby is the standby node (Master2).

    HAMode 
    double 
    NodeName              HostName        HAVersion          StartTime                HAActive             HAAllResOK           HARunPhase  
    192-168-0-30          Master1         V100R001C01        2021-09-01 07:12:05      active               normal               Actived     
    192-168-0-24          Master2         V100R001C01        2021-09-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

    Example 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 root.