Skip to contentSkip to conversation

Auto-rebalancing script

DISCUSSION Lionel Bouton 1 participant 1 message Feb 14, 2016 Btrfs file system

lore
Share & tools
lore
#0 lore raw

Hi,

I'm using this Ruby script to maintain my BTRFS filesystems and try to avoid them getting in a position where they can't allocate space even though there is still plenty of it.

http://pastebin.com/39567Dun

It seems to work well (it maintains dozens of BTRFS filesystems, running balance on them on occasions and avoiding too much I/O stress if any most of the time) but there might be bugs or inefficiencies so I publish it in case it can be useful to others or benefit from criticism.

Lionel