Assume a multi-device btrfs with data profile single and metadata profile mirrored. The first disk is almost full. The second disk is large enough to hold all data of the whole filesystem.
The first disk needs replacement - is there a way to drain the data from the first disk, like e.g. some btrfs balance filter?
There is devid=1
to select data of the first disk only, but how to tell btrf balance
to shift all that data to the second disk?
To remove a device and have its contents transferred to the remaining devices, you can use btrfs device remove ...
.
To replace a device you can use btrfs replace ...
. Afterwards you may need to btrfs filesystem resize ...
.