From: Andrei Borzenkov <arvidjaar@gmail.com>
To: Eric Wong <e@80x24.org>, linux-btrfs@vger.kernel.org
Subject: Re: mixing raid1 and raid0?
Date: Sat, 25 Jul 2020 09:10:58 +0300 [thread overview]
Message-ID: <fca00204-0489-bb67-65ea-ca3d9e3d255e@gmail.com> (raw)
In-Reply-To: <20200725055728.GA6238@dcvr>
25.07.2020 09:02, Eric Wong пишет:
> Hey all, I've started using btrfs recently with old HDDs of
> various sizes in a btrfs raid1 pool. It seems pretty good from
> a flexibility and redundancy standpoint.
>
> However, things like temporary files, caches, etc. don't need to
> be raid1, and raid0 might allow me to reduce wear on HDDs; so
> I'd like to make part of it raid0 while keeping most of it raid1.
>
> If my btrfs is mounted as /mnt/btrfs, would the following do
> what I want?
>
> btrfs balance start -dconvert=raid1 -mconvert=raid1 /mnt/btrfs/precious
> btrfs balance start -dconvert=raid0 -mconvert=raid0 /mnt/btrfs/junk
>
> Or should I make a separate FS for temporary and disposable
> raid0 data?
>
> Thanks
>
Balance does not work on logical directory or subvolume level. Even if
it did, btrfs filesystem has only one target profile and it is the last
one used (i.e. the target profile of the last convert). So any new
writes after the last balance command would be using raid0 profile
everywhere.
Different allocation profiles for different subvolumes comes pretty
regular as wish list.
So you in your case you will need separate filesytem.
prev parent reply other threads:[~2020-07-25 6:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-25 6:02 mixing raid1 and raid0? Eric Wong
2020-07-25 6:10 ` Andrei Borzenkov [this message]
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=fca00204-0489-bb67-65ea-ca3d9e3d255e@gmail.com \
--to=arvidjaar@gmail.com \
--cc=e@80x24.org \
--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