From: Roman Mamedov <rm@romanrm.ru>
To: Curtis Jones <curtis.jones@gmail.com>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: btrfs and mdadm raid 6
Date: Mon, 20 Aug 2012 23:06:03 +0600 [thread overview]
Message-ID: <20120820230603.1ba1afca@natsu> (raw)
In-Reply-To: <8AE790DA-04B5-4407-A5FE-D0AC4560B415@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2791 bytes --]
On Mon, 20 Aug 2012 12:22:31 -0400
Curtis Jones <curtis.jones@gmail.com> wrote:
> 1. is btrfs-convert on /dev/md0 stable/reliable/tested/not-a-stupid-thing-to-do?
btrfs-convert does not care on what kind of block device an FS resides, so it's OK.
> 2. based on the reading I've done, resizing btrfs is supported. can you confirm?
Yes, both growing and shrinking.
> 3. there aren't any known compatibility or other issues with running btrfs on top of mdadm (raid 6)
Not that I know of.
But... if we were a year into the future and there was working btrfs RAID6,
then that configuration (btrfs native RAID6 rather than single-device btrfs on
top of mdadm) would provide more resilience, as blocks with failed checksums
could be automatically reconstructed from 'good' data on other devices in the
array.
In the current situation though, btrfs checksums will only tell you that you
lost data due to some corruption underneath, in (unlikely)case that it
happens and mdadm lets it through.
> 4. any other caveats I might want to consider?
1) AFAIK the patch [1] is still not in the mainline, so you'll either have to
include it into your kernels yourself, or you will end up with a truly and
enormous metadata allocation size, if I'm counting correctly on your array with
42 TB of usable space you will have 840GB * 2 = 1700 GB reserved for metadata.
[1] http://comments.gmane.org/gmane.comp.file-systems.btrfs/19200
2) On filesystem converted with btrfs-convert the metadata allocation is
unnecessarily large due to some other, conversion-related reasons; but this
can be fixed with "btrfs filesystem balance -musage=5 /mount/point" (do
several runs increasing the value from 5 to 10, 20 or more, if it fails to
free up a sufficient amount of space). This will defragment metadata and free
up chunks which end up being completely unused (which will be a lot of them),
but only down to the kernel's desired minimum allocation, see point #1.
3) Due to the point #1 and in general for performance reasons, considering
also that you're already running on top of a parity-protected RAID, you might
want to consider switching the metadata profile from DUP to single (i.e. just
one copy of metadata on the device, not two).
"btrfs fi balance start -mconvert=single /mnt/point"
Regarding balance, see https://btrfs.wiki.kernel.org/index.php/Balance_Filters
> I just upgraded from kernel v3.5.1 to v3.5.2 and I have the btrfs-tools (v0.19) compiled straight from git.
You're doing great :)
Also, btw, I hope you have a full backup of everything you care about.
--
With respect,
Roman
~~~~~~~~~~~~~~~~~~~~~~~~~~~
"Stallman had a printer,
with code he could not see.
So he began to tinker,
and set the software free."
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2012-08-20 17:06 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-20 16:22 btrfs and mdadm raid 6 Curtis Jones
2012-08-20 17:06 ` Roman Mamedov [this message]
2012-08-20 22:24 ` Curtis Jones
2012-08-21 1:21 ` Chris Samuel
2012-08-21 14:51 ` David Sterba
2012-08-20 17:09 ` Roman Mamedov
2012-08-21 19:11 ` Jeremy Sanders
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=20120820230603.1ba1afca@natsu \
--to=rm@romanrm.ru \
--cc=curtis.jones@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).