Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: btrfs frequently running out of space with lots unallocated

  1. #11
    Join Date
    Jan 2014
    Location
    Erlangen
    Posts
    1,186

    Default Re: btrfs frequently running out of space with lots unallocated

    Quote Originally Posted by laen View Post
    In case you're curious, it's still a mess:

    Code:
    Feb 16 12:04:30 thinkpad systemd[1]: Started Balance block groups on a btrfs filesystem.
    Feb 16 12:04:30 thinkpad btrfs-balance.sh[25953]: Before balance of /
    Feb 16 12:04:30 thinkpad btrfs-balance.sh[25953]: Data, single: total=73.00GiB, used=58.86GiB
    Feb 16 12:04:30 thinkpad btrfs-balance.sh[25953]: System, single: total=32.00MiB, used=16.00KiB
    Feb 16 12:04:30 thinkpad btrfs-balance.sh[25953]: Metadata, single: total=1.00GiB, used=910.11MiB
    Feb 16 12:04:30 thinkpad btrfs-balance.sh[25953]: GlobalReserve, single: total=110.73MiB, used=0.00B
    Feb 16 12:04:30 thinkpad btrfs-balance.sh[25953]: Filesystem           Size  Used Avail Use% Mounted on
    Feb 16 12:04:30 thinkpad btrfs-balance.sh[25953]: /dev/mapper/cr_root  347G   65G     0 100% /
    Feb 16 12:04:30 thinkpad btrfs-balance.sh[25953]: Done, had to relocate 0 out of 75 chunks
    Feb 16 12:04:33 thinkpad btrfs-balance.sh[25953]: Dumping filters: flags 0x1, state 0x0, force is off
    Feb 16 12:04:33 thinkpad btrfs-balance.sh[25953]:   DATA (flags 0x2): balancing, usage=5
    Feb 16 12:04:33 thinkpad btrfs-balance.sh[25953]: Done, had to relocate 9 out of 75 chunks
    Feb 16 12:04:34 thinkpad btrfs-balance.sh[25953]: Dumping filters: flags 0x1, state 0x0, force is off
    Feb 16 12:04:34 thinkpad btrfs-balance.sh[25953]:   DATA (flags 0x2): balancing, usage=10
    Feb 16 12:04:34 thinkpad btrfs-balance.sh[25953]: Done, had to relocate 1 out of 66 chunks
    Feb 16 12:04:34 thinkpad btrfs-balance.sh[25953]: Done, had to relocate 0 out of 65 chunks
    Feb 16 12:04:34 thinkpad btrfs-balance.sh[25953]: Dumping filters: flags 0x6, state 0x0, force is off
    Feb 16 12:04:34 thinkpad btrfs-balance.sh[25953]:   METADATA (flags 0x2): balancing, usage=3
    Feb 16 12:04:34 thinkpad btrfs-balance.sh[25953]:   SYSTEM (flags 0x2): balancing, usage=3
    Feb 16 12:04:34 thinkpad btrfs-balance.sh[25953]: Done, had to relocate 1 out of 65 chunks
    Feb 16 12:04:34 thinkpad btrfs-balance.sh[25953]: After balance of /
    Feb 16 12:04:34 thinkpad btrfs-balance.sh[25953]: Data, single: total=63.00GiB, used=58.86GiB
    Feb 16 12:04:34 thinkpad btrfs-balance.sh[25953]: System, single: total=32.00MiB, used=16.00KiB
    Feb 16 12:04:34 thinkpad btrfs-balance.sh[25953]: Metadata, single: total=1.00GiB, used=910.09MiB
    Feb 16 12:04:34 thinkpad btrfs-balance.sh[25953]: GlobalReserve, single: total=110.70MiB, used=0.00B
    Feb 16 12:04:34 thinkpad btrfs-balance.sh[25953]: Filesystem           Size  Used Avail Use% Mounted on
    Feb 16 12:04:34 thinkpad btrfs-balance.sh[25953]: /dev/mapper/cr_root  347G   65G     0 100% /
    Feb 16 12:04:34 thinkpad systemd[1]: btrfs-balance.service: Succeeded.
    I deleted some personal files just to make up enough space for the update. The result was it just runs out of space sooner (at 60 gigs instead of 74).

    After some more snapshot deletions and collecting a few megabytes along the way, the update finally managed to finish. Now running 5.5.2 and hoping this goes away.
    Hm! Did you tinker with LVM?
    AMD Athlon 4850e (2009), openSUSE 13.1, KDE 4, Intel i3-4130 (2014), i7-6700K (2016), i5-8250U (2018), openSUSE Tumbleweed, KDE Plasma 5

  2. #12
    Join Date
    Jun 2015
    Posts
    14

    Talking Re: btrfs frequently running out of space with lots unallocated

    Looks like the newest kernel fixed this. I copied over some large files and those were done without running out of space again. The unallocated space was successfully shrunk as the filesystem worked to accommodate the files.

    Thanks everyone.

  3. #13
    Join Date
    Jan 2014
    Location
    Erlangen
    Posts
    1,186

    Default Detailed Advice

    AMD Athlon 4850e (2009), openSUSE 13.1, KDE 4, Intel i3-4130 (2014), i7-6700K (2016), i5-8250U (2018), openSUSE Tumbleweed, KDE Plasma 5

  4. #14
    Join Date
    Sep 2012
    Posts
    5,318

    Default Re: Detailed Advice

    Quote Originally Posted by karlmistelberger View Post
    This is absolutely unrelated to the issue discussed in this thread. If anything, balancing metadata increased probability to hit this issue.

  5. #15
    Join Date
    Jan 2014
    Location
    Erlangen
    Posts
    1,186

    Default Re: Detailed Advice

    Quote Originally Posted by arvidjaar View Post
    This is absolutely unrelated to the issue discussed in this thread. If anything, balancing metadata increased probability to hit this issue.
    The original poster says: "For the record, a « btrfs balance start -m » apparently fixed it."

    Kernel 5.4 - BTRFS FS shows full with about 600 GB Free ?
    AMD Athlon 4850e (2009), openSUSE 13.1, KDE 4, Intel i3-4130 (2014), i7-6700K (2016), i5-8250U (2018), openSUSE Tumbleweed, KDE Plasma 5

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •