On Sun, November 30, 2008 10:31 pm, Wilhelm Meier wrote: > Hi, > > I'm using debian etch with mdadm 2.5.6-9. > > I have a md-device /dev/md1000 with two usb-disks as raid1. The array > is assembled well if the system boots, if I unplug one of the disks, > the array goes to degraded. Thats all ok. > > If I re-plug the usb-disk, udev discovers the device fine, but mdadm > doesn't start the re-add to the md-array. I have to do this but hand. > > Is there something missing to make this work automatically? You would need to put some magic in udev. Something in /etc/udev/rules.d would need to do something like RUN+="/sbin/mdadm -I ..the..device.name" if the detected device was one that you want to be added to an array. I have tried this yet so I don't know the details of how to make it work. > > I tried the mdm-2.6.2 from etch-backports too. Same effect. > > Here, if I try to use the --incremental mode, it constructs a new (!) > array /dev/md/d_1000 instead of adding it to /dev/md1000. > Thats strange to me. --incremental only works properly if the array was created by --incremental. You might be able to make it work better by running mdadm -Ir first. This recreates /var/run/mdadm/map. Good luck! NeilBrown -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html