How to remove a device on a RAID-1 before replacing it?

2011-03-29 Thread Andrew Lutomirski
I have a disk with a SMART failure. It still works but I assume it'll fail sooner or later. I want to remove it from my btrfs volume, replace it, and add the new one. But the obvious command doesn't work: # btrfs device delete /dev/dm-5 /mnt/foo ERROR: error removing the device '/dev/dm-5'

Re: How to remove a device on a RAID-1 before replacing it?

2011-03-29 Thread cwillu
On Tue, Mar 29, 2011 at 2:09 PM, Andrew Lutomirski l...@mit.edu wrote: I have a disk with a SMART failure.  It still works but I assume it'll fail sooner or later. I want to remove it from my btrfs volume, replace it, and add the new one.  But the obvious command doesn't work: # btrfs

Re: How to remove a device on a RAID-1 before replacing it?

2011-03-29 Thread Helmut Hullen
Hallo, cwillu, Du meintest am 29.03.11: I have a disk with a SMART failure.  It still works but I assume it'll fail sooner or later. I want to remove it from my btrfs volume, replace it, and add the new one.  But the obvious command doesn't work: [...] There's no nice way to remove a

Re: How to remove a device on a RAID-1 before replacing it?

2011-03-29 Thread Andrew Lutomirski
On Tue, Mar 29, 2011 at 4:21 PM, cwillu cwi...@cwillu.com wrote: On Tue, Mar 29, 2011 at 2:09 PM, Andrew Lutomirski l...@mit.edu wrote: I have a disk with a SMART failure.  It still works but I assume it'll fail sooner or later. I want to remove it from my btrfs volume, replace it, and add

Re: How to remove a device on a RAID-1 before replacing it?

2011-03-29 Thread Hugo Mills
On Tue, Mar 29, 2011 at 05:01:39PM -0400, Andrew Lutomirski wrote: On Tue, Mar 29, 2011 at 4:21 PM, cwillu cwi...@cwillu.com wrote: On Tue, Mar 29, 2011 at 2:09 PM, Andrew Lutomirski l...@mit.edu wrote: I have a disk with a SMART failure.  It still works but I assume it'll fail sooner or