On Thu, 14 Nov 2013 17:33:01 +0000 Benjamin ESTRABAUD <be@xxxxxxxxxx> wrote: > Hi Neil, > > This does work but I was looking for a way to explicitely set a > particular device as Failed (I want to process devices one by one). > > But right now I was reading from the array to force it detecting the > failure as opposed to using "detached" which orders of magnitude better. > > Thanks for the tip, I'll use that for now. If you really want to just fail one of them you can used the "kernel name" like "sda1". If you ls -d /sys/block/mdXX/md/dev-* you will see the devices that are though to be part of the array. The part of the name after "dev-" is the "kernel name". "mdadm /dev/mdXX --fail" will accept a "kernel name" and will mark just that device as faulty. NeilBrown
Attachment:
signature.asc
Description: PGP signature