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 63095C4167E for ; Mon, 4 Apr 2022 21:25:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1381081AbiDDV01 (ORCPT ); Mon, 4 Apr 2022 17:26:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379831AbiDDSMy (ORCPT ); Mon, 4 Apr 2022 14:12:54 -0400 Received: from mail1.merlins.org (magic.merlins.org [209.81.13.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1C013EA8F for ; Mon, 4 Apr 2022 11:10:57 -0700 (PDT) Received: from c-24-5-124-255.hsd1.ca.comcast.net ([24.5.124.255]:48698 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 1nbRAF-0005XP-7z by authid with srv_auth_plain; Mon, 04 Apr 2022 11:10:55 -0700 Received: from merlin by sauron.svh.merlins.org with local (Exim 4.92) (envelope-from ) id 1nbRAF-00C00g-23; Mon, 04 Apr 2022 11:10:55 -0700 Date: Mon, 4 Apr 2022 11:10:55 -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: <20220404181055.GW1314726@merlins.org> References: <20220329171818.GD1314726@merlins.org> <20220330143944.GE14158@merlins.org> <20220331171927.GL1314726@merlins.org> <20220404010101.GQ1314726@merlins.org> <20220404150858.GS1314726@merlins.org> <20220404174357.GT1314726@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 01:53:56PM -0400, Josef Bacik wrote: > Can you do > > btrfs check --chunk-bytenr 21053440 /dev/whatever I assume you meant chunk-root gargamel:~# btrfs check --chunk-root 21053440 /dev/mapper/dshelf1a Opening filesystem to check... No mapping for 13577814573056-13577814589440 Couldn't map the block 13577814573056 Couldn't map the block 13577814573056 bad tree block 13577814573056, bytenr mismatch, want=13577814573056, have=0 Couldn't read tree root ERROR: cannot open file system gargamel:~# btrfs check --chunk-root 21069824 /dev/mapper/dshelf1a 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 ERROR: could not setup extent tree ERROR: cannot open file system > also I can't seem to find output from a normal btrfs check run, can I > see that as well? I'm curious if we could just tell the super block > the right transid for this and everything would be ok. Thanks, gargamel:~# btrfs check /dev/mapper/dshelf1a 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 ERROR: could not setup extent tree ERROR: cannot open file system 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