2 ms·
If you set up a normal L2arc (read cache device) that will cache both data and metadata. However you can configure it to only cache one of the two. Set it to me
by wongarsu 1y ago
If you set up a normal L2arc (read cache device) that will cache both data and metadata. However you can configure it to only cache one of the two. Set it to metadata only and size it appropriately and you have basically a read-only metadata mirror.
If you also want to have fast writes you can get a second SSD and set up a mirrored metadata device (storing metadata on mirrored SSDs, and regular data on whatever the rest of your pool uses)
- Dylan16807 1y agoLast time I stapled l2arc onto a hard drive zfs it was still super slow to do things like ls large directories and the l2arc never filled more than a couple gigabytes. Maybe it works better now?
- Filligree 1y agoIt’s gotten smarter, and among other things no longer erases the cache on reboot. But for that specific case you should use a metadata vdev. Just make sure it’s mirrored!