官网操作步骤:
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.
翻译:
在DataNode主机上替换磁盘
如果其中一个DataNode主机遇到磁盘故障,请按照以下过程更换磁盘:
停止托管服务。
停用DataNode角色实例。
更换发生故障的磁盘。
重新调用DataNode角色实例。
运行HDFS fsck实用程序来验证HDFS的健康状况。 在节点重新引入群集后,实用程序通常会立即报告过度复制的块,并随时间自动更正。
启动托管服务。