Re: Can't remove device -> I/O error

2017-09-30 Thread DocMAX

Thank you for all your effort.
In "normal" conditions i know that the remove/delete command is working 
(i did that some times before).
But in this case it seems that i have some inconsistent data which 
prevents the operation to complete.




Am 30.09.2017 um 13:40 schrieb Goffredo Baroncelli:

On 09/30/2017 12:40 PM, DocMAX wrote:

I removed with "echo" command and also physically.

Both quit with I/O error.

Below the step which I used to simulate (in a virtual machine) your issue:



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


Re: Can't remove device -> I/O error

2017-09-30 Thread DocMAX

I removed with "echo" command and also physically.

Both quit with I/O error.



Am 30.09.2017 um 09:16 schrieb Goffredo Baroncelli:

On 09/30/2017 01:06 AM, DocMAX wrote:

Did you removed the disk before mounting (physically or doing echo 1 
>/sys/block/xxx/device/delete)? Which steps you performed ?

- removed drive physically

- mounted degraded mode

- btrfs dev del -> same i/o error


Did you switch off the machine ? If not, before mounting in degraded mode, do "echo 1 
>/sys/block/xxx/device/delete". After the monting do a btrfs dev del missing






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


Re: Can't remove device -> I/O error

2017-09-29 Thread DocMAX
>> Did you removed the disk before mounting (physically or doing echo 1 
>/sys/block/xxx/device/delete)? Which steps you performed ?


- removed drive physically

- mounted degraded mode

- btrfs dev del -> same i/o error


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


Re: Can't remove device -> I/O error

2017-09-29 Thread DocMAX

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.



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


Re: Can't remove device -> I/O error

2017-09-29 Thread DocMAX

Kernel:

Linux game 4.13.3-1-ARCH #1 SMP PREEMPT Thu Sep 21 20:33:16 CEST 2017 
x86_64 GNU/Linux

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