Cloud Admin posted on Tue, 17 Oct 2017 19:58:55 +0200 as excerpted:
> Hi,
> I want to remove two devices from a BTRFS RAID 1 pool. It should be
> enough free space to do it, but what is the best strategie. Remove both
> device in one call 'btrfs dev rem /dev/sda1 /dev/sdb1' (for example) or
> should it be better in two separate calls? What is faster? Are there
> other constraints to think about?
As a general policy, I'd first ensure that I had current backups in case
something goes wrong, unless of course you consider the data trivial
enough not to bother with backups. No sense unnecessarily tempting fate.
=:^\
Then I'd use the two devices in one call remove, because btrfs device
remove has an implicit rebalance that moves chunks off the device being
removed to the other available devices, and a rebalance can take awhile,
so doing two removals at once should go much faster than one at a time.
I'd also suggest that if you use btrfs quota functionality, you disable
it at least while doing the removes/balances, as trying to recalculate
the quotas constantly slows things down considerably, and if you have
lots of subvolume snapshots on the filesystem, I suggest you first delete
as many of those as you can reasonably delete (and turn off any scheduled
snapshotting during the remove/rebalance), as well, because they too can
slow down balances quite a bit.
--
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
--
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