Skip to content

Inefficient data relocation when removing multiple devices #1038

@frukto

Description

@frukto

I have a btrfs consisting of six devices. I am attempting to remove three devices at once using the following command:

btrfs device remove /dev/sda /dev/sdb /dev/sdc /some/mountpoint

There is enough free space available to complete the operation. From what I observe, btrfs removes the devices one at a time. However, while waiting for sda to be removed, I notice that the usage on sdb and sdc actually increases.

I would expect the command to be smarter and preferentially move data to devices that are not scheduled for removal.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions