From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tomasz Chmielewski Subject: Re: replacing failed disks in RAID-1 (kernel BUG)? Date: Tue, 14 Jul 2009 19:29:04 +0200 Message-ID: <4A5CC060.2070308@wpkg.org> References: <4A5B0C39.5030905@wpkg.org> <20090714172702.GI3783@think> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed To: Chris Mason , Tomasz Chmielewski , linux-btrfs@vger.kernel.org Return-path: In-Reply-To: <20090714172702.GI3783@think> List-ID: Chris Mason wrote: > On Mon, Jul 13, 2009 at 12:28:09PM +0200, Tomasz Chmielewski wrote: >> How do I replace failed disks in RAID-1 mode? >> >> I followed the http://btrfs.wiki.kernel.org/index.php/Using_Btrfs_with_Multiple_Devices, but it triggered a kernel BUG (using 2.6.30.1 kernel): >> >> >> # mount -o degraded /dev/sdb4 /mnt/btrfs/ >> >> # btrfs-vol -r missing /mnt/btrfs/ >> removing missing devices from /mnt/btrfs/ >> ioctl returns -1 >> >> # dmesg -c >> btrfs: unable to go below two devices on raid1 >> >> # btrfs-vol -a /dev/sda4 /mnt/btrfs/ >> Speicherzugriffsfehler > > So, this should have worked. I'll dig into why the btrfs-vol -a failed. Mind that I was using 2.6.30.1 kernel, so the code was not very fresh. -- Tomasz Chmielewski http://wpkg.org