Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Situation Awareness
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
Help Center/ MapReduce Service/ User Guide/ MRS Cluster O&M/ Logging In to an MRS Cluster/ Checking MRS Active/Standby Management Nodes

Checking MRS Active/Standby Management Nodes

Updated on 2024-09-23 GMT+08:00

Some O&M operation scripts and commands need to be run or can be run only on the active management node. You can log in to a Master node or the Manager (MRS 3.x or later) to determine the active and standby management nodes (active and standby OMS nodes).

An active/standby switchover can be implemented between Master1 and Master2. For this reason, Master1 may not be the active management node.

Runing the Script to Determine Active and Standby Nodes

  1. Obtain information about the master nodes of the MRS cluster.

    1. Log in to the MRS management console, choose Active Clusters and click the name of the target cluster to access its details page.
    2. In the Nodes tab, view Master node names. The node that contains master1 in its name is the Master1 node. The node that contains master2 in its name is the Master2 node.

  2. Determine the active and standby management nodes of the cluster.

    1. Remotely log in to the Master1 node. For details, see Logging In to an MRS Cluster Node.

      Master nodes support Cloud-Init. The preset username for Cloud-Init is root and the password is the one you set during cluster creation.

    2. Run the following commands to switch the user:

      sudo su - root

      su - omm

    3. Run the following command to identify the active and standby management nodes:
      • For versions earlier than MRS 3.x, run the following command:

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

      • For MRS 3.x and later versions, run the following command:

        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 (mgtomsdat-sh-3-01-1 in the following example), and the node whose HAActive is standby is the standby management node (mgtomsdat-sh-3-01-2 in the following example).

      Ha mode
      double
      NodeName              HostName                      HAVersion          StartTime                HAActive             HAAllResOK           HARunPhase 
      192-168-0-30          mgtomsdat-sh-3-01-1           V100R001C01        20xx-11-18 23:43:02      active               normal               Actived    
      192-168-0-24          mgtomsdat-sh-3-01-2           V100R001C01        20xx-11-21 07:14:02      standby              normal               Deactived
      NOTE:

      If the Master1 node to which you have logged in is the standby management node and you need to log in to the active management node, run the following command:

      ssh IP address of Master2 node

Logging in to Manager to Determine Active and Standby Nodes

This section applies only to MRS 3.x or later.

  1. Log in to Manager. For details, see Accessing MRS Manager.
  2. Click Hosts. The Hosts page is displayed.
  3. View and record the IP addresses of the active and standby management nodes.

    Figure 1 Viewing and recording the IP addresses
    • If a host name starts with , it is the active management node (active OMS node). View and record the value of Management IP Address in the row containing the active node.
    • If a host name starts with , the host is a standby management node (standby OMS node). View and record the value of Management IP Address in the row containing the standby node.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback