From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Miguel Sousa Filipe" Subject: Re: Online device removal pushed to the unstable tree Date: Wed, 14 May 2008 15:41:53 +0100 Message-ID: References: <200805131608.36386.chris.mason@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Cc: linux-btrfs@vger.kernel.org To: "Chris Mason" Return-path: In-Reply-To: <200805131608.36386.chris.mason@oracle.com> List-ID: Hi all, On Tue, May 13, 2008 at 9:08 PM, Chris Mason wrote: > Hello everyone, > > The unstable tree is still format compatible with v0.14, and it now includes > the ability to remove devices online. In mirror configurations, IO errors to > one of the mirrors are also handled, although it doesn't currently kick off a > rebuild or other magic. > > To try things out: > > mkfs.btrfs -d raid1 -m raid1 /dev/sdb /dev/sdc > mount /dev/sdb /mnt > # put data on /mnt > # then add /dev/sdd to the FS > btrfs-vol -a /dev/sdd /mnt > > At this point we've got a raid1 filesystem with data spread across sdb and > sdc. If we remove /dev/sdc, all the existing data will be remirrored onto > sdd: > Is there a way to check the progress of the remirror/rebuild ? (somewhat similar to what /proc/mdstat provides when a mirror is being synced) -- Miguel Sousa Filipe