Escape from BCacheFS
Escape from BCacheFS
For a short moment after it was added to the kernel, it seemed like there was a good chance of BcacheFS becoming an institution within the Linux ecosystem. A new filesystem with built-in multi-drive prioritized caching, replicas, encryption, subvolumes, the works. Anyone paying attention to the saga knows by now that this is not how things turned out, and with the release of Linux 6.18, BcacheFS was stripped out completely. BcacheFS still lives as an independently maintained project, an can be installed though the DKMS system, but this is a bit contrived even for my tastes.
While BcacheFS and Linux were still in the honeymoon phase in 2023, I decided to jump in with both feet. Today my main system runs a BcacheFS cluster composed of two 6TB hard disks and a 2TB NVMe. This created a >12TiB volume which transparently prioritizes the most frequently accessed files to the NVMe, while allowing me to set replication parameters on a per-directory basis. Aside from the nightmare of configuring the thing to boot, the experience has been stellar. Unfortunately, this is the end of the road. I'll be switching back to a more "conventional" LVM-based setup. I don't consider the potential situation where I need to compile out-of-tree kernel modules on a recovery USB to simply chroot into my system to be workable.
So today I will spend the day doing the whole hermet crab shell exchange with my files as I take the first drive from the cluster offline, reformat it, move files from the rest of the cluster to it, take another drive offline, etc. Wish me luck.