Skip to contentSkip to conversation

Assemble the previously replaced components of a previously created array into an active array

DISCUSSION LM 1 participant 1 message Jun 21, 2017 MD RAID

lore
Share & tools
lore

LM

author
#0 lore raw

Hi,

I replaced all component devices of my RAID5 like in the example below:

mdadm /dev/md/test --add-spare /dev/loop20 --replace /dev/loop10 --with /dev/loop20 mdadm /dev/md/test --add-spare /dev/loop21 --replace /dev/loop11 --with /dev/loop21 mdadm /dev/md/test --add-spare /dev/loop22 --replace /dev/loop12 --with /dev/loop22 mdadm /dev/md/test --add-spare /dev/loop23 --replace /dev/loop13 --with /dev/loop23 mdadm /dev/md/test --remove /dev/loop10 /dev/loop11 /dev/loop12 /dev/loop13

Now one of my new disks failed. I currently rebuilding the RAID with the failed disk hoping that the reason for failure has been resolved.

But I wonder if I could just:

1) power down the machine
2) replace all for disks by the removed old (and functioning) disks
3) assemble the old RAID

This would be a great relief, because no relevant data changed since the replacement. However, the RAID has been in use during the replacement and this makes me worry that the RAID cannot be assembled using the old disks due to data inconsistency.

Best,
Lars