From: marcin@mejor.pl
To: linux-bcache@vger.kernel.org
Subject: How to create bcachefs?
Date: Fri, 19 Aug 2016 20:07:31 +0200 [thread overview]
Message-ID: <e6d5ceae4a7dd53daf2667e25b76539b@mejor.pl> (raw)
Hi!
I'm spamming here with simple questions because it looks that
documentation doesn't follow current state of bcachefs.
I've upgraded bcache-tools to b0f08fc1e30daafb274181234dae3408fb2eb69b
and linux-bcache to 9c79c00b0d02f0da5e01ad5cd1bf4ae2ce421d5d.
And now...
1. How to create simple bcachefs on one disk, without any cache?
# ./bcache format --meta_replicas=2 /dev/sdd1
Please supply a device
Help displays:
# ./bcache format --help
Usage: bcache format [OPTION]... <list of devices>
Create a new bcache volume from one or more devices
Options:
-C, --cache=dev Format a cache device
-w, --block=size block size
-n, --btree_node=size Btree node size, default 256k
--metadata_csum_type=(none|crc32c|crc64)
Checksum type
--data_csum_type=(none|crc32c|crc64)
Checksum type
--compression_type=(none|gzip)
Compression type
--encrypted enable encryption
--meta_replicas=# number of metadata replicas
--data_replicas=# number of data replicas
--error_action=(continue|readonly|panic)
Action to take on filesystem error
-l, --label=label label
--uuid=uuid filesystem UUID
--fs_size=size Size of filesystem on device
-b, --bucket=size bucket size
-t, --tier=# tier of subsequent devices
--discard Enable discards
-q, --quiet reduce output to errors only
-v, --verbose increase output to include informational
messages
--help display this help and exit
--version output version information and exit
Report bugs to <linux-bcache@vger.kernel.org>
I don't know what is correct syntax to format block device.
2. How to create and mount bcachefs witch cache device?
# ./bcache format --compression_type=lz4 --meta_replicas=2 /dev/sdd1
-C /dev/sde1
UUID: 2cd51dcb-6af3-4e92-8b01-64bac27300b2
Set UUID: fd005c93-26f4-4da3-a991-18630ea37997
version: 6
nbuckets: 20480
block_size: 1
bucket_size: 1024
nr_in_set: 1
nr_this_dev: 0
first_bucket: 3
and what next?
# mount /dev/sdd1 /mnt/test/
# # ls -l /sys/fs/bcache/33802bf3-abe4-4d85-bd44-380c1fa9c3d0/|grep
cache
-r--r--r-- 1 root root 4096 sie 19 20:02 btree_cache_size
lrwxrwxrwx 1 root root 0 sie 19 20:02 cache0 ->
../../../devices/pci0000:00/0000:00:1f.2/ata6/host5/target5:0:0/5:0:0:0/block/sdd/sdd1/bcache
-r--r--r-- 1 root root 4096 sie 19 20:02 cache_available_percent
It looks for me that cache device /dev/sde1 isn't used. How to use
/dev/sde1 as a cache device?
3. Tiering. Just simple: how to?:)
Thanks in advance for tips.
Marcin
next reply other threads:[~2016-08-19 18:14 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-19 18:07 marcin [this message]
2016-08-24 6:52 ` How to create bcachefs? 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
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=e6d5ceae4a7dd53daf2667e25b76539b@mejor.pl \
--to=marcin@mejor.pl \
--cc=linux-bcache@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