From: Duncan <1i5t5.duncan@cox.net>
To: linux-btrfs@vger.kernel.org
Subject: Re: Understanding BTRFS storage
Date: Thu, 27 Aug 2015 02:58:13 +0000 (UTC) [thread overview]
Message-ID: <pan$7fd63$2b2fd6ee$53e6fc05$7a0aab72@cox.net> (raw)
In-Reply-To: 55DDAB1C.90406@gmail.com
Austin S Hemmelgarn posted on Wed, 26 Aug 2015 08:03:40 -0400 as
excerpted:
> On 2015-08-26 07:50, Roman Mamedov wrote:
>> On Wed, 26 Aug 2015 10:56:03 +0200 George Duffield
>> <forumscollective@gmail.com> wrote:
>>
>>> I'm looking to switch from a 5x3TB mdadm raid5 array to a Btrfs based
>>> solution that will involve duplicating a data store on a second
>>> machine for backup purposes (the machine is only powered up for
>>> backups).
>>
>> What do you want to achieve by switching? As Btrfs RAID5/6 is not safe
>> yet, do you also plan to migrate to RAID10, losing in storage
>> efficiency?
>>
>> Why not use Btrfs in single-device mode on top of your mdadm RAID5/6?
>> Can even migrate without moving any data if you currently use Ext4, as
>> it can be converted to Btrfs in-place.
Someone (IIRC it was Austin H) posted what I thought was an extremely
good setup, a few weeks ago. Create two (or more) mdraid0s, and put
btrfs raid1 (or raid5/6 when it's a bit more mature, I've been
recommending waiting until 4.4 and see what the on-list reports for it
look like then) on top. The btrfs raid on top lets you use btrfs' data
integrity features, while the mdraid0s beneath help counteract the fact
that btrfs isn't well optimized for speed yet, the way mdraid has been.
And the btrfs raid on top means all is not lost with a device going bad
in the mdraid0, as would normally be the case, since the other raid0(s),
functioning as the remaining btrfs devices, let you rebuild the missing
btrfs device, by recreating the missing raid0.
Normally, that sort of raid01 is discouraged in favor of raid10, with
raid1 at the lower level and raid0 on top, for more efficient rebuilds,
but btrfs' data integrity features change that story entirely. =:^)
> As of right now, btrfs-convert does not work reliably or safely. I
> would strongly advise against using it unless you are trying to help get
> it working again.
Seconded. Better to use your existing ext4 as a backup, which you should
have anyway if you value your data, and copy the data from that ext4
"backup" to the new btrfs you created with mkfs.btrfs using your
preferred options. That leaves the existing ext4 in place /as/ a backup,
while starting with a fresh and clean btrfs, setup with exactly the
options you want.
--
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-27 2:58 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-26 8:56 Understanding BTRFS storage George Duffield
2015-08-26 11:41 ` Austin S Hemmelgarn
2015-08-26 11:50 ` Hugo Mills
2015-08-26 11:50 ` Roman Mamedov
2015-08-26 12:03 ` Austin S Hemmelgarn
2015-08-27 2:58 ` Duncan [this message]
2015-08-27 12:01 ` Austin S Hemmelgarn
2015-08-28 9:47 ` Duncan
2015-08-28 12:54 ` Austin S Hemmelgarn
2015-08-28 8:50 ` George Duffield
2015-08-28 9:35 ` Hugo Mills
2015-08-28 15:42 ` Chris Murphy
2015-08-28 17:11 ` Austin S Hemmelgarn
2015-08-29 8:52 ` George Duffield
2015-08-29 22:28 ` Chris Murphy
2015-09-02 5:01 ` Russell Coker
2015-08-28 9:46 ` Roman Mamedov
2015-08-26 11:50 ` Duncan
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$7fd63$2b2fd6ee$53e6fc05$7a0aab72@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).