Sometimes hdd might drop out of my RAID, but after I fix HW problem - I have to manually find out which is device name of dropped HDD and manually re-add it.
Is there a way to let mdadm scan all HDDs and auto-read ones which belong to array?
Sometimes hdd might drop out of my RAID, but after I fix HW problem - I have to manually find out which is device name of dropped HDD and manually re-add it.
Is there a way to let mdadm scan all HDDs and auto-read ones which belong to array?
No, there is no automated way to do this. There are mdadm monitors out there which parse the various events to enable you to create a custom application to manage the array according to your wishes. There are plenty of NAS appliances that use MD and developed a closed source daemon to manage md, to my knowledge, no open source equivalents exist.
mdadm --assemble --scan
, I believe it works with the correct setup in/etc/mdadm/mdadm.conf
(see the RAID wiki). If that doesn't work, could you give some more details? – j-g-faustus Jan 21 '11 at 20:16mdadm /dev/mdX --add /dev/sdY1
? And then the RAID starts the reconstruction process? – j-g-faustus Jan 22 '11 at 09:54