linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: DocMAX <docmax1978@gmail.com>
To: kreijack@inwind.it, linux-btrfs@vger.kernel.org
Subject: Re: Can't remove device -> I/O error
Date: Fri, 29 Sep 2017 23:09:59 +0200	[thread overview]
Message-ID: <cc58b693-a7f9-5373-0fdd-542e691de936@gmail.com> (raw)
In-Reply-To: <3b9a14cb-a88c-4604-6d36-d2706796acfd@libero.it>

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.

I'm not sure but i think i formated the drive on Kernel 4.11.

I am on Kernel 4.13 now.


I have the bad feeling that i will never get rid of that small drive 
unless i re-format.



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


  reply	other threads:[~2017-09-29 21:11 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 [this message]
2017-09-29 21:48     ` Goffredo Baroncelli
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=cc58b693-a7f9-5373-0fdd-542e691de936@gmail.com \
    --to=docmax1978@gmail.com \
    --cc=kreijack@inwind.it \
    --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).