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 69847C43334 for ; Mon, 13 Jun 2022 23:52:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233217AbiFMXwp (ORCPT ); Mon, 13 Jun 2022 19:52:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229848AbiFMXwp (ORCPT ); Mon, 13 Jun 2022 19:52:45 -0400 Received: from mail1.merlins.org (magic.merlins.org [209.81.13.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86B49BE07 for ; Mon, 13 Jun 2022 16:52:42 -0700 (PDT) Received: from [76.132.34.178] (port=59304 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 1o0t91-0007yG-6i by authid with srv_auth_plain; Mon, 13 Jun 2022 16:52:42 -0700 Received: from merlin by sauron.svh.merlins.org with local (Exim 4.92) (envelope-from ) id 1o0trO-00CkmG-81; Mon, 13 Jun 2022 16:52:42 -0700 Date: Mon, 13 Jun 2022 16:52:42 -0700 From: Marc MERLIN To: Josef Bacik Cc: linux-btrfs Subject: Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed) Message-ID: <20220613235242.GR1664812@merlins.org> References: <20220609030128.GJ22722@merlins.org> <20220609211511.GW1745079@merlins.org> <20220610191156.GB1664812@merlins.org> <20220613175651.GM1664812@merlins.org> <20220613204647.GO22722@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-Broken-Reverse-DNS: no host name for IP address 76.132.34.178 X-SA-Exim-Connect-IP: 76.132.34.178 X-SA-Exim-Mail-From: marc@merlins.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org On Mon, Jun 13, 2022 at 06:19:05PM -0400, Josef Bacik wrote: > Hmm that's not good, I've pushed a patch to see if what I think is > happening is actually happening. Thanks, Same? (gdb) run rescue init-csum-tree /dev/mapper/dshelf1 Starting program: /var/local/src/btrfs-progs-josefbacik/btrfs rescue init-csum-tree /dev/mapper/dshelf1 [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". FS_INFO IS 0x555555652bc0 Couldn't find the last root for 8 FS_INFO AFTER IS 0x555555652bc0 processed 0 of 21907435520 possible data bytes, 0% Program received signal SIGSEGV, Segmentation fault. record_csums_eb (eb=0x5555556f1890, processed=processed@entry=0x7fffffffdbe8) at ./kernel-shared/ctree.h:1762 1762 BTRFS_SETGET_FUNCS(inode_flags, struct btrfs_inode_item, flags, 64); (gdb) bt #0 record_csums_eb (eb=0x5555556f1890, processed=processed@entry=0x7fffffffdbe8) at ./kernel-shared/ctree.h:1762 #1 0x00005555555e394b in record_csums (root=root@entry=0x5555556f15d0, processed=processed@entry=0x7fffffffdbe8) at cmds/rescue-init-csum-tree.c:299 #2 0x00005555555e3f54 in foreach_root (cb=0x5555555e393f , fs_info=0x555555652bc0) at cmds/rescue-init-csum-tree.c:345 #3 btrfs_init_csum_tree (path=path@entry=0x7fffffffe1ce "/dev/mapper/dshelf1") at cmds/rescue-init-csum-tree.c:415 #4 0x00005555555d88b1 in cmd_rescue_init_csum_tree (cmd=, argc=, argv=) at cmds/rescue.c:102 #5 0x000055555556c17b in cmd_execute (argv=0x7fffffffdeb8, argc=2, cmd=0x555555648ce0 ) at cmds/commands.h:125 #6 handle_command_group (cmd=, argc=2, argv=0x7fffffffdeb8) at btrfs.c:152 #7 0x000055555556c275 in cmd_execute (argv=0x7fffffffdeb0, argc=3, cmd=0x555555649cc0 ) at cmds/commands.h:125 #8 main (argc=3, argv=0x7fffffffdeb0) at btrfs.c:405 (gdb) quit A debugging session is active. Inferior 1 [process 30169] will be killed. Quit anyway? (y or n) y gargamel:/var/local/src/btrfs-progs-josefbacik# git pull Current branch for-marc is up to date. -- "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