On 2016-08-25 18:32, Gert Menke wrote:
Hi,

On 2016-08-25 20:26, Justin Kilpatrick wrote:

I'm not sure why you want to avoid a balance,
I didn't check, but I imagined it would slow down my rsync significantly.
It will slow it down, but I can't tell you exactly how much (there are too many variables to give a good answer in this case).

Once you start this command all the new data should follow the new rules.
Ah, now that's interesting.
When the balance is running, df shows 4TB free space; when I cancel the
balance, the free space goes back to a few 100GB.
Regular 'df' isn't to be trusted when dealing with BTRFS, the only reason we report anything there is because many things break horribly if we don't.

But if the balancing only happens when the disk would otherwise be idle,
and the mere fact that there is a balance process running will cause the
new data to be written in single mode, I'm all set. I would not even
have to wait for the balance to finish after the rsync is done; I could
just cancel it and unmount the disks. A bit hacky, but in this case
totally acceptable.
The balancing operation runs in the foreground (unless you daemonize it in a new enough btrfs-progs), it isn't restricted to just using idle time, and as explained by Chris Murphy in the other branch of this thread, it's not flipping some binary switch telling the FS to write all new data in the new profile.

Additionally, while running with multiple profiles while not balancing should work, it's pretty much untested, and any number of things may break. Assuming your two disks have similar latency and transfer speed, you're almost certainly better off just converting completely to single mode (which works like raid0, just at the chunk level instead of the block level). Doing so will likely have near zero impact on performance, will also be easier to recover data from if one disk dies, and will avoid the mostly untested situation of running with multiple chunk profiles.

On a slightly separate note, if your doing backups more frequently than once a week, your probably better off just leaving the disks connected and running. Regular load/unload cycles are generally harder on the mechanical components in modern disks than just leaving them running 24/7.
--
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