On Thu, Aug 25, 2016 at 12:16 PM, Gert Menke <g...@menke.ac> wrote:

> However, I know that btrfs can have different raid modes on the same
> filesystem at the same time.

It's incidental right now. It's not something controllable or intended
to have enduring mixed profile block groups.

>So I was hoping I could just tell it to "switch
> to single mode for all new data", but I don't have a clue how to do that.

Such a switch doesn't exist, there's no way to define what files,
directories, or subvolumes, have what profiles.


>I
> *could* rebalance, of course, but is that really necessary?

Yes.

> How does btrfs
> find out which raid mode to use when writing new data?

That's kindof an interesting question. If you were to do 'btrfs
balance start -dconvert=single -mconvert=raid1' and very soon after
that do 'btrfs balance cancel' you'll end up with one or a few new
chunks with those profiles. When data is allocated to those chunks,
they will have those profile characteristics. When data is allocated
to old chunks that are still raid0, it will be raid0. The thing is,
you can't really tell or control what data will be placed in what
chunk. So it's plausible that some new data goes in old raid0 chunk,
and some old data goes in new single/raid1 chunks.


-- 
Chris Murphy
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to