All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lionel Bouton <lionel-subscription@bouton.name>
To: Btrfs BTRFS <linux-btrfs@vger.kernel.org>
Subject: Auto-rebalancing script
Date: Sun, 14 Feb 2016 22:03:14 +0100	[thread overview]
Message-ID: <56C0EB92.8050102@bouton.name> (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

                 reply	other threads:[~2016-02-14 21:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56C0EB92.8050102@bouton.name \
    --to=lionel-subscription@bouton.name \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.