2016-08-29 05:00:50 +03:00
.TH bcache 8
2014-11-11 05:42:36 +03:00
.SH NAME
2016-08-29 05:00:50 +03:00
bcache \- manage bcache filesystems/devices
2014-11-11 05:42:36 +03:00
.SH SYNOPSIS
2016-08-29 05:00:50 +03:00
.B bcache
2014-11-11 05:42:36 +03:00
[\fI options\fR ]
.B COMMAND
[\fI options\fR ]
.SH COMMANDS
.TP
.BR format
.RS
Format one or a list of devices with bcache data structures. You need to do this before you create a volume.
.RE
.BR register
.RS
Register a list of devices.
.RE
.BR list-cachesets
.RS
List cachesets on this system. This just searches /sys/fs/bcache.
.RE
.BR query-devs
.RS
Gives info about the superblock for a list of devices.
.RE
.BR status
.RS
Finds the status of the most up to date superblock in each tier. Pass in a list of devices.
.RE
.BR stats
.RS
List bcache specific statistics. Use --list to find out exactly what these are. To list stats for a cacheset, just give the cacheset uuid. To target a cache within the cacheset, use the -c option. To get time interval stats, use the hour, day, etc, options.
.RE
.BR probe
.RS
Return UUID if device identified as bcache-formatted.
.PP
Only necessary until support for the bcache superblock is included
in blkid; in the meantime, provides just enough functionality for a udev script
to create the /dev/disk/by-uuid symlink.
.RE
.BR help
.RS
2016-08-29 05:00:50 +03:00
List the bcache commands
2014-11-11 05:42:36 +03:00
.RE
.SH OPTIONS
2016-08-29 05:00:50 +03:00
.SH Options for bcache
2014-11-11 05:42:36 +03:00
.TP
.BR \- -help
.SH Options for format
2016-08-29 05:00:50 +03:00
.SH Global options:
2014-11-11 05:42:36 +03:00
.TP
2016-08-29 05:00:50 +03:00
.BR \- w,\ --block=
block size, in bytes (e.g. 4k)
2014-11-11 05:42:36 +03:00
.TP
2016-08-29 05:00:50 +03:00
.BR \- w,\ --btree_node_size=
btree node size in bytes - default 256k
2014-11-11 05:42:36 +03:00
.TP
2016-08-29 05:00:50 +03:00
.BR \- -metadata_checksum_type=TYPE
2014-11-11 05:42:36 +03:00
.TP
2016-08-29 05:00:50 +03:00
.BR \- -data_checksum_type=TYPE
where TYPE is one of none, crc32c (default), or crc64
2014-11-11 05:42:36 +03:00
.TP
2016-08-29 05:00:50 +03:00
.BR \- -compression_type=TYPE
where TYPE is one of none (default), lz4 or gzip
2014-11-11 05:42:36 +03:00
.TP
2016-08-29 05:00:50 +03:00
.BR \- -encrypted
Enable encryption; passphrase will be prompted for
2014-11-11 05:42:36 +03:00
.TP
2016-08-29 05:00:50 +03:00
.BR \- -error_action=TYPE
where TYPE is one of continue, readonly (default) or panic
2014-11-11 05:42:36 +03:00
.TP
2016-08-29 05:00:50 +03:00
.BR \- l\ --label=LABEL
Create the filesystem with the specified label
2014-11-11 05:42:36 +03:00
.TP
2016-08-29 05:00:50 +03:00
.BR \- -uuid=UUID
Create the filesystem with the specified UUID
2014-11-11 05:42:36 +03:00
.TP
2016-08-29 05:00:50 +03:00
.BR \- -force
Force the filesystem to be created, even if the device already contains a
filesystem
.SH Options that apply to subsequent devices:
2014-11-11 05:42:36 +03:00
.TP
2016-08-29 05:00:50 +03:00
.BR \- -fs_size=SIZE
Create the filesystem using SIZE bytes on the subsequent device
2014-11-11 05:42:36 +03:00
.TP
2016-08-29 05:00:50 +03:00
.BR \- b\ --bucket-size=SIZE
Specifies the bucket size - must be greater than the btree node size
2014-11-11 05:42:36 +03:00
.TP
2016-08-29 05:00:50 +03:00
.BR \- t,\ --tier=INDEX
Specifies the tier of subsequent devices, where INDEX is a small integer and a
smaller index indicates a faster tier - tier 0 being the fastest. Currently only
two tiers are supported.
2014-11-11 05:42:36 +03:00
.TP
.BR \- -discard
2016-08-29 05:00:50 +03:00
Enable discards on subsequent devices
2014-11-11 05:42:36 +03:00
.SH Options for register
.SH Options for list-cachesets
.TP
.BR \- d,\ --dir=
Provide a directory other than /sys/fs/bcache
.SH Options for query-devs
.TP
.BR \- f,\ --force-csum
2016-08-29 05:00:50 +03:00
Enables bcache to going even if the superblock crc is invalid
2014-11-11 05:42:36 +03:00
.SH Options for status
.SH Options for stats
.TP
.BR \- a,\ --all
List all stats and their values for the given device.
.TP
.BR \- l,\ --list
List the names of the different stats for the given device.
.TP
2014-11-19 01:14:13 +03:00
.BR \- u,\ --set=
2014-11-11 05:42:36 +03:00
UUID for the cacheset
.TP
2014-11-19 01:14:13 +03:00
.BR \- d,\ --dev=
UUID for a device within the cacheset. Must pass in the cacheset UUID in order to search for a dev.
.TP
2014-11-11 05:42:36 +03:00
.BR \- c,\ --cache=
Cache number, starts from 0
.TP
.BR \- -five-min-stats
stats accumulated in the last 5 minutes
.TP
.BR \- -hour-stats
stats accumulated in the last hour
.TP
.BR \- -day-stats
stats accumulated in the last day
.TP
.BR \- -total-stats
stats accumulated in total