From: Duncan <1i5t5.duncan@cox.net>
To: linux-btrfs@vger.kernel.org
Subject: Re: Data single *and* raid?
Date: Sun, 2 Aug 2015 03:46:17 +0000 (UTC) [thread overview]
Message-ID: <pan$2c3c8$edc30c0$3c253f51$8a661bd4@cox.net> (raw)
In-Reply-To: CAJCQCtQqkUY=oRKFAx-0UaT-87STiDgD-vQ+gknkE5V2SzPb4A@mail.gmail.com
Chris Murphy posted on Sat, 01 Aug 2015 19:14:13 -0600 as excerpted:
> On Sat, Aug 1, 2015 at 6:27 PM, Duncan <1i5t5.duncan@cox.net> wrote:
>
>> 1) If this fs was created with btrfs-progs v4.1.1, get what you need to
>> retrieve off of it immediately, then blow it away and start over, as
>> the thing isn't stable and all data is at risk.
>
> Agreed. But I'd go so far as to say at this point it looks like it's
> wedged itself into a kind of self-induced faux-ENOSPC state because
> there isn't room to allocate more raid5 chunks. So, I think it's stuck
> in any case.
Well, yes and no. If it was setup with progs v4.1.1, save what you can
and blow it away as it's not stable enough to try anything else.
If it was setup with something earlier (not sure about 4.1.0, was it
affected? but 4.0.x and earlier should be fine for setup), however, once
on a new kernel the usual ENOSPC workarounds can be given a try. That
would include a first balance start -dusage=0 -musage=0, and if that
didn't free up at least a gig on a second device, I'd try the old add-a-
device trick and see what happens. (A few GiB thumb drive should work in
a pinch, or even a ramdrive if you're willing to risk loss in the event
of a crash vaporizing everything in memory including the ramdrive.)
After all, even if he didn't know the risk of the still very new raid56
mode before, he does after reading my earlier message, and anything of
value should be backed up before he attempts anything, so at that point,
there's nothing to lose and it's upto him whether he wants to simply blow
away the current setup and start over with either raid1 or (with another
device) raid10, avoiding the current risk of raid56, or blow away and
start over with raid56 again, knowing the risks now, or try to recover
what's there, viewing it not as the easiest way but as practice in
disaster recovery, again, with anything of value backed up so there's
nothing to lose besides the time of fiddling with it and ending up having
to blow away and restart from backups anyway, regardless of how it goes.
> It'd be great to reproduce this with a current kernel and see if it's
> still happening.
Absolutely.
Tho at this point I believe the chances are pretty good it's simply
either that bad 4.1.1 mkfs.btrfs, or an older pre-full-raid56-support
kernel that didn't handle balance to raid56 so well, yet, and that on the
latest userspace and kernel the problem shouldn't reoccur.
But it'd be nice to *KNOW* that, by trying to reproduce, absolutely. He
may well have stumbled upon yet another confirmation of my recommendation
to wait on raid56 unless you're deliberately testing it, and confirmation
thereof would be halfway to getting it fixed, so those who /do/ choose to
wait won't be dealing with it. =:^)
--
Duncan - List replies preferred. No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master." Richard Stallman
next prev parent reply other threads:[~2015-08-02 3:46 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-01 20:09 Data single *and* raid? Hendrik Friedel
2015-08-01 20:24 ` Chris Murphy
2015-08-01 20:32 ` Hugo Mills
2015-08-01 20:44 ` Chris Murphy
2015-08-01 21:45 ` Duncan
2015-08-01 22:26 ` Chris Murphy
2015-08-01 22:34 ` Hugo Mills
2015-08-02 0:27 ` Duncan
2015-08-02 1:14 ` Chris Murphy
2015-08-02 3:46 ` Duncan [this message]
2015-08-02 18:31 ` Chris Murphy
2015-08-02 19:06 ` Hugo Mills
2015-08-02 12:54 ` Hendrik Friedel
2015-08-06 18:57 ` Hendrik Friedel
2015-08-07 1:26 ` Qu Wenruo
2015-08-07 5:16 ` Hendrik Friedel
2015-08-07 6:25 ` Duncan
2015-08-07 8:11 ` Hugo Mills
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='pan$2c3c8$edc30c0$3c253f51$8a661bd4@cox.net' \
--to=1i5t5.duncan@cox.net \
--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 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.