Re: mdadm --fail requires writeable drive.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 15/11/13 04:46, NeilBrown wrote:
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.


Hi Neil,

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-*


Thanks a lot for this! This is exactly what I was looking for and it worked like a charm.

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.


That's perfect. Thanks a lot!

NeilBrown


Ben.
--
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




[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux