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 4E741C433EF for ; Sat, 11 Jun 2022 00:14:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245496AbiFKAOK (ORCPT ); Fri, 10 Jun 2022 20:14:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236391AbiFKAOJ (ORCPT ); Fri, 10 Jun 2022 20:14:09 -0400 Received: from mail1.merlins.org (magic.merlins.org [209.81.13.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88D4210E3 for ; Fri, 10 Jun 2022 17:14:06 -0700 (PDT) Received: from merlin by mail1.merlins.org with local (Exim 4.94.2 #2) id 1nzolR-00006r-09 by authid ; Fri, 10 Jun 2022 17:14:05 -0700 Date: Fri, 10 Jun 2022 17:14: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: <20220611001404.GM22722@merlins.org> References: <20220608213030.GG22722@merlins.org> <20220608213845.GH22722@merlins.org> <20220609030128.GJ22722@merlins.org> <20220609211511.GW1745079@merlins.org> <20220610191156.GB1664812@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 Fri, Jun 10, 2022 at 03:55:09PM -0400, Josef Bacik wrote: > Soooooo I've fixed my idiocy and moved the code around. Unfortunately > my last fix deleted the stripes from the sys array, so we need to get > those back. So once again run Thanks for looking into this > btrfs rescue recover-chunks > btrfs rescue init-extent-tree > btrfs check --repair Let's go for another round :) gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue recover-chunks /dev/mapper/dshelf1 FS_INFO IS 0x559bd17b9bc0 Couldn't find the last root for 8 FS_INFO AFTER IS 0x559bd17b9bc0 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 kernel-shared/extent-tree.c:2829: btrfs_add_block_group: BUG_ON `ret` triggered, value -17 ./btrfs(+0x29f27)[0x559bd01a8f27] ./btrfs(btrfs_add_block_group+0x1e0)[0x559bd01ad700] ./btrfs(btrfs_find_recover_chunks+0x4fe)[0x559bd020fc44] ./btrfs(+0x848ce)[0x559bd02038ce] ./btrfs(handle_command_group+0x49)[0x559bd019717b] ./btrfs(main+0x94)[0x559bd0197275] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xcd)[0x7fe20f24a7fd] ./btrfs(_start+0x2a)[0x559bd0196e1a] Aborted -- "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/