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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7A098C4321E for ; Mon, 4 Apr 2022 21:25:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1381197AbiDDV03 (ORCPT ); Mon, 4 Apr 2022 17:26:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380162AbiDDTGD (ORCPT ); Mon, 4 Apr 2022 15:06:03 -0400 Received: from mail1.merlins.org (magic.merlins.org [209.81.13.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 611982126A for ; Mon, 4 Apr 2022 12:04:05 -0700 (PDT) Received: from c-24-5-124-255.hsd1.ca.comcast.net ([24.5.124.255]:48702 helo=sauron.svh.merlins.org) by mail1.merlins.org with esmtpsa (Cipher TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94.2 #2) id 1nbRzf-0000Wc-AJ by authid with srv_auth_plain; Mon, 04 Apr 2022 12:04:03 -0700 Received: from merlin by sauron.svh.merlins.org with local (Exim 4.92) (envelope-from ) id 1nbRzf-00C3BP-44; Mon, 04 Apr 2022 12:04:03 -0700 Date: Mon, 4 Apr 2022 12:04:03 -0700 From: Marc MERLIN To: Josef Bacik Cc: Andrei Borzenkov , Zygo Blaxell , "linux-btrfs@vger.kernel.org" , Chris Murphy , Qu Wenruo Subject: Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed) Message-ID: <20220404190403.GY1314726@merlins.org> References: <20220330143944.GE14158@merlins.org> <20220331171927.GL1314726@merlins.org> <20220404010101.GQ1314726@merlins.org> <20220404150858.GS1314726@merlins.org> <20220404174357.GT1314726@merlins.org> <20220404181055.GW1314726@merlins.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Sysadmin: BOFH X-URL: http://marc.merlins.org/ X-SA-Exim-Connect-IP: 24.5.124.255 X-SA-Exim-Mail-From: marc@merlins.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org On Mon, Apr 04, 2022 at 02:46:57PM -0400, Josef Bacik wrote: > Ok now that I've learned how to read, the real problem is the extent > tree is fucked. The chunk tree isn't happy, but it appears to be sane > enough to proceed, which is good because that could be unfun to > restore. > > Good news is the extent tree is easily re-buildable, lets use > > btrfs check --init-extent-tree /dev/whatever > > and let that baby do its thing. Hopefully that rebuilds everything > and you'll be good to go. Thanks, Thanks for the suggestion, sadly it's not that simple: gargamel:~# btrfs check --init-extent-tree /dev/mapper/dshelf1a WARNING: Do not use --repair unless you are advised to do so by a developer or an experienced user, and then only after having accepted that no fsck can successfully repair all types of filesystem corruption. Eg. some software or hardware bugs can fatally damage a volume. The operation will start in 10 seconds. Use Ctrl-C to stop it. 10 9 8 7 6 5 4 3 2 1 Starting repair. Opening filesystem to check... parent transid verify failed on 22216704 wanted 1600938 found 1602177 parent transid verify failed on 22216704 wanted 1600938 found 1602177 parent transid verify failed on 22216704 wanted 1600938 found 1602177 Ignoring transid failure parent transid verify failed on 13577821667328 wanted 1602089 found 1602242 parent transid verify failed on 13577821667328 wanted 1602089 found 1602242 parent transid verify failed on 13577821667328 wanted 1602089 found 1602242 Ignoring transid failure leaf parent key incorrect 13577821667328 WARNING: could not setup extent tree, skipping it parent transid verify failed on 13577821667328 wanted 1602089 found 1602242 Ignoring transid failure leaf parent key incorrect 13577821667328 Couldn't setup device tree ERROR: cannot open file system gargamel:~# btrfs --version btrfs-progs v5.10.1 Marc -- "A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08