Support Questions
Find answers, ask questions, and share your expertise

How to remove a data disk from all data nodes in a running cluster

How to remove a data disk from all data nodes in a running cluster

Explorer

I have 5 data nodes with 3*2Tb disk (6 Tb) in each data node with 3 partitions for each node,

/mnt/data1, /mnt/data2 and /mnt/data3.

I need to remove 1 disk (/mnt/data3) on all data nodes, how can I achieve this with minimum downtime.

Current hdfs disk usage is 10 TB

HDP 3.1

2 REPLIES 2

Re: How to remove a data disk from all data nodes in a running cluster

Rising Star

Hello @pauljoshiva,

 

Please review the below post and let us know if that helps

https://community.cloudera.com/t5/Support-Questions/How-to-remove-risk-disks-from-Hadoop-cluster/td-...

 

Cheers!

Was your question answered? Make sure to mark the answer as the accepted solution.

If you find a reply useful, say thanks by clicking on the thumbs up button.

Re: How to remove a data disk from all data nodes in a running cluster

Explorer

 

You can update the configuration (remove single disk that you don't need)  and perform a restart on one datanode at a time. Ensure that there are no under replicated blocks (namenode UI will show that)  in between datanode restarts. I found this to be safest approach.

SDL