Performing Disk Hot Swap for DataNodes
This section describes how to replace HDFS disks without shutting down a DataNode. This is referred to as hot swap.
Performing Disk Hot Swap for DataNodes Using Cloudera Manager
Minimum Required Role: Cluster Administrator (also provided by Full Administrator)
- Configure data directories to remove the disk you are swapping out:
- Go to the HDFS service.
- Click the Instances tab.
- In the Role Type column, click on the affected DataNode.
- Click the Configuration tab.
- Select .
- Select .
- Change the value of the DataNode Data Directory property to remove the directories that are mount points for the disk you are removing.
- Enter a Reason for change, and then click Save Changes to commit the changes.
- Refresh the affected DataNode. Select .
- Remove the old disk and add the replacement disk.
- Change the value of the DataNode Data Directory property to add back the directories that are mount points for the disk you added.
- Enter a Reason for change, and then click Save Changes to commit the changes.
- Refresh the affected DataNode. Select .
- Run the hdfs fsck / command to validate the health of HDFS.