public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Roman Mamedov <rm@romanrm.net>
To: Victor Banon <banon.victor@gmail.com>
Cc: remi@georgianit.com, linux-btrfs@vger.kernel.org
Subject: Re: BTRFS errors following bad SATA connection
Date: Sat, 4 Jan 2025 18:57:27 +0500	[thread overview]
Message-ID: <20250104185727.56d9fbb6@nvm> (raw)
In-Reply-To: <70008910-2c6f-4fcd-ba36-68ff16992504@gmail.com>

On Fri, 3 Jan 2025 22:24:19 +0100
Victor Banon <banon.victor@gmail.com> wrote:

> It just occurred to me that I might have a way to have enough space to 
> retrieve most of the un-backed up files. The 4th disk of the RAID was a 
> recent addition (that's probably when the SATA issues appeared), so I 
> have closer to 24 TB of data than 36 TB. So I'm thinking I may be able 
> to leverage up to 2 extra disks. Can I get your input on how dumb the 
> following ideas are:
> 
> A. Delete some files then shrink the array (4x12TB RAID5 aka 36 usable 
> TB -> 3x12 TB RAID5 aka 24 usable TB). Remove 1 drive, use it for extra 
> storage.
> 
> B. Degrade the array (4x12TB RAID5 aka 36 usable TB -> degraded 3x12 TB 
> RAID5 aka 36 usable TB). Remove 1 drive, use it for extra storage.
> 
> C. Do both (4x12TB RAID5 aka 36 usable TB -> degraded 2x12 TB RAID5 aka 
> 24 usable TB) . Remove 2 drives, use them for extra storage

If gaining 1 free drive is enough, I'd avoid reshaping and put it in degraded
(--fail, --remove in mdadm), so option B. I remember you said it was not super
important data anyway, and in this state you'd have like a RAID0 of 3
remaining drives, reliability-wise.

> It doesn't seem smart to do any of this while the array is in this 
> precarious state, but I feel like I don't have a whole lot to lose by 
> trying this-- even if it fails catastrophically, the alternative is to 
> do nothing and reformat anyway. But I'd like to have some idea of what 
> to expect before I do that... Is it even possible to shrink or degrade 
> the array?

You'd need to shrink the Btrfs first, and I am not sure if it would let you,
or run into the same transid errors as during other operations.

-- 
With respect,
Roman

      reply	other threads:[~2025-01-04 13:57 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <9443ea9c-08dc-4d08-81a6-cb91940e791e@gmail.com>
2025-01-01 18:25 ` BTRFS errors following bad SATA connection Victor Banon
2025-01-01 23:40   ` remi
2025-01-02  9:32     ` Victor Banon
2025-01-02 13:33       ` Roman Mamedov
2025-01-02 13:40         ` Victor Banon
2025-01-03  8:21           ` Victor Banon
2025-01-03 12:09             ` Roman Mamedov
2025-01-03 12:42               ` Victor Banon
2025-01-03 13:45                 ` Roman Mamedov
2025-01-03 18:47                   ` Victor Banon
2025-01-03 21:04                     ` Roman Mamedov
2025-01-03 21:24                       ` Victor Banon
2025-01-04 13:57                         ` Roman Mamedov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250104185727.56d9fbb6@nvm \
    --to=rm@romanrm.net \
    --cc=banon.victor@gmail.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=remi@georgianit.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox