From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from fw6a-frank.wadns.net ([196.220.39.209]:53085 "EHLO fw6a.wadns.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752208AbaBJNlm (ORCPT ); Mon, 10 Feb 2014 08:41:42 -0500 Message-ID: <52F8D70B.1090201@swiftspirit.co.za> Date: Mon, 10 Feb 2014 15:41:31 +0200 From: Brendan Hide MIME-Version: 1.0 To: Austin S Hemmelgarn , "linux-btrfs@vger.kernel.org" Subject: Re: Issue with btrfs balance References: <52F83A69.8080503@gmail.com> In-Reply-To: <52F83A69.8080503@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Sender: linux-btrfs-owner@vger.kernel.org List-ID: On 2014/02/10 04:33 AM, Austin S Hemmelgarn wrote: > > Apparently, trying to use -mconvert=dup or -sconvert=dup on a > multi-device filesystem using one of the RAID profiles for metadata > fails with a statement to look at the kernel log, which doesn't show > anything at all about the failure. ^ If this is the case then it is definitely a bug. Can you provide some version info? Specifically kernel, btrfs-tools, and Distro. > it appears > that the kernel stops you from converting to a dup profile for metadata > in this case because it thinks that such a profile doesn't work on > multiple devices, despite the fact that you can take a single device > filesystem, and a device, and it will still work fine even without > converting the metadata/system profiles. I believe dup used to work on multiple devices but the facility was removed. In the standard case it doesn't make sense to use dup with multiple devices: It uses the same amount of diskspace but is more vulnerable than the RAID1 alternative. > Ideally, this > should be changed to allow converting to dup so that when converting a > multi-device filesystem to single-device, you never have to have > metadata or system chunks use a single profile. This is a good use-case for having the facility. I'm thinking that, if it is brought back in, the only caveat is that appropriate warnings should be put in place to indicate that it is inappropriate. My guess on how you'd like to migrate from raid1/raid1 to single/dup, assuming sda and sdb: btrfs balance start -dconvert=single -mconvert=dup / btrfs device delete /dev/sdb / -- __________ Brendan Hide http://swiftspirit.co.za/ http://www.webafrica.co.za/?AFF1E97