Anand Jain posted on Tue, 19 Apr 2016 17:13:04 +0800 as excerpted:

>>> # btrfs device delete 3 /mnt/store/
>>> ERROR: device delete by id failed: Inappropriate ioctl for device
>>>
>>> Were the patch sets above for btrfs-progs or for the kernel ?
>>
>> Looks like you're primarily interested in the concern2 patches, device
>> delete by devid.
>>
>> A quick search of the list back-history reveals that an updated patch
>> set, 00/15 now (look for [PATCH 00/15] Device delete by id ), was
>> posted by dserba on the 15th of February.  It was the kernel patches
>> and was slated for the kernel 4.6 dev cycle.  However, the patch set
>> was pulled at that time due to test failures, tho they were suspected
>> to actually be from something else.
> 
>   Thanks Duncan. Yep the reported issue did not point to any of the
>   patch in that set. But I am keeping a tab open for new users /test
>   cases, anything that is found will help.
> 
>   By the way, For Lionel issue, delete missing should work ?
>   which does not need any additional patch.

Were the issues with btrfs delete missing fixed?  There were some issues 
with it actually trying to delete a device literally named "missing" or 
something the like, and of course not finding it to delete, a kernel 
cycle or two ago, and AFAIK delete by ID was originally proposed as a fix 
for that.  If I was reading the comments correctly, however, I think the 
problem there was introduced with the switch to libblockdev or some such, 
however, so he might be able to get around that by using older releases, 
as long as the filesystem isn't using newer features that would block 
that.

So delete missing may or may not work now, I've lost track.  But he was 
reluctant to unmount and reboot, and of course with btrfs not yet 
offlining failed devices, it doesn't know it's actually missing, yet.  So 
even if delete missing does work for him, it's not going to work until a 
reboot and remount degraded, and he was hoping to avoid that with the 
delete by ID.




-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to