3 ms·
I feel like I am missing a step. Do they write to md1 and read from md0? Or do they read from md1, and under the covers the read is likely fulfilled by md0?
by PeterWhittaker 4y ago
I feel like I am missing a step. Do they write to md1 and read from md0? Or do they read from md1, and under the covers the read is likely fulfilled by md0?
- ReactiveJelly 4y agoI think write-through cache means they always write to both, but they try to fulfill reads using the faster device. https://en.wikipedia.org/wiki/Write_through_cache#Writing_policies https://en.wikipedia.org/wiki/Write_through_cache#Writing_po... With a write-through cache, writes are slow, but the cache is never stale. With write-back, writes can be faster, but the caches can be incoherent. I have LVM2 set up to use my SSD as a cache for my spinner. I think it's write-through mode. Maybe.
- abrookewood 4y agoThey read from md1, which will service all requests from md0 unless it is unavailable in which case they use sdb.