From: Goffredo Baroncelli <kreijack@inwind.it>
To: DocMAX <docmax1978@gmail.com>, linux-btrfs@vger.kernel.org
Subject: Re: Can't remove device -> I/O error
Date: Fri, 29 Sep 2017 23:48:59 +0200 [thread overview]
Message-ID: <1a111a09-b421-baf7-800b-f24dcdc84a82@inwind.it> (raw)
In-Reply-To: <cc58b693-a7f9-5373-0fdd-542e691de936@gmail.com>
On 09/29/2017 11:09 PM, DocMAX wrote:
> Thanks for the reply.
>
> I don't want to replace the drive. I want to remove.
>
> Also tried in degraded mode. I get the exact same error.
Did you removed the disk before mounting (physically or doing echo 1 >/sys/block/xxx/device/delete)? Which steps you performed ?
>
> I'm not sure but i think i formated the drive on Kernel 4.11.
This shouldn't matter
>
> I am on Kernel 4.13 now.
Ok, it is quite recently
>
>
> I have the bad feeling that i will never get rid of that small drive unless i re-format.
No, it should not be necessary.
>
>
>
> Am 29.09.2017 um 23:04 schrieb Goffredo Baroncelli:
>> On 09/29/2017 10:00 PM, Dirk Diggler wrote:
>>> Hi,
>>>
>>> is there any chance to get my device removed?
>> I simulated a device removing in KVM with
>>
>> echo 1 >/sys/block/sdj/device/delete
>>
>> then
>>
>> btrfs dev del 6 /mnt/....
>>
>>
>> And I got success. But I am not sure if this is the right thing todo.
>>
>> You can use "btrfs replace start -r ....". But you need another device.
>>
>> Otherwise, you can shutdown the filesystem, removing (physically) the disk then remount with a "mount -o degraded ...." followed by a "btrfs dev del missing /..."
>> Before doing so, please tell us which kernel you are using.
>>
>> RAID5/6 until few months ago has a lot of bugs, so if you have an old kernel it is very difficult to remove a device with success.
>>
>
>
--
gpg @keyserver.linux.it: Goffredo Baroncelli <kreijackATinwind.it>
Key fingerprint BBF5 1610 0B64 DAC6 5F7D 17B2 0EDA 9B37 8B82 E0B5
next prev parent reply other threads:[~2017-09-29 21:49 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-29 20:00 Can't remove device -> I/O error Dirk Diggler
2017-09-29 20:22 ` DocMAX
2017-09-29 21:04 ` Goffredo Baroncelli
2017-09-29 21:09 ` DocMAX
2017-09-29 21:48 ` Goffredo Baroncelli [this message]
2017-09-29 23:06 ` DocMAX
2017-09-30 7:16 ` Goffredo Baroncelli
2017-09-30 10:40 ` DocMAX
2017-09-30 11:40 ` Goffredo Baroncelli
2017-09-30 11:48 ` DocMAX
2017-09-30 23:54 ` Duncan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1a111a09-b421-baf7-800b-f24dcdc84a82@inwind.it \
--to=kreijack@inwind.it \
--cc=docmax1978@gmail.com \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).