linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Austin S. Hemmelgarn" <ahferroin7@gmail.com>
To: Btrfs BTRFS <linux-btrfs@vger.kernel.org>
Subject: Re: Kernel bug during RAID1 replace
Date: Wed, 29 Jun 2016 14:19:23 -0400	[thread overview]
Message-ID: <16e65a07-03b6-2540-fc96-3538c5bc5c99@gmail.com> (raw)
In-Reply-To: <20160629201208.275b37ad@system>

On 2016-06-29 14:12, Saint Germain wrote:
> On Wed, 29 Jun 2016 11:28:24 -0600, Chris Murphy
> <lists@colorremedies.com> wrote :
>
>>> Already got a backup. I just really want to try to repair it (in
>>> order to test BTRFS).
>>
>> I don't know that this is a good test because I think the file system
>> has already been sufficient corrupted that it can't be fixed. Part of
>> the problem is that Btrfs isn't aware of faulty drives like mdadm or
>> lvm yet, so it looks like it'll try to write to all devices and it's
>> possible for significant confusion to happen if they're each getting
>> different generation writes. Significant as in, currently beyond
>> repair.
>>
>>>>> On the other hand it seems interesting to repair instead of just
>>>>> giving up. It gives a good look at BTRFS resiliency/reliability.
>>>>
>>>> On the one hand Btrfs shouldn't become inconsistent in the first
>>>> place, that's the design goal. On the other hand, I'm finding from
>>>> the problems reported on the list that Btrfs increasingly mounts
>>>> at least read only and allows getting data off, even when the file
>>>> system isn't fully functional or repairable.
>>>>
>>>> In your case, once there are metadata problems even with raid 1,
>>>> it's difficult at best. But once you have the backup you could try
>>>> some other things once it's certain the hardware isn't adding to
>>>> the problems, which I'm still not yet certain of.
>>>>
>>>
>>> I'm ready to try anything. Let's experiment.
>>
>> I kinda think it's a waste of time. Someone else maybe has a better
>> idea?
>>
>> I think your time is better spent finding out when and why the device
>> with all of these write errors happened. It must have gone missing for
>> a while, and you need to find out why that happened and prevent it; OR
>> you have to be really vigilent at every mount time to make sure both
>> devices have the same transid (generation). In my case when I tried to
>> sabotage this, being of by a generation of 1 wasn't a problem for
>> Btrfs to automatically fix up but I suspect it was only a generation
>> mismatch in the superblock.
>>
>
> Ok I will follow your advice and start over with a fresh BTRFS volume.
> As explained on another email, rsync doesn't support reflink, so do you
> think it is worth trying with BTRFS send instead ?
> Is it safe to copy this way or rsync is more reliable in case of faulty
> BTRFS volume ?
>
If you have the space, btrfs restore would probably be the best option. 
It's not likely, but using send has a risk of contaminating the new 
filesystem as well.


  reply	other threads:[~2016-06-29 18:27 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-27 21:36 Kernel bug during RAID1 replace Saint Germain
2016-06-27 21:42 ` Chris Murphy
2016-06-27 22:26   ` Saint Germain
2016-06-27 22:55     ` Chris Murphy
2016-06-27 22:58       ` Chris Murphy
2016-06-27 23:06         ` Saint Germain
2016-06-28  0:00           ` Chris Murphy
2016-06-28  0:10             ` Chris Murphy
2016-06-28  0:49             ` Saint Germain
2016-06-28  2:14               ` Chris Murphy
2016-06-28 22:52                 ` Saint Germain
2016-06-29  4:25                   ` Chris Murphy
2016-06-29  9:50                     ` Saint Germain
2016-06-29 17:28                       ` Chris Murphy
2016-06-29 18:12                         ` Saint Germain
2016-06-29 18:19                           ` Austin S. Hemmelgarn [this message]
2016-06-29 19:02                             ` Saint Germain
2016-06-29 19:08                               ` Chris Murphy
2016-06-29 19:16                                 ` Saint Germain
2016-06-29 19:23                                   ` Hugo Mills
2016-06-29 23:51                                     ` Saint Germain
2016-06-30  0:24                                       ` Chris Murphy
2016-06-30 21:02                                         ` Saint Germain
2016-06-30  0:19                                   ` Chris Murphy
2016-06-29 17:41                       ` Saint Germain
2016-06-27 23:03       ` Saint Germain
2016-06-27 23:49         ` Chris Murphy

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=16e65a07-03b6-2540-fc96-3538c5bc5c99@gmail.com \
    --to=ahferroin7@gmail.com \
    --cc=linux-btrfs@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).