From: Duncan <1i5t5.duncan@cox.net>
To: linux-btrfs@vger.kernel.org
Subject: Re: btrfstune settings
Date: Sun, 28 Aug 2016 08:27:59 +0000 (UTC) [thread overview]
Message-ID: <pan$852e9$bd44e66c$65d119d9$c6922137@cox.net> (raw)
In-Reply-To: fac36170-075c-db45-5aff-afa55bcd9e34@googlemail.com
Oliver Freyermuth posted on Sun, 28 Aug 2016 05:42:39 +0200 as excerpted:
> Dear btrfs experts,
>
> I hope this is the correct place to ask, the wiki and manpages did not
> help me on these questions.
>
> BTRFS has gained extended inode refs, skinny metadata and no-holes quite
> a while ago and these are now the defaults for new mkfs.btrfs. btrfstune
> can activate those features.
>
> However, I miss two things:
> - How do I see on an existing FS which of these features are on?
> btrfstune (it seems) can only "set", but not "get" the feature flags.
Try btrfs-show-super <device>. The incompat_flags section enumerates the
flags that are on (at least with a reasonably new btrfs-progs).
> - Is it worthwhile / recommended / safe to activate those on existing
> FS?
> Are there any steps (e.g. balancing metadata with -musage=0, I'd
> guess) needed to make them become active afterwards?
If they're intended to be changed on an existing filesystem, btrfstune
should allow it, otherwise it doesn't. Node/leaf-size used to default to
sectorsize (4K on x86/amd64), for instance, while now defaulting to 16K,
but can't be changed on an existing filesystem, only at mkfs time, so
that's the only place with the option.
In general it should be safe to activate flags via btrfstune, but since
they'll generally apply only to newly written data, any benefits on a
mature filesystem will be limited. For that reason as well as to get the
benefit of 16K nodesize which you can't except at creation, I recommend
backing up and recreating the filesystem from a fresh mkfs.btrfs.
Since btrfs is considered still stabilizing, having a backup is very
strongly recommended in any case unless the value of the data simply
isn't worth the hassle, and once you have a backup tested, available and
ready to use should it be necessary, blowing the existing filesystem away
and starting with a fresh filesystem created with the options you want
isn't much more difficult and may well be faster than a full balance
anyway. =:^)
--
Duncan - List replies preferred. No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master." Richard Stallman
next prev parent reply other threads:[~2016-08-28 8:44 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-28 3:42 btrfstune settings Oliver Freyermuth
2016-08-28 8:27 ` Duncan [this message]
2016-08-28 13:30 ` Kai Krakow
2016-08-28 16:18 ` Oliver Freyermuth
2016-08-28 17:35 ` Kai Krakow
2016-08-28 18:10 ` Oliver Freyermuth
2016-08-28 18:34 ` Lionel Bouton
2016-08-28 19:06 ` Kai Krakow
2016-08-28 17:41 ` Kai Krakow
2016-09-01 17:14 ` David Sterba
2016-09-01 23:54 ` Oliver Freyermuth
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='pan$852e9$bd44e66c$65d119d9$c6922137@cox.net' \
--to=1i5t5.duncan@cox.net \
--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 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).