HDD cache

adam23450

Contributor
Joined
Feb 19, 2020
Messages
142
Can I assign an SSD to serve as a cache for several drives in several pools? Is this one cache per pool?
 

c77dk

Patron
Joined
Nov 27, 2019
Messages
468
What do you mean by cache? slog? (not a cache) or l2arc ?

You should be able to split the SSD and use it in separate pools - but check the forums whether this is a recommended way to go. AFAIK it depends highly on both the usage pattern and not least what SSD we're talking about, and how it's connected.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
It can't be done in the GUI, but there are some posts detailing how to do it in CLI... you need to partition the SSD(s) and then hit the desired pool with zpool add poolname cache gptid/.... or zpool add poolname log gptid/....

I won't comment on the wisdom of doing that other than to say that you should do the research and understand the consequences of doing it. (which may lead you to question if you need L2ARC or SLOG at all)

Maybe look here: https://www.truenas.com/community/t...s-partitioned-for-two-pools.62787/post-483761

But (IMHO) ignore the bit about mirroring the logs as that's not really something needed in the current version (although there are still proponents of both sides in that argument)
 
Top