Skip to contentSkip to conversation

Raid5/6 journal re-add

DISCUSSION Larkin Lowrey 2 participants 2 messages Nov 19, 2017 – Nov 20, 2017 MD RAID

lore
Share & tools
lore
#0 lore raw

I did a 'pull-the-drive' test on a raid6 array with a write-journal and found that mdadm (v4.0-218-gfe05dc4 - 2017-11-09) would not let me --re-add the drive so I add to --add it.

mdadm: --re-add for /dev/sdq1 to /dev/md124 is not possible

My expectation was that the drive would be recognized as being the missing member and would be re-added and only out-of-sync regions would be resync'd.

When I --add'ed the drive to the array the resync process started for the entire array, not just for the out-of-sync regions. Is this correct behavior for arrays with write journals? Are there plans to perform a selective re-sync rather than a full re-sync?

--Larkin

#1 lore raw
Quoted 6 lines · Larkin Lowrey

I did a 'pull-the-drive' test on a raid6 array with a write-journal and found that mdadm (v4.0-218-gfe05dc4 - 2017-11-09) would not let me --re-add the drive so I add to --add it.

mdadm: --re-add for /dev/sdq1 to /dev/md124 is not possible

Quoted 7 lines

My expectation was that the drive would be recognized as being the missing member and would be re-added and only out-of-sync regions would be resync'd.

When I --add'ed the drive to the array the resync process started for the entire array, not just for the out-of-sync regions. Is this correct behavior for arrays with write journals? Are there plans to perform a selective re-sync rather than a full re-sync?

Needs to be in the mdadm.conf for this array, see 'man mdadm.conf'

Signature · 1 line
Chris Murphy