Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-664

Add a way to efficiently replace a disk in a live datanode



    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 0.22.0
    • None
    • datanode
    • None


      In clusters where the datanode disks are hot swappable, you need to be able to swap out a disk on a live datanode without taking down the datanode. You don't want to decommission the whole node as that is overkill. on a system with 4 1TB HDDs, giving 3 TB of datanode storage, a decommissioning and restart will consume up to 6 TB of bandwidth. If a single disk were swapped in then there would only be 1TB of data to recover over the network. More importantly, if that data could be moved to free space on the same machine, the recommissioning could take place at disk rates, not network speeds.

      1. Maybe have a way of decommissioning a single disk on the DN; the files could be moved to space on the other disks or the other machines in the rack.
      2. There may not be time to use that option, in which case pulling out the disk would be done with no warning, a new disk inserted.
      3. The DN needs to see that a disk has been replaced (or react to some ops request telling it this), and start using the new disk again -pushing back data, rebuilding the balance.

      To complicate the process, assume there is a live TT on the system, running jobs against the data. The TT would probably need to be paused while the work takes place, any ongoing work handled somehow. Halting the TT and then restarting it after the replacement disk went in is probably simplest.

      The more disks you add to a node, the more this scenario becomes a need.


        1. HDFS-664.patch
          9 kB
          Tony Valderrama
        2. HDFS-664.0-20-3-rc2.patch.1
          10 kB
          Tony Valderrama

        Issue Links



              Unassigned Unassigned
              stevel@apache.org Steve Loughran
              2 Vote for this issue
              23 Start watching this issue