官網操做步驟:node
Replacing a Disk on a DataNode Host
If one of your DataNode hosts experiences a disk failure, follow this process to replace the disk:
Stop managed services.
Decommission the DataNode role instance.
Replace the failed disk.
Recommission the DataNode role instance.
Run the HDFS fsck utility to validate the health of HDFS. The utility normally reports over-replicated blocks immediately after a node is reintroduced to the cluster, which is automatically corrected over time.
Start managed services.this
翻譯:翻譯
在DataNode主機上替換磁盤
若是其中一個DataNode主機遇到磁盤故障,請按照如下過程更換磁盤:
中止託管服務。
停用DataNode角色實例。
更換髮生故障的磁盤。
從新調用DataNode角色實例。
運行HDFS fsck實用程序來驗證HDFS的健康情況。 在節點從新引入羣集後,實用程序一般會當即報告過分複製的塊,並隨時間自動更正。
啓動託管服務。orm