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 A79F6C43334 for ; Wed, 8 Jun 2022 01:20:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244904AbiFHBUX (ORCPT ); Tue, 7 Jun 2022 21:20:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1390016AbiFHAgY (ORCPT ); Tue, 7 Jun 2022 20:36:24 -0400 Received: from mail1.merlins.org (magic.merlins.org [209.81.13.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88CA01F185F for ; Tue, 7 Jun 2022 13:44:53 -0700 (PDT) Received: from merlin by mail1.merlins.org with local (Exim 4.94.2 #2) id 1nyg3a-0005xD-LA by authid ; Tue, 07 Jun 2022 13:44:06 -0700 Date: Tue, 7 Jun 2022 13:44:06 -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: <20220607204406.GX22722@merlins.org> References: <20220607032240.GS22722@merlins.org> <20220607151829.GQ1745079@merlins.org> <20220607153257.GR1745079@merlins.org> <20220607182737.GU1745079@merlins.org> <20220607195744.GV22722@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/ 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, Jun 07, 2022 at 04:10:02PM -0400, Josef Bacik wrote: > Alright it looks like we've gotten everything we're going to get, go > ahead and let init-extent-tree do its thing. Thanks, Argh, it ran for a while and then it crashed, but I didn't have it run under gdb. searching 164624 for bad extents processed 655360 of 109084672 possible bytes, 0% Found an extent we don't have a block group for in the file 12283412910080 ref to path failed Couldn't find any paths for this inode Deleting [26761, 108, 34557952] root 15645018243072 path top 15645018243072 top slot 40 leaf 15645020192768 slot 3 searching 164624 for bad extents processed 655360 of 109084672 possible bytes, 0% Found an extent we don't have a block group for in the file 12283452309504 ref to path failed Couldn't find any paths for this inode Deleting [26761, 108, 43954176] root 15645019504640 path top 15645019504640 top slot 40 leaf 15645020028928 slot 3 Segmentation fault re-running it thankfully crashed in the same place processed 655360 of 109084672 possible bytes, 0% Found an extent we don't have a block group for in the file 12283452309504 ref to path failed Couldn't find any paths for this inode Deleting [26761, 108, 43954176] root 15645019586560 path top 15645019586560 top slot 40 leaf 15645019602944 slot 3 Program received signal SIGSEGV, Segmentation fault. 0x00007ffff78e1c8f in ?? () from /lib/x86_64-linux-gnu/libc.so.6 (gdb) bt #0 0x00007ffff78e1c8f in ?? () from /lib/x86_64-linux-gnu/libc.so.6 #1 0x00005555555862f9 in memcpy (__len=17, __src=, __dest=0x7fffffffd5d0) at /usr/include/x86_64-linux-gnu/bits/string_fortified.h:29 #2 read_extent_buffer (eb=, dst=dst@entry=0x7fffffffd630, start=, len=len@entry=17) at kernel-shared/extent_io.c:1002 #3 0x00005555555735aa in btrfs_node_key (nr=, disk_key=0x7fffffffd630, eb=) at ./kernel-shared/ctree.h:2113 #4 btrfs_node_key_to_cpu (nr=, key=0x7fffffffd650, eb=) at ./kernel-shared/ctree.h:2113 #5 check_block (fs_info=0x555555651bc0, path=path@entry=0x7fffffffd760, level=level@entry=49) at kernel-shared/ctree.c:854 #6 0x0000555555577ecb in btrfs_del_items (trans=trans@entry=0x555555838ff0, root=root@entry=0x55555582c7b0, path=path@entry=0x7fffffffd760, slot=40, nr=nr@entry=1) at kernel-shared/ctree.c:3163 #7 0x00005555555e18d1 in btrfs_del_item (path=0x7fffffffd760, root=0x55555582c7b0, trans=0x555555838ff0) at ./kernel-shared/ctree.h:2781 #8 delete_item (key=0x7fffffffd740, root=0x55555582c7b0) at cmds/rescue-init-extent-tree.c:208 #9 process_leaf_item (slot=, eb=0x0, root=0x55555582c7b0) at cmds/rescue-init-extent-tree.c:297 #10 look_for_bad_extents (root=root@entry=0x55555582c7b0, eb=eb@entry=0x555555834d90, current=current@entry=0x7fffffffda18) at cmds/rescue-init-extent-tree.c:338 #11 0x00005555555e1468 in look_for_bad_extents (root=root@entry=0x55555582c7b0, eb=0x5555557a4bb0, current=current@entry=0x7fffffffda18) at cmds/rescue-init-extent-tree.c:331 #12 0x00005555555e1a66 in clear_bad_extents (root=0x55555582c7b0) at cmds/rescue-init-extent-tree.c:362 #13 0x00005555555e1262 in foreach_root (fs_info=fs_info@entry=0x555555651bc0, cb=cb@entry=0x5555555e1a21 ) at cmds/rescue-init-extent-tree.c:152 #14 0x00005555555e2ffe in reinit_extent_tree (fs_info=0x555555651bc0) at cmds/rescue-init-extent-tree.c:873 #15 btrfs_init_extent_tree (path=path@entry=0x7fffffffe1ce "/dev/mapper/dshelf1") at cmds/rescue-init-extent-tree.c:1219 #16 0x00005555555d867e in cmd_rescue_init_extent_tree (cmd=, argc=, argv=) at cmds/rescue.c:139 #17 0x000055555556c17b in cmd_execute (argv=0x7fffffffdeb8, argc=2, cmd=0x555555647c80 ) at cmds/commands.h:125 #18 handle_command_group (cmd=, argc=2, argv=0x7fffffffdeb8) at btrfs.c:152 #19 0x000055555556c275 in cmd_execute (argv=0x7fffffffdeb0, argc=3, cmd=0x555555648cc0 ) at cmds/commands.h:125 #20 main (argc=3, argv=0x7fffffffdeb0) at btrfs.c:405 -- "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/