From: Duncan <1i5t5.duncan@cox.net>
To: linux-btrfs@vger.kernel.org
Subject: Re: Balancing subvolume on a specific device
Date: Sat, 20 Aug 2016 06:30:11 +0000 (UTC) [thread overview]
Message-ID: <pan$dbf6f$52e9f6f3$42f8cce4$2ebbbbc6@cox.net> (raw)
In-Reply-To: 20160819171734.GJ20440@carfax.org.uk
Hugo Mills posted on Fri, 19 Aug 2016 17:17:34 +0000 as excerpted:
> On Fri, Aug 19, 2016 at 07:09:48PM +0200, Davide Depau wrote:
>> Hello,
>>
>> I have a btrfs filesystem spanning over two drives: an SSD and HDD.
>>
>> Label: 'Android Dev' uuid: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx
>> Total devices 3 FS bytes used 32.08GiB devid 1 size 21.95GiB
>> used 12.00GiB path /dev/sda2 devid 2 size 33.22GiB used 12.01GiB
>> path /dev/sda3 devid 3 size 53.10GiB used 13.01GiB path
>> /dev/sdb2
>>
>> (sda is the SSD, sdb is the HDD)
>>
>> I've got these subvolumes in the filesystem:
>>
>> ID 258 gen 708 top level 5 path cm13.0 ID 259 gen 708 top level 5 path
>> ccache ID 269 gen 708 top level 5 path omni
>>
>> I would like the ccache subvol to always be stored on the SSD, unless
>> no disk space is available. Is that possible?
>
> No, it isn't, sorry.
As Hugo says, no, not currently. Balancing certain content to specific
devices is on the possible projects list (on the wiki), but there's a lot
of stuff on that list compared to the number of developers working on
btrfs, so unless a particular requested feature takes the fancy of either
a developer or someone paying a developer, it's likely to remain on the
list, undone, for quite some time (five years out at least, which is
pretty much as far as software development predictions make sense, since
technology change happens so quickly and sometimes unpredictably).
There's at least three other options to try to get what you mention,
however. FWIW, I'm a gentooer and thus build everything from sources
here, and use ccache myself. What I do is put all my build stuff, the
gentoo git and assorted overlay git trees, ccache, kernel sources, the
binpkg cache, etc, all on a separate "build" btrfs on normal partitions, /
not/ a subvolume. That way it can go wherever I want, and it, along with
the main system (/) and /home, but /not/ my media partition (all of which
are fully independent filesystems on their own partitions, most of them
btrfs raid1 on a parallel set of partitions on a pair of ssds), on ssd.
Works great. =:^)
Another option is btrfs on bcache or dmcache, with the cache on ssd of
course. Depending how you configure it, that should eventually end up
with the hot data on the ssd and the colder data on the spinning rust,
regardless of whether that hot data is ccache or something else.
Finally, it's not an option for me so I've not looked into the details,
but zfs is more mature than btrfs and offers similar features, plus some
btrfs doesn't have yet, minus a few others as it's an earlier
implementation and some of the stuff learned from it was used when
designing btrfs. So you might look into it and see if it meets your
needs.
--
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-20 6:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-19 17:09 Balancing subvolume on a specific device Davide Depau
2016-08-19 17:17 ` Hugo Mills
2016-08-20 6:30 ` Duncan [this message]
2016-09-01 19:45 ` [OT] " Kai Krakow
2016-09-02 10:55 ` Duncan
2016-09-06 12:32 ` Austin S. Hemmelgarn
2016-09-06 17:53 ` [OT] ccache and tmpfs builds Was: " Duncan
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$dbf6f$52e9f6f3$42f8cce4$2ebbbbc6@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).