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
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
On this page

Replacing a Disk in an MRS Cluster

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

Issue

A disk is not accessible.

Symptom

A user created an MRS cluster with local disks. A disk of a core node in this cluster is damaged, resulting in file read failures.

Cause Analysis

The disk hardware is faulty.

Procedure

NOTE:

This procedure is applicable to troubleshooting disk hardware faults of core and task nodes in MRS clusters using local disks (ECSs of D, I, IR, and KI series).

Kafka does not support disk replacement. If the node that stores Kafka data is faulty, contact technical support.

  1. Log in to FusionInsight Manager.
  2. Choose Hosts and click the name of the faulty host. In the Instance area, click DataNode. Then on the page that is displayed, click More and select Decommission.

    NOTE:
    • If this host accommodates DataNode, NodeManager, RegionServer, and ClickHouseServer instances, decommission these instances by referring to this step.
    • In versions later than MRS 3.1.2, the ClickHouseServer role instance can be decommissioned.

  3. Choose Hosts, select the faulty host, click More, and select Stop All Instances.
  4. Run the vim /etc/fstab command to comment out the mount point of the faulty disk.

    Figure 1 Commenting out the mount point of the faulty disk

  5. If the old disk is still accessible, migrate user data on the old disk (for example, /srv/BigData/data1/).

    cp -r Mount point of the old disk Temporary data storage directory

    Example: cp -r /srv/BigData/data1 /tmp/

  6. Log in to the MRS console.
  7. On the cluster details page, click the Nodes tab.
  8. Click the node whose disk is to be replaced to go to the ECS console. Click Stop to stop the node.
  9. Contact technical support to replace the disk in the background.
  10. On the ECS console, click Start to start the node where the disk has been replaced.
  11. Initialize the Linux data disk.

    For details, see Step 1 to Step 9 in Creating and Mounting a Partition in .

  12. Run the lsblk command to view information about the new disk partition.

    Figure 2 Viewing the new disk partition

  13. Run the df -TH command to obtain the file system type.

    Figure 3 Obtaining the file system type

  14. Format the new disk partition based on the obtained file system type.

    Example: mkfs.ext4 /dev/sdd1

  15. Run the following command to mount the new disk:

    mount New disk Mount point

    Example: mount /dev/sdd1 /srv/BigData/data1

  16. Run the following command to grant the omm user permission to the new disk:

    chown omm:wheel Mount point

    Example: chown -R omm:wheel /srv/BigData/data1

  17. Migrate user data from the old disk (for example, /srv/BigData/data1/) to the new disk.

    cp -rTemporary data storage directory Mount point of the new disk

    Example: cp -r /tmp/data1/* /srv/BigData/data1/

  18. Add the UUID of the new disk to the fstab file.

    1. Run the blkid command to check the UUID of the new disk.

    2. Open the /etc/fstab file and add the following information:
      UUID=UUID of the new disk /srv/BigData/data1 ext4 defaults,noatime,nodiratime,nodev 1 0

  19. Log in to FusionInsight Manager.
  20. Choose Hosts and click the name of the host to be recommissioned. In the Instance area, click DataNode. Then on the page that is displayed, click More and select Recommission.

    NOTE:
    • If this host accommodates DataNode, NodeManager, RegionServer, and ClickHouseServer instances, recommission these instances by referring to this step.
    • In versions later than MRS 3.1.2, the ClickHouseServer role instance can be recommissioned.

  21. Choose Hosts, select the faulty host, click More, and select Start All Instances.
  22. Choose Cluster > HDFS. In the Basic Information area on the Dashboard page, check whether Missing Blocks is 0.

    • If Missing Blocks is 0, no further action is required.
    • If Missing Blocks is not 0, contact technical support.

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