From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C2D70C32751 for ; Wed, 31 Jul 2019 13:23:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9A0D22064A for ; Wed, 31 Jul 2019 13:23:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729422AbfGaNXJ (ORCPT ); Wed, 31 Jul 2019 09:23:09 -0400 Received: from mx2.suse.de ([195.135.220.15]:60866 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729356AbfGaNXJ (ORCPT ); Wed, 31 Jul 2019 09:23:09 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 06EFEAE21; Wed, 31 Jul 2019 13:23:07 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id 918F5DA7ED; Wed, 31 Jul 2019 15:23:42 +0200 (CEST) Date: Wed, 31 Jul 2019 15:23:42 +0200 From: David Sterba To: Qu Wenruo Cc: dsterba@suse.cz, Qu Wenruo , linux-btrfs@vger.kernel.org Subject: Re: [PATCH] btrfs: Allow more disks missing for RAID10 Message-ID: <20190731132342.GK28208@twin.jikos.cz> Reply-To: dsterba@suse.cz Mail-Followup-To: dsterba@suse.cz, Qu Wenruo , Qu Wenruo , linux-btrfs@vger.kernel.org References: <20190718062749.11276-1-wqu@suse.com> <20190725183741.GX2868@twin.jikos.cz> <20190726103902.GZ2868@twin.jikos.cz> <052a23bb-428d-3249-d8cb-b508ebca0b62@gmx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <052a23bb-428d-3249-d8cb-b508ebca0b62@gmx.com> User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org On Wed, Jul 31, 2019 at 02:58:02PM +0800, Qu Wenruo wrote: > > > On 2019/7/26 下午6:39, David Sterba wrote: > > On Fri, Jul 26, 2019 at 07:41:41AM +0800, Qu Wenruo wrote: > >> > >> > >> On 2019/7/26 上午2:37, David Sterba wrote: > >>> On Thu, Jul 18, 2019 at 02:27:49PM +0800, Qu Wenruo wrote: > >>>> RAID10 can accept as much as half of its disks to be missing, as long as > >>>> each sub stripe still has a good mirror. > >>> > >>> Can you please make a test case for that? > >> > >> Fstests one or btrfs-progs one? > > > > For fstests. > > OK, that test case in fact exposed a long-existing bug, we can't create > degraded chunks. > > So if we're replacing the missing devices on a 4 disk RAID10 btrfs, we > will hit ENOSPC as we can't find 4 devices to fulfill a new chunk. > And it will finally trigger transaction abort. > > Please discard this patch until we solve that problem. Ok, done.