try this: btrfs fi balance start -musage=0 / btrfs fi balance start -dusage=0 /
btrfs fi balance start -musage=1 / btrfs fi balance start -dusage=1 / btrfs fi balance start -musage=5 / btrfs fi balance start -musage=10 / btrfs fi balance start -musage=20 / btrfs fi balance start -dusage=5 / btrfs fi balance start -dusage=10 / btrfs fi balance start -dusage=20 / 2016-06-01 20:30 GMT+02:00 MegaBrutal <megabru...@gmail.com>: > 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 > -- > To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in > the body of a message to majord...@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html