Skip to content

Device priorities for new block allocation on filesystem spanning multiple devices #725

Closed
@matthuszagh

Description

@matthuszagh

This is a question. I apologize if it's been asked before, or if this is the wrong place to ask it, but I wasn't able to find an answer elsewhere. If that's the case, please feel free to direct me elsewhere.

In a multi-device filesystem (data single, metadata dup), how does BTRFS handle on which device to allocate a new data block? I seem to recall reading somewhere that it was the device with the largest free space left. Is that correct? Is there a way to give BTRFS a priority of devices, such that it fills up the highest priority device before the next, etc?

I have a desktop computer with 2 very fast NVMe SSD drives and several very large HDDs. Unfortunately, the BTRFS is filling up the HDDs and ignoring the fast SSDs, greatly affecting the performance. Is there a way to resolve this without removing the HDDs from the filesystem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionNot a bug, clarifications, undocumented behaviour

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions