Re: Can't replace a faulty disk of raid1

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

 



Hi Luis

On Fri, Oct 26, 2012 at 12:59 PM, Lluís Batlle i Rossell
<viric@xxxxxxxxxx> wrote:
[...]
>>
>> I tried to remove the missing device, and it said "Input/output error" after a
>> while. Next attempts simply gave "Invalid argument".

Todate BTRFS is not capable to remove (via btrfs device delete <path>)
a missing disk. The user has to unmount the filesystem and remount-it
in "degraded" mode.
I.e.:

# umount /mnt/btrfs
# mount -o degraded /dev/sdX /mnt/btrfs


Now I am noticing that the filesystem is the root filesystem. This is
a bit more difficult to handle. I think that you have to pass the
right parameter to the boot loader to do that.

For example on debian, you must pass the following option to grub
(typically to the line of the kernel)

rootflags=degraded

I don't know i is valid to do something like:

# mount -o remount,degraded /

BR
G.Baroncelli
--
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