On 2017-10-17 13:58, Cloud Admin wrote:
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?
Ideally, delete them all with a single operation. Internally the delete command uses some numeric trickery together with a balance operation to migrate the data off of the devices being removed. If you do them one at a time, you will end up moving at least some data twice, and thus wasting time. Other than that, there's not much to worry ab out, though keep in mind that deleting devices from an array can take a long time, especially if the array is mostly full.
--
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