linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* "No space left on device" and balance doesn't work
@ 2016-06-01 18:30 MegaBrutal
  2016-06-01 20:30 ` Peter Becker
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: MegaBrutal @ 2016-06-01 18:30 UTC (permalink / raw)
  To: linux-btrfs

Hi all,

I have a 20 GB file system and df says I have about 2,6 GB free space,
yet I can't do anything on the file system because I get "No space
left on device" errors. I read that balance may help to remedy the
situation, but it actually doesn't.


Some data about the FS:


root@ReThinkCentre:~# df -h /
Fájlrendszer                Méret Fogl. Szab. Fo.% Csatol. pont
/dev/mapper/centrevg-rootlv   20G   18G  2,6G  88% /

root@ReThinkCentre:~# btrfs fi show /
Label: 'RootFS'  uuid: 3f002b8d-8a1f-41df-ad05-e3c91d7603fb
        Total devices 1 FS bytes used 15.42GiB
        devid    1 size 20.00GiB used 20.00GiB path /dev/mapper/centrevg-rootlv

root@ReThinkCentre:~# btrfs fi df /
Data, single: total=16.69GiB, used=14.14GiB
System, DUP: total=32.00MiB, used=16.00KiB
Metadata, DUP: total=1.62GiB, used=1.28GiB
GlobalReserve, single: total=352.00MiB, used=0.00B

root@ReThinkCentre:~# btrfs version
btrfs-progs v4.4


This happens when I try to balance:

root@ReThinkCentre:~# btrfs fi balance start -dusage=66 /
Done, had to relocate 0 out of 33 chunks
root@ReThinkCentre:~# btrfs fi balance start -dusage=67 /
ERROR: error during balancing '/': No space left on device
There may be more info in syslog - try dmesg | tail


"dmesg | tail" does not show anything related to this.

It is important to note that the file system currently has 32
snapshots of / at the moment, and snapshots taking up all the free
space is a plausible explanation. Maybe deleting some of the oldest
snapshots or just increasing the file system would help the situation.
However, I'm still interested, if the file system is full, why does df
show there is free space, and how could I show the situation without
having the mentioned options? I actually have an alert set up which
triggers when the FS usage reaches 90%, so then I know I have to
delete some old snapshots. It worked so far, I cleaned the snapshots
at 90%, FS usage fell back, everyone was happy. But now the alert
didn't even trigger because the FS is at 88% usage, so it shouldn't be
full yet.


Best regards and kecske,
MegaBrutal

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2016-08-09 12:56 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-01 18:30 "No space left on device" and balance doesn't work MegaBrutal
2016-06-01 20:30 ` Peter Becker
     [not found] ` <CAEtw4r2hsCd1+bFNcXn_s5jj-8x6qer+x0gLx8wTgNi1=nAXhw@mail.gmail.com>
2016-06-01 21:06   ` MegaBrutal
2016-06-01 22:22     ` Henk Slager
2016-06-02 13:55       ` MegaBrutal
2016-06-02 22:45         ` Henk Slager
2016-06-03  5:51           ` Marc Haber
2016-06-03 12:43           ` Austin S. Hemmelgarn
2016-08-09  9:50             ` MegaBrutal
2016-08-09 11:16               ` Austin S. Hemmelgarn
2016-08-09 12:56                 ` Noah Massey
2016-06-02 12:56 ` Austin S. Hemmelgarn
2016-06-04  6:27   ` Andrei Borzenkov
2016-06-04  7:57     ` Hugo Mills

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).