Using LVM’s new cache feature
rwmj.wordpress.com
rwmj.wordpress.com
Multiple writers with some using ftrunc(2) that is the nightmare scenario for me. Would be interesting to do a walk through of considering each disk blowing up and the recovery from that.
In the course of this little recherché I hit upon bcache and dm-cache but found (Debian) user-land to be entirely lacking (`modprobe dm-cache` doesn't raise an eyebrow, though).
Having dm-cache support in LVM -- one of those projects that figure centrally in my personal sysadmin lore -- would be just heavenly.
[0] Balanced Tree FS. Similar in outlook and approach to SUN-now-Oracle's ZFS and -- oh, irony of ironies -- also under the Oracle umbrela.
I've been turning bcache into a full blown filesystem in my spare time. It's working now - it's fast, and the code is _small_ compared to other filesystems.
Not production ready yet and it'll be awhile before I freeze the on disk format, though.
So I'm afraid I haven't yet had time to do proper testing. The benchmarking in the post is next to useless. I will be looking at how virtual machines behave on top of LVM cache (versus on top of an uncached hard disk), but that will take some time.