From: Duncan <1i5t5.duncan@cox.net>
To: linux-btrfs@vger.kernel.org
Subject: Re: 4 vol raid5 segfault on device delete
Date: Sat, 17 Aug 2013 04:36:12 +0000 (UTC) [thread overview]
Message-ID: <pan$a11a$1aa76c8c$8a111eb$1e88a99e@cox.net> (raw)
In-Reply-To: CAPidFuhbjxYUqjLV_8tCCVX6aSNwZ1qJGCZvnSPx8cShGCrQvA@mail.gmail. com
Craig Johnson posted on Fri, 16 Aug 2013 11:50:59 -0500 as excerpted:
> I have a 4 device volume with raid5 - trying to remove one of the
> devices (plenty of free space) and I get an almost immediate segfault.
> Scrub shows no errors, repair show space cache invalid but nothing
> else (I remounted with clear cache to be safe). Lots of corrupt on bdev
> (for 3 out of 4 drives), but I have no file access issues that I know
> of. Thanks!
Last I knew (kernel 3.10, where it was introduced, but I haven't seen any
suggestion that 3.11 fixes all the problems yet), btrfs raid5/6 wasn't
yet ready for anything like real use yet -- the all-OK code was there,
but it couldn't yet cope with devices disappearing -- recreating the
missing content from the checksums didn't yet work.
So "an almost immediate segfault" might be expected if you actually
remove a device from a btrfs raid5/6, because only the all-OK code is
actually there, it's writing the checksums but it isn't prepared to
actually use them yet.
Btrfs raid0/1/10 should be usable, and /reasonably/ stable (for a
filesystem still under development with bugs actively being fixed with
each kernel release, that is), however (tho raid1 actually means two-way-
mirror, no matter the number of devices).
FWIW, I'm using btrfs raid1 here, but I have backups both to a second
btrfs raid1 and to reiserfs (my previous filesystem and what I still use
on "spinning rust, but it's not suitable for ssds, so I use btrfs on
them), because btrfs IS still experimental.
--
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 parent reply other threads:[~2013-08-17 4:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAPidFuhbjxYUqjLV_8tCCVX6aSNwZ1qJGCZvnSPx8cShGCrQvA@mail.gmail. com>
2013-08-17 4:36 ` Duncan [this message]
2013-08-16 16:50 4 vol raid5 segfault on device delete Craig Johnson
2013-08-17 12:05 ` Chris Mason
2013-08-17 12:24 ` Craig Johnson
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$a11a$1aa76c8c$8a111eb$1e88a99e@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 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).