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 DDE94C433EF for ; Sun, 12 Jun 2022 21:19:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231818AbiFLVTe (ORCPT ); Sun, 12 Jun 2022 17:19:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234233AbiFLVTH (ORCPT ); Sun, 12 Jun 2022 17:19:07 -0400 Received: from mail1.merlins.org (magic.merlins.org [209.81.13.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 583332DE for ; Sun, 12 Jun 2022 14:19:06 -0700 (PDT) Received: from [172.58.17.232] (port=35913 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 1o0UGo-0006jm-Pc by authid with srv_auth_plain; Sun, 12 Jun 2022 14:19:06 -0700 Received: from merlin by sauron.svh.merlins.org with local (Exim 4.92) (envelope-from ) id 1o0UzA-00AmDg-H1; Sun, 12 Jun 2022 14:19:04 -0700 Date: Sun, 12 Jun 2022 14:19:04 -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: <20220612211904.GK1664812@merlins.org> References: <20220609030128.GJ22722@merlins.org> <20220609211511.GW1745079@merlins.org> <20220610191156.GB1664812@merlins.org> <20220611001404.GM22722@merlins.org> <20220612170605.GI1664812@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: 172.58.17.232 X-SA-Exim-Mail-From: marc@merlins.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org On Sun, Jun 12, 2022 at 04:05:22PM -0400, Josef Bacik wrote: > Yeah I missed we were BUG_ON(ret), so my change does the right thing > if we get a failure, but I needed to update the core code to return > the error. Should work this time, thanks, (gdb) run rescue recover-chunks /dev/mapper/dshelf1 Starting program: /var/local/src/btrfs-progs-josefbacik/btrfs rescue recover-chunks /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 Walking all our trees and pinning down the currently accessible blocks Found missing chunk in super block 20971520-29360128 type 34 adding bg for 20971520 8388608 Program received signal SIGSEGV, Segmentation fault. setup_free_space (fs_info=0x555555652bc0) at cmds/rescue-recover-chunks.c:500 500 bg->cached = 1; (gdb) bt #0 setup_free_space (fs_info=0x555555652bc0) at cmds/rescue-recover-chunks.c:500 #1 btrfs_find_recover_chunks (path=path@entry=0x7fffffffe1ce "/dev/mapper/dshelf1") at cmds/rescue-recover-chunks.c:581 #2 0x00005555555d87d5 in cmd_rescue_recover_chunks (cmd=, argc=, argv=) at cmds/rescue.c:65 #3 0x000055555556c17b in cmd_execute (argv=0x7fffffffdeb8, argc=2, cmd=0x555555648d40 ) at cmds/commands.h:125 #4 handle_command_group (cmd=, argc=2, argv=0x7fffffffdeb8) at btrfs.c:152 #5 0x000055555556c275 in cmd_execute (argv=0x7fffffffdeb0, argc=3, cmd=0x555555649cc0 ) at cmds/commands.h:125 #6 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/ | PGP 7F55D5F27AAF9D08