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 5E5D2C433F5 for ; Thu, 26 May 2022 17:31:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238804AbiEZRbZ (ORCPT ); Thu, 26 May 2022 13:31:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237053AbiEZRbX (ORCPT ); Thu, 26 May 2022 13:31:23 -0400 Received: from mail1.merlins.org (magic.merlins.org [209.81.13.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8A3227CC8 for ; Thu, 26 May 2022 10:31:20 -0700 (PDT) Received: from [104.132.1.99] (port=39850 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 1nuGc4-0007MQ-Ix by authid with srv_auth_plain; Thu, 26 May 2022 10:31:19 -0700 Received: from merlin by sauron.svh.merlins.org with local (Exim 4.92) (envelope-from ) id 1nuHKR-00CfXA-Md; Thu, 26 May 2022 10:31:19 -0700 Date: Thu, 26 May 2022 10:31:19 -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: <20220526173119.GC1751747@merlins.org> References: <20220518191241.GI13006@merlins.org> <20220519222855.GL13006@merlins.org> <20220524011348.GR13006@merlins.org> <20220524191345.GA1751747@merlins.org> <20220526171046.GB1751747@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 104.132.1.99 X-SA-Exim-Connect-IP: 104.132.1.99 X-SA-Exim-Mail-From: marc@merlins.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org On Thu, May 26, 2022 at 01:12:03PM -0400, Josef Bacik wrote: > > ./btrfs rescue chunk-recover /dev/mapper/dshelf1 > > Scanning: DONE in dev0 > > JOSEF: root 9 > > Couldn't find the last root for 8 > > We are going to rebuild the chunk tree on disk, it might destroy the old metadata on the disk, Are you sure? [y/N]: > > > > Do I say 'y' ? > > Yup it should have found all the best chunks, lets let it do its thing. Thanks, Done. what next? gargamel:/var/local/src/btrfs-progs-josefbacik# fg ./btrfs rescue chunk-recover /dev/mapper/dshelf1 Scanning: DONE in dev0 JOSEF: root 9 Couldn't find the last root for 8 We are going to rebuild the chunk tree on disk, it might destroy the old metadata on the disk, Are you sure? [y/N]: y Chunk tree recovered successfully gargamel:/var/local/src/btrfs-progs-josefbacik# I still have this that ran almost a week: gargamel:/var/local/src/btrfs-progs-josefbacik# jobs [1]+ Stopped ./btrfs rescue init-extent-tree /dev/mapper/dshelf1 2>&1 | tee /mnt/btrfs_space/ri1 I assume it's invalidated and I should kill it? If so, do I start the same thing again? Marc -- "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