SUSE Support

Here When You Need Us

btrfs - No space left on device

This document (7018362) is provided subject to the disclaimer at the end of this document.

Environment


SUSE Linux Enterprise Server 12 Service Pack 1 (SLES 12 SP1)

Situation

The device shows less space used on total while on device all space is used:
btrfs fi show /
Label: none  uuid: 57c03625-0299-4173-8cf0-c30338e89798
        Total devices 1 FS bytes used 5.46GiB
        devid    1 size 7.03GiB used 7.03GiB path /dev/<btrfs-device>
Also command "df " shows free space.

Resolution

Boot into rescue system:
mount /dev/<btrfs-device> /mnt

btrfs balance start /mnt/fulldisk
If there is not enough space to balance add an empty disk to btrfs:
btrfs device add /dev/<empty-disk> /mnt

btrfs balance start /mnt
Btrfs filesystem is raid based. To be able to remove second disk again remove raid configuration, otherwise you would see message like:
error removing the device '/dev/<empty-device>' - unable to go below two devices on raid1
run:
btrfs balance start -f -dconvert=single -mconvert=single /mnt

Afterwards the btrfs should show free disk space again:
btrfs fi show /
Label: none  uuid: 57c03625-0299-4173-8cf0-c30338e89798
        Total devices 1 FS bytes used 5.46GiB
        devid    1 size 7.03GiB used 6.34GiB path /dev/<btrfs-device>

Cause

Meta data has exhausted available space.

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7018362
  • Creation Date: 06-Dec-2016
  • Modified Date:07-Jun-2022
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.