Re: raid1 + 2.6.27.7 issues

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

 



On Mon, Feb 9, 2009 at 1:30 PM, Bill Davidsen <davidsen@xxxxxxx> wrote:
> Jon Nelson wrote:
>>
>> I don't think so. This is how I *remove* the nbd device:
>>
>> mdadm /dev/md11 --fail /dev/nbd0
>> sleep 3
>> mdadm /dev/md11 --remove /dev/nbd0
>>
>> and then finally nbd-client -d /dev/nbd0
>>
>> If necessary, I can try to simulate the problem by using a local
>> logical volume or some such.
>>
>
> I would try this with just the first step. I looked at the code briefly, and
> I think the write intent bitmap will not get built for a removed device but
> will for failed. In any case it's certainly something you can easily try.

Nope. :-(  --remove is necessary.

turnip:~ # mdadm --fail /dev/md11 /dev/nbd0
mdadm: set /dev/nbd0 faulty in /dev/md11
turnip:~ # mdadm --re-add /dev/md11 /dev/nbd0
mdadm: Cannot open /dev/nbd0: Device or resource busy
turnip:~ # mdadm --add /dev/md11 /dev/nbd0
mdadm: Cannot open /dev/nbd0: Device or resource busy
turnip:~ #


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