Results 1 to 4 of 4

Thread: Btrfs filesystem leaking free space?

  1. #1
    Join Date
    Dec 2009
    Beans
    19

    Question Btrfs filesystem leaking free space?

    Dear all,

    My free space is lower than my total space minus my used space, as shown by "df -h"'
    Code:
    root@ubuntu:~# df -h
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/sda5              16G  9.5G  1.8G  85% /media/cf55cf06-7622-4e8c-89d4-3ff3276a3a4e
    16-9.5=6.5, not 1.8!

    I tried to use the resize2fs command, it does not work (both when mounted and not):
    Code:
    root@ubuntu:~# resize2fs /dev/sda5
    resize2fs 1.41.14 (22-Dec-2010)
    resize2fs: Device or resource busy while trying to open /dev/sda5
    Couldn't find valid filesystem superblock.
    Then btrfsctl -r max'
    Code:
    root@ubuntu:~# btrfsctl -r max /dev/sda5
    ioctl:: Inappropriate ioctl for device
    btrfs-show'
    Code:
    root@ubuntu:~# btrfs filesystem show /dev/sda5
    failed to read /dev/sr0
    Label: none  uuid: cf55cf06-7622-4e8c-89d4-3ff3276a3a4e
        Total devices 1 FS bytes used 9.02GB
        devid    1 size 15.32GB used 15.32GB path /dev/sda5
    
    Btrfs Btrfs v0.19
    sync
    Code:
    root@ubuntu:~# btrfs filesystem sync /media/cf55cf06-7622-4e8c-89d4-3ff3276a3a4e
    FSSync '/media/cf55cf06-7622-4e8c-89d4-3ff3276a3a4e'
    de
    Code:
    root@ubuntu:~# btrfs filesystem df /media/cf55cf06-7622-4e8c-89d4-3ff3276a3a4e
    Data: total=10.29GB, used=8.57GB
    System, DUP: total=8.00MB, used=4.00KB
    System: total=4.00MB, used=0.00
    Metadata, DUP: total=2.50GB, used=460.41MB
    Metadata: total=8.00MB, used=0.00
    resize max
    Code:
    root@ubuntu:~# btrfs filesystem resize max /media/cf55cf06-7622-4e8c-89d4-3ff3276a3a4e
    Resize '/media/cf55cf06-7622-4e8c-89d4-3ff3276a3a4e' of 'max'
    ERROR: unable to resize '/media/cf55cf06-7622-4e8c-89d4-3ff3276a3a4e'
    
    root@ubuntu:~# btrfs filesystem resize max /dev/sda5
    Resize '/dev/sda5' of 'max'
    ERROR: unable to resize '/dev/sda5'
    Any idea how to retrieve the 4.7G missing?

  2. #2
    Join Date
    Oct 2011
    Beans
    1

    Re: Btrfs filesystem leaking free space?

    Hi,

    try this:

    Code:
    btrfs filesystem balance /media/cf55cf06-7622-4e8c-89d4-3ff3276a3a4e
    Hope I could help you.

  3. #3
    Join Date
    Aug 2007
    Location
    idaho
    Beans
    394
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Btrfs filesystem leaking free space?

    try
    Code:
    sudo btrfs filesystem defrag /dev/sda5
    and make sure it is not mounted either.
    If Ubuntu had 31 flavors then we could call it Baskin' Ubuntu.

  4. #4
    Join Date
    Aug 2007
    Location
    idaho
    Beans
    394
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Btrfs filesystem leaking free space?

    but you have to be in a tty so type Ctrl+Alt+F2.

    then sudo unmount /dev/sda5
    If Ubuntu had 31 flavors then we could call it Baskin' Ubuntu.

Tags for this Thread

Bookmarks

Posting Permissions

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