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 EE636C433EF for ; Wed, 6 Apr 2022 04:46:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237463AbiDFEsj (ORCPT ); Wed, 6 Apr 2022 00:48:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1577150AbiDEXLv (ORCPT ); Tue, 5 Apr 2022 19:11:51 -0400 Received: from mail1.merlins.org (magic.merlins.org [209.81.13.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C18D66D84B for ; Tue, 5 Apr 2022 14:43:27 -0700 (PDT) Received: from merlin by mail1.merlins.org with local (Exim 4.94.2 #2) id 1nbqxB-0007eS-Q1 by authid ; Tue, 05 Apr 2022 14:43:09 -0700 Date: Tue, 5 Apr 2022 14:43:09 -0700 From: Marc MERLIN To: Josef Bacik Cc: "linux-btrfs@vger.kernel.org" Subject: Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed) Message-ID: <20220405214309.GI28707@merlins.org> References: <20220405195901.GC28707@merlins.org> <20220405200805.GD28707@merlins.org> <20220405203737.GE28707@merlins.org> <20220405211412.GF28707@merlins.org> <20220405212655.GH28707@merlins.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Sysadmin: BOFH X-URL: http://marc.merlins.org/ User-Agent: Mutt/1.10.1 (2018-07-13) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: marc@merlins.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org On Tue, Apr 05, 2022 at 05:35:02PM -0400, Josef Bacik wrote: > On Tue, Apr 5, 2022 at 5:26 PM Marc MERLIN wrote: > > > > On Tue, Apr 05, 2022 at 05:19:57PM -0400, Josef Bacik wrote: > > > Otra vez por favor, > > > > (gdb) run -o 1 /dev/mapper/dshelf1a > > Starting program: /var/local/src/btrfs-progs-josefbacik/btrfs-find-root -o 1 /dev/mapper/dshelf1a > > [Thread debugging using libthread_db enabled] > > Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". > > 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 > > FS_INFO IS 0x5555555cf2a0 > > 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 > > 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 > > Couldn't find the last root for 4 > > Couldn't setup device tree > > FS_INFO AFTER IS 0x5555555cf2a0 > > Superblock thinks the generation is 1602089 > > Superblock thinks the level is 1 > > > > Program received signal SIGSEGV, Segmentation fault. > > Ugh sorry, try again. Thanks, Thanks. Note that you still have 2 functions to comment out >From https://github.com/josefbacik/btrfs-progs ce32ea15..914c9847 for-marc -> origin/for-marc Updating ce32ea15..914c9847 Fast-forward btrfs-find-root.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) sauron:/var/local/src/btrfs-progs-josefbacik# make [CC] btrfs-find-root.o btrfs-find-root.c:383:13: warning: ‘print_find_root_result’ defined but not used [-Wunused-function] 383 | static void print_find_root_result(struct cache_tree *result, New version after I fixed the build warnings that were errors for me gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs-find-root -o 1 /dev/mapper/dshelf1a 2>&1 |tee /tmp/out 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 FS_INFO IS 0x564897ec32a0 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 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 Couldn't find the last root for 4 Couldn't setup device tree FS_INFO AFTER IS 0x564897ec32a0 Superblock thinks the generation is 1602089 Superblock thinks the level is 1 Found tree root at 13577814573056 gen 1602089 level 1 gargamel:/var/local/src/btrfs-progs-josefbacik# -- "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/