Skip to content

Irrelevant extents are not deleted #1120

Description

@DenisVorobyov74

Hi! There is an Ubuntu and a partition with a BTRFS file system, which contains a *.mdf file. From this "template" file, reflink files (cp -a --reflink=always) are created for new databases (used for development).
Initially, the template file weighed approximately 252GB. Periodically, transaction log files from the product database are loaded into the template database using MS SQL. Naturally, the size increases. After three weeks, I deleted all the reflink files (leaving only one template *.mdf file) and used the command "btrfs filesystem du –s" to check the current size. The size remained the same (252GB), but when I used the command "sudo btrfs filesystem usage –T", the "Used" section showed 283GB.
How can I reduce the occupied space to 252GB?
P.S. The *.ldf file is located in another EXT4 partition...

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions