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

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

 



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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux