You are not logged in.

#1 2012-09-27 07:43:05

zenlord
Member
From: Belgium
Registered: 2006-05-24
Posts: 1,209
Website

Errors because no free space on / ? [BTRFS]

Hi,

Two weeks ago I reinstalled my pc from scratch. Systemd all the way. The pc doubles as a desktop pc and mediaserver, and everything worked as planned.

Yesterday I installed mkvtoolnix and used it to strip some audio channels from a .mkv. After that, I used packer (AUR installer) to install the faenza and faience icon set. The faenza icon set installed correctly, but the faience icon set did not install because the downloaded package could not be expanded.

This could have two causes:
1. There is no space left on the device.
2. The device is mounted without write-privileges.

I checked both:
1. with 'df -h' -> I have at least 2GB free on every partitition (NOTE: there is my 'media'-partition that is listed as 100% used, but it has 6GB out of 996GB free...)
2. with 'mount -a -o rw' -> /etc/mtab shows that all are mounted rw

This didn't help: pacman refused to install complaining it could not write any file inside the package

I rebooted to make sure it's not a problem with a temporary folder that had been flooded, and now gnome-session refuses to start. X starts, but Gnome/gdm gives me the sad faced computer that something has gone wrong. I can work in the console and checking both hypotheses results in the same conclusion: I have plenty space left and the (relevant) partitions are all mounted 'rw'.

Help?

/EDIT: more info:
* My rootfs is btrfs and systemd warns me that there is no fsck.btrfs, but also that I can safely ignore that warning
* gnome-session complains about I/O-errors when writing to /usr/share
* My SSD is 1.5 years old and I have never had problems before.

Last edited by zenlord (2012-09-27 08:00:41)

Offline

#2 2012-09-27 07:57:06

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: Errors because no free space on / ? [BTRFS]

Hmm btrfs, maybe you should include that in the topic title...


ᶘ ᵒᴥᵒᶅ

Offline

#3 2012-09-27 08:01:00

zenlord
Member
From: Belgium
Registered: 2006-05-24
Posts: 1,209
Website

Re: Errors because no free space on / ? [BTRFS]

litemotiv wrote:

Hmm btrfs, maybe you should include that in the topic title...

Done...

Offline

#4 2012-09-27 08:03:12

cybertorture
Member
Registered: 2010-05-05
Posts: 338

Re: Errors because no free space on / ? [BTRFS]

btrfs is copy-on-write filesystem and it "lie" to tools like df about space used, it have its own util if my memory serves me rite its "btrfs df" or "btrfsctl df"


O' rly ? Ya rly Oo

Offline

#5 2012-09-27 08:53:28

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 5,243

Re: Errors because no free space on / ? [BTRFS]

^Close, it's:

btrfs filesystem df /

https://btrfs.wiki.kernel.org/index.php … into_it.21


Sakura:-
Mobo: ASUS P8Z77-V PRO // Processor: Intel Core i7-3770K 3.4GHz // GFX: nVidia GeForce GTX 970 Ti // RAM: 32GB (4x 8GB) Corsair DDR3 (@ 2133MHz) // Storage: 1x 3TB Seagate SATAII 5x 1TB Samsung SATAII, 2x 120GB Corsair SSD

Offline

#6 2012-09-27 09:51:24

cybertorture
Member
Registered: 2010-05-05
Posts: 338

Re: Errors because no free space on / ? [BTRFS]

WorMzy wrote:

Oh yes, thanks for correction smile


O' rly ? Ya rly Oo

Offline

#7 2012-09-27 12:35:03

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: Errors because no free space on / ? [BTRFS]

$ btrfs filesystem df /media/eceac11a-a960-4150-913b-3ab1025fb349/
Data: total=1.99GB, used=1.00GB
System, DUP: total=8.00MB, used=4.00KB
System: total=4.00MB, used=0.00
Metadata, DUP: total=506.62MB, used=85.79MB
Metadata: total=8.00MB, used=0.00

What does it even mean? Dolphin sees it as 1.4 GiB, Nautilus as either 1.6 GB or 2.2 GB. Wut??


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#8 2012-09-27 12:57:09

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 5,243

Re: Errors because no free space on / ? [BTRFS]

DSpider wrote:
$ btrfs filesystem df /media/eceac11a-a960-4150-913b-3ab1025fb349/
Data: total=1.99GB, used=1.00GB
System, DUP: total=8.00MB, used=4.00KB
System: total=4.00MB, used=0.00
Metadata, DUP: total=506.62MB, used=85.79MB
Metadata: total=8.00MB, used=0.00

What does it even mean?

It's explained on the btrfs wiki page I linked, but yeah, I don't think it's as clear as it should be.

First value is data allocation, second value is data usage.

Here's mine for comparison:

wormzy@sakura[pts/1]~$ sudo btrfs fi show /dev/sda1
Label: 'Arch64-btrfs'  uuid: 29034ff6-d2bf-469e-8c0e-82b701ee87d9
        Total devices 2 FS bytes used 3.98GB
        devid    1 size 20.00GB used 12.04GB path /dev/sda1
        devid    2 size 20.00GB used 12.03GB path /dev/sdb1

wormzy@sakura[pts/1]~$ /bin/df -h /
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1        40G  8.0G   31G  21% /

wormzy@sakura[pts/1]~$ btrfs fi df /                                                                
Data, RAID1: total=11.00GB, used=3.78GB
System, RAID1: total=32.00MB, used=4.00KB
System: total=4.00MB, used=0.00
Metadata, RAID1: total=1.00GB, used=209.53MB

df says I'm using 8GB and have 31GB free. But since this is two 20GB partitions in RAID1, I don't have that much free space at all. btrfs reports that I've used 3.78GB of space with data, and has allocated 11GB for that (for now), 4KB on system data (information about the btrfs filesystem, I assume), and 209.53MB on Metadata (out of 1GB allocated). There's 8GB of unallocated space left in reserve, so if I fill up all my Metadata allotment, it'll get increased to 2GB. Likewise, if I fill up my Data allotment, that will get increased.

As the wiki states:

So, in general, it is impossible to give an accurate estimate of the amount of free space on any btrfs filesystem. Yes, this sucks.

But it should be possible to figure out where you stand from what I've just explained.


Sakura:-
Mobo: ASUS P8Z77-V PRO // Processor: Intel Core i7-3770K 3.4GHz // GFX: nVidia GeForce GTX 970 Ti // RAM: 32GB (4x 8GB) Corsair DDR3 (@ 2133MHz) // Storage: 1x 3TB Seagate SATAII 5x 1TB Samsung SATAII, 2x 120GB Corsair SSD

Offline

#9 2012-09-28 07:39:30

zenlord
Member
From: Belgium
Registered: 2006-05-24
Posts: 1,209
Website

Re: Errors because no free space on / ? [BTRFS]

Yesterday I quickly issued a 'btrfs fi df /' only to find out that it showed I have around the same free space as with a regular 'df /'. I didn't have time to test more extensively, but if btrfs is the culprit, I might change back to ext4.

I was very curious for btrfs, but if not knowing if I have free space on / is a known problem, then I guess it is not (yet) ready for primetime.

Offline

#10 2012-09-28 08:47:18

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: Errors because no free space on / ? [BTRFS]

Bah, forget what I said. Nautilus is being a little bitch right now and showing in GB instead of GiB (a 700 MiB .avi shows up as 733 MB).

And to top it off, I mounted the partition with:

# mount -o compress=lzo /dev/sdc1 /mnt

So of course it may not display it as accurately as it could.

Forget I said anything.


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#11 2012-10-24 22:10:20

qiuwei
Member
Registered: 2009-12-18
Posts: 245

Re: Errors because no free space on / ? [BTRFS]

zenlord wrote:

Hi,

Two weeks ago I reinstalled my pc from scratch. Systemd all the way. The pc doubles as a desktop pc and mediaserver, and everything worked as planned.

Yesterday I installed mkvtoolnix and used it to strip some audio channels from a .mkv. After that, I used packer (AUR installer) to install the faenza and faience icon set. The faenza icon set installed correctly, but the faience icon set did not install because the downloaded package could not be expanded.

This could have two causes:
1. There is no space left on the device.
2. The device is mounted without write-privileges.

I checked both:
1. with 'df -h' -> I have at least 2GB free on every partitition (NOTE: there is my 'media'-partition that is listed as 100% used, but it has 6GB out of 996GB free...)
2. with 'mount -a -o rw' -> /etc/mtab shows that all are mounted rw

This didn't help: pacman refused to install complaining it could not write any file inside the package

I rebooted to make sure it's not a problem with a temporary folder that had been flooded, and now gnome-session refuses to start. X starts, but Gnome/gdm gives me the sad faced computer that something has gone wrong. I can work in the console and checking both hypotheses results in the same conclusion: I have plenty space left and the (relevant) partitions are all mounted 'rw'.

Help?

/EDIT: more info:
* My rootfs is btrfs and systemd warns me that there is no fsck.btrfs, but also that I can safely ignore that warning
* gnome-session complains about I/O-errors when writing to /usr/share
* My SSD is 1.5 years old and I have never had problems before.

Hi, it's because the metadata in btrfs takes up all of your 2GB.
Btrfs is claimed to be clever enough to allocate inodes dynamically but actually it's not the case.
Try to run 

btrfs filesystem balance /

Btrfs is far from stable. Today I just encountered another strange problem of btrfs. I can't delete an empty directory even with

rm -rf foo

Last edited by qiuwei (2012-10-24 22:10:42)

Offline

#12 2012-10-24 22:36:18

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 5,243

Re: Errors because no free space on / ? [BTRFS]

qiuwei wrote:

I can't delete an empty directory even with

rm -rf foo
# btrfs subvol del foo

?

Last edited by WorMzy (2012-10-24 22:36:38)


Sakura:-
Mobo: ASUS P8Z77-V PRO // Processor: Intel Core i7-3770K 3.4GHz // GFX: nVidia GeForce GTX 970 Ti // RAM: 32GB (4x 8GB) Corsair DDR3 (@ 2133MHz) // Storage: 1x 3TB Seagate SATAII 5x 1TB Samsung SATAII, 2x 120GB Corsair SSD

Offline

#13 2012-10-24 23:12:32

Roken
Member
From: UK
Registered: 2012-01-16
Posts: 656

Re: Errors because no free space on / ? [BTRFS]

I have to admit, having flirted with btrfs, I'm back on ext4. btrfs shows a lot of promise, but is not ready for production use yet. Recovery and reporting are still not even close to stable for me (I lost an entire install because of a relatively simple FS problem that btrfs couldn't fix, though similar issues on mature filesystems would have recovered with no effort). Fortunately, I had a full backup, but it put me off btrfs until the recovery tools at the very least are in place.


[img=Speedtest]http://www.speedtest.net/my-result/5145583518[/img]

Nvidia GTX 670 2Gb, AMD Phenom II X4 (965BE) @ 3.6 Ghz (Overclocked) 8GB RAM
Linux user #545703

Offline

Board footer

Powered by FluxBB