You are not logged in.

#1 2014-02-17 17:27:08

addisonamiri
Member
From: United States
Registered: 2013-05-17
Posts: 8

BTRFS Free Space Problems

I've had an arch install running for a few months now and I just ran out of free space. I installed it with a btrfs filesystem on the root of the drive (without a partition table). I'm not too sure where my free space went though. I was hoping someone could explain the output of the btrfs fi show utility. Right now I'm getting this...

Label: btrfs_ssd  uuid: 9d91f9a5-298d-490f-b5d3-b1bf42e31c00
	Total devices 1 FS bytes used 316.35GiB
	devid    1 size 476.94GiB used 474.92GiB path /dev/sda

I'm not sure why my device has more used space than my filesystem. I have no snapshots saved anymore and I ran a scrub and a balance and nothing's helped. The drive is a SSD and it's being mounted with the options in the fstab

rw,noatime,compress=lzo,ssd,discard,autodefrag,inode_cache

I have 3 subvolumes that are home, root and var and all three are mounted with these parameters. Any help is appreciated.

Last edited by addisonamiri (2014-02-17 17:27:22)

Offline

#2 2014-02-17 17:34:57

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: BTRFS Free Space Problems

Can you post the output of

# btrfs fi df /

Last edited by WorMzy (2014-02-17 17:40:01)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2014-02-17 17:40:00

addisonamiri
Member
From: United States
Registered: 2013-05-17
Posts: 8

Re: BTRFS Free Space Problems

Data, single: total=471.90GiB, used=314.99GiB
System, DUP: total=8.00MiB, used=60.00KiB
Metadata, DUP: total=1.50GiB, used=674.33MiB

Any idea what's going on?

Offline

#4 2014-02-17 17:52:29

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: BTRFS Free Space Problems

No yet, though there's been a few reports of this on the mailing list recently.

Try creating an empty  file,

# touch /file

If it fails, post the end of your dmesg.

dmesg | tail

Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2014-02-17 18:02:07

addisonamiri
Member
From: United States
Registered: 2013-05-17
Posts: 8

Re: BTRFS Free Space Problems

Nope. Creating an empty file goes through fine.

Offline

#6 2014-02-17 18:16:57

addisonamiri
Member
From: United States
Registered: 2013-05-17
Posts: 8

Re: BTRFS Free Space Problems

I just tried to run a defrag and after a bit I got this error:

ERROR: defrag range ioctl not supported in this kernel, please try without any options.

Any chance it's related?

Offline

#7 2014-02-17 18:17:04

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: BTRFS Free Space Problems

Edit: not sure about that message, I can find a couple of mentions of it on the mailing list, but no real explanation about what it means. It might be harmless, but you should probably ask on the mailing list to make sure. (https://btrfs.wiki.kernel.org/index.php … iling_list)

I was going to suggest mounting with clear_cache, but make sure you read up on it beforehand, as it does come with a caveat: https://btrfs.wiki.kernel.org/index.php/Mount_options

Last edited by WorMzy (2014-02-17 18:25:50)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB