From: Kent Overstreet <kent.overstreet@gmail.com>
To: marcin@mejor.pl
Cc: linux-bcache@vger.kernel.org
Subject: Re: How to create bcachefs?
Date: Wed, 24 Aug 2016 15:50:21 -0800 [thread overview]
Message-ID: <20160824235021.xtqva4eb4tomghw6@kmo-pixel> (raw)
In-Reply-To: <f92c1177-565d-47a1-b3ad-1876774003d4@mejor.pl>
On Wed, Aug 24, 2016 at 11:21:02PM +0200, marcin@mejor.pl wrote:
> W dniu 24.08.2016 o 08:52, Kent Overstreet pisze:
> [...]
>
> Hi!
> > Hey, sorry for the long delay, been sick past several days.
>
> I was afraid that I'm asking to easy question:) And I hope everything is
> fine with you now!
>
>
> > The way arguments
> > were passed to bcache format was a holdover from old style make-bcache,
> > and
> > didn't make much sense for bcachefs - -C was used for all devices, and
> > --tier
> > specifies fast devices and slow devices.
> >
> > I finally got around to redoing the option parsing so we don't need the
> > -C
> > argument today - update your bcache tools, and the command you want is
> > now:
> >
> > bcache format --tier 0 /dev/sde1 --tier 1 /dev/sdd1
> >
> > (assuming sde1 is your fast device and sdd1 is your slow device).
>
> Does it means that cache is unavailable and only tiering will be in
> bcachefs?
> And... How to mount tiered FS? When I pass one device in mount I'm getting:
> bcache: bch_open_as_blockdevs() register_cache_set err insufficient devices
you should be able to do
mount -t bcache /dev/sde1:/dev/sdd1 /mnt
or, there's incremental assembly - that's going to be handled by the bcache tool
eventually, but for now you can register each device via
/sys/fs/bcache/register, and then mount one of the block devices.
> > Replication is not yet supported (it's around 90% implemented, but I
> > haven't
> > worked on it in ages and the tests haven't been covering it so you'll
> > likely hit
> > bugs if you try it).
>
> If you tell me how to turn it on I'll try it. In latest bcache-tools
> this option disappeared. Turning on using `echo 2 >
> /sys/fs/bcache/<uid>/options/{data_replicas,metadata_replicas}` doesn't
> work.
Wouldn't be any point, you'd undoubtedly hit bugs that I don't have time to work
on yet. Current priorities are finishing encryption and compression...
> > Compression still isn't _quite_ done, I reverted the accounting until I
> > fix an
> > issue with copygc. You can enable it and nothing will break, but it
> > won't
> > actually let you store more data in your fs than if it was uncompressed.
>
>
> What means option in /sys/fs/..../options/posix_acl? I've got zero value but
> setfacl and getfacl shows that acl works (in theory, I didn't check if ACL
> really works).
hmm, option must be buggered. I'll have a look.
> I also have feature request: it would be nice to see which file (with path)
> has
> checksum error, now it looks like this:
> Aug 24 17:15:23 localhost kernel: [ 4692.929060] bcache (dm-10): IO
> error on dm-10 for checksum error
that's a good idea - though it'd take some plumbing to get a path, and we don't
even always have a path (may have just an inode number). I'll make a note to
have a look.
> I can't help with writing code but I can try to help testing bcachefs. I'm
> especially interested in using:
> - cache
> - tiering
> - compression
> - erasure encoding (I know that it isn't started)
I am thinking about working on replication and erasure coding after I finish
what's currently lined up, erasure coding should be a fun project.
Lots to do...
next prev parent reply other threads:[~2016-08-25 5:20 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-19 18:07 How to create bcachefs? marcin
2016-08-24 6:52 ` Kent Overstreet
2016-08-24 21:21 ` marcin
2016-08-24 23:12 ` Eric Wheeler
2016-08-24 23:52 ` Kent Overstreet
2016-08-24 23:50 ` Kent Overstreet [this message]
2016-08-25 0:03 ` Christopher James Halse Rogers
2016-08-25 9:21 ` Marcin Mirosław
2016-08-25 11:09 ` Christopher James Halse Rogers
2016-08-25 12:11 ` Marcin Mirosław
2016-08-26 1:06 ` Christopher James Halse Rogers
2016-08-26 1:48 ` Eric Wheeler
2016-08-26 8:23 ` Marcin Mirosław
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=20160824235021.xtqva4eb4tomghw6@kmo-pixel \
--to=kent.overstreet@gmail.com \
--cc=linux-bcache@vger.kernel.org \
--cc=marcin@mejor.pl \
/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