Re: How to handle a RAID5 arrawy with a failing drive?

Chris Murphy
2014-03-16T23:20:47Z

On Mar 16, 2014, at 5:12 PM, Chris Murphy <lists@colorremedies.com> wrote:

>
> On Mar 16, 2014, at 4:55 PM, Chris Murphy <lists@colorremedies.com> wrote:
>
>> Then use btrfs replace start.
>
> Looks like in 3.14rc6 replace isn't yet supported. I get "dev_replace cannot yet handle RAID5/RAID6".
>
> When I do:
> btrfs device add <new> <mp>
>
> The command hangs, no kernel messages.

So even though the device add command hangs, another shell with btrfs fi show reports that it succeeded:

Label: none uuid: d50b6c0f-518a-455f-9740-e29779649250
Total devices 4 FS bytes used 5.70GiB
devid 1 size 7.81GiB used 4.02GiB path /dev/sdb
devid 2 size 7.81GiB used 3.01GiB path /dev/sdc
devid 3 size 7.81GiB used 4.01GiB path
devid 4 size 7.81GiB used 0.00 path /dev/sdd

Yet umount <mp> says the target is busy. ps reports the command status D+. And it doesn't cancel. So at the moment I'm stuck coming up with a work around.

Chris Murphy