All of lore.kernel.org
 help / color / mirror / Atom feed
From: Austin S Hemmelgarn <ahferroin7@gmail.com>
To: Chris Murphy <lists@colorremedies.com>,
	Btrfs BTRFS <linux-btrfs@vger.kernel.org>
Cc: Hugo Mills <hugo@carfax.org.uk>
Subject: Re: BTRFS disaster (of my own making). Is this recoverable?
Date: Thu, 6 Aug 2015 07:13:01 -0400	[thread overview]
Message-ID: <55C3413D.6010202@gmail.com> (raw)
In-Reply-To: <CAJCQCtTzV-YsBVRUAYqZVNP2M3QZfx9gGbOJ3ZY6ZrjEEWvvfQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1301 bytes --]

On 2015-08-05 22:13, Chris Murphy wrote:
> On Wed, Aug 5, 2015 at 6:45 PM, Paul Jones <paul@pauljones.id.au> wrote:
>> Would it be possible to store this type of critical information twice on each disk, at the beginning and end? I thought BTRFS already did that, but I might be thinking of some other filesystem. I've had my share of these types of oops! moments as well.
>
> That option is metadata profile raid1. To do an automatic
> -mconvert=raid1 when the user does 'btrfs device add' breaks any use
> case where you want to temporarily add a small device, maybe a USB
> stick, and now hundreds of MiBs possibly GiBs of metadata have to be
> copied over to this device without warning. It could be made smart,
> autoconvert to raid1 when the added device is at least 4x the size of
> metadata allocation, but then that makes it inconsistent. OK so it
> could be made interactive, but now that breaks scripts. So... where do
> you draw the line?
>
> Maybe this would work if the system chunk only was raid1? I don't know
> what the minimum necessary information is for such a case.
>
> Possibly it make more sense if 'btrfs device add' always does
> -dconvert=raid1 unless a --quick option is passed?
>
Perhaps we could print out a big noisy warning that could be silenced?


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 3019 bytes --]

  reply	other threads:[~2015-08-06 11:13 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-02 17:13 BTRFS disaster (of my own making). Is this recoverable? Sonic
2015-08-03  5:17 ` Duncan
2015-08-03 14:43   ` Sonic
2015-08-03 15:05     ` Sonic
2015-08-03 15:28       ` Hugo Mills
2015-08-03 16:03         ` Sonic
2015-08-03 16:14           ` Sonic
2015-08-03 16:22             ` Sonic
2015-08-03 16:32               ` Sonic
2015-08-03 19:26                 ` Duncan
2015-08-04  2:20                 ` Sonic
2015-08-04  2:45                   ` Sonic
2015-08-04  5:10                   ` Duncan
2015-08-04 20:23                     ` Sonic
2015-08-05 12:31                       ` Sonic
2015-08-05 12:39                         ` Sonic
2015-08-05 16:53                         ` Chris Murphy
2015-08-06  0:45                           ` Paul Jones
2015-08-06  2:13                             ` Chris Murphy
2015-08-06 11:13                               ` Austin S Hemmelgarn [this message]
2015-08-03  5:42 ` Chris Murphy
2015-08-03  8:18   ` Hugo Mills
2015-08-03 13:12   ` Sonic

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=55C3413D.6010202@gmail.com \
    --to=ahferroin7@gmail.com \
    --cc=hugo@carfax.org.uk \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=lists@colorremedies.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.