Do you need a cache to use bcache?
If you are thinking about using bcache later, it is recommended to setup all your slow devices as bcache backing devices without a cache, and you can choose to add a caching device later. See ‘ATTACHING’ section below. The devices show up as:
How to control bcache devices in the Linux kernel?
As well as (with udev): You can control bcache devices through sysfs at /sys/block/bcache /bcache . You can also control them through /sys/fs//bcache/ / . Cache devices are managed as sets; multiple caches per set isn’t supported yet but will allow for mirroring of metadata and dirty data in the future.
How does revert bcache device to regular device?
This will detach the backing device from the cache, so that the cache is no longer used but the drive accessed directly for all reads and writes. If your cache wasn’t in a corrupted state, this would also write back any dirty data from the cache back to the backing device; in your corrupted state you are probably out of luck, though.
How is a bcache device managed in sysfs?
You can control bcache devices through sysfs at /sys/block/bcache /bcache . You can also control them through /sys/fs//bcache/ / . Cache devices are managed as sets; multiple caches per set isn’t supported yet but will allow for mirroring of metadata and dirty data in the future.
Where to find bcache0 in the Linux kernel?
If you’re booting up and your cache device is gone and never coming back, you can force run the backing device: (You need to use /sys/block/sdb (or whatever your backing device is called), not /sys/block/bcache0, because bcache0 doesn’t exist yet. If you’re using a partition, the bcache directory would be at /sys/block/sdb/sdb2/bcache)
What does bcache do when there is an IO error?
Bcache tries to transparently handle IO errors to/from the cache device without affecting normal operation; if it sees too many errors (the threshold is configurable, and defaults to 0) it shuts down the cache device and switches all the backing devices to passthrough mode.