Say I have some partitions; one on a SATA drive and one on an SSD. I want to create a "virtual" hybrid disk. Is this possible?
|
bchache might be what you are looking for. It can act as write through or write back cache. ZFS and Btrfs also have features to put more often used blocks on flash storage. |
||||
|
|
|
There is flashcache. It is used by Facebook to accelerate DB-storage systems. I haven't tried it yet, so your mileage may vary. |
||||
|
|
|
If you have a set of files for which you need low latency, you can establish a RAID-1 volume that mirrors the SSD content on a hard disk. Declare the hard disk component as “write-mostly”, so that the SSD will be favored when reading. For example, if
|
|||
|
|
Since Linux 3.9 dm-cache has been merged into the mainline tree. As per the documentation, it's specifically designed for this purpose.
It will also provide write caching to some extend:
About the virtual hybrid disk you'd like to see:
In other words, the dm-stack lets you use any block device/partition to become a single cached virtual disk as a storage device, just like a |
|||
|
|