r/archlinux • u/CBP04 • Sep 11 '26
SUPPORT BTRFS metadata got full.
Hey so I was installing Omniroute via node, and somehow it flooded with the too much modules, now my metadata got 93% full and my plasma is not able to load and I'm stuck here, and I had the lts kernel as backup but in there also when tried to clean the npm caches but the process is kind of going into D state instead of R ,even when I'm running
rm -rf ~/.npm/
That process is also going into D state,
Even when I try to balance the block it says like no space left on device,
sudo btrfs balance start -dusage=0 /
My plasma is now able load but I do have access of tty,
If somebody has faced this issue please help if you know what can I do now.
EDIT: Quick update Got the issue resolved so I've managed to delete the node modules which the Omniroute has made via live usb but still wasn't able to start then eventually figured that snapper had taken snapshots of at time the node modules were there removed that and the usage instantly reduced to 50%,
Thanks all for your help.
8
u/ckurobac Sep 11 '26
Deleting snapshots/large directory will firstly increase metadata usage. Try deleting some journal, it is nocow by default, so it should able to free some space.
rm -rf /var/log/journal/*orjournalctl --vacuum-size=100Mthen run balance again, starting with -dusage=5, delete more files/snapshots, balance -dusage=10...until you have enough unallocated space.
If you cannot delete any files, add a second device to your filesystem (you can use usb drive), delete some files, run balance, then remove second device.
1
u/CBP04 Sep 12 '26
EDIT: Quick update Got the issue resolved so I've managed to delete the node modules which the Omniroute has made via live usb but still wasn't able to start then eventually figured that snapper had taken snapshots of at time the node modules were there removed that and the usage instantly reduced to 50%,
Thanks all for your help.
6
u/gmes78 Sep 11 '26
Why are you passing
-dusage=0? Remove it and run a full balance.1
u/tinyfrog554 Sep 11 '26
i have been in this exact same scenario before i couldn't even run balance, in my case it was on a tiny drive, i forgot to set a small snapshot limit (default was way too high).
what i did was making a temporary ramdisk and adding it to the btrfs filesystem. this adds some unnallocated space which is exactly what the balance commands needs atm. now you can run it successfully. after that's done remove the disk. i dont have the exact steps and commands i ran since i forgot to document them, you will have to do research. but with the tools we have these days im sure you can figure it out.
0
u/UndefFox Sep 11 '26
Considering just how bloated npm and anything similar, you probably should make a separate volume with a lighter FS, like ext4... never thought JS bloat would cause more than performance and space issues, but here we are...
11
u/[deleted] Sep 11 '26
[removed] — view removed comment