ZFS trim when only some drives are SSDs

uOpt

[H]ard|Gawd
Joined
Mar 29, 2006
Messages
1,632
You have a pool partially backed by SSDs, partially but HDs.

Would the SSDs get TRIM commands? OS would be FreeBSD but the question is more general.
 
My understanding of this code is that it is only in FreeBSD, so it is not a 'general' question. :) That same understanding is that the code identifies what devices support TRIM (including some trickery to get around devices that claim support but don't actually), so my not-personally-verified opinion would be that yes, it would be fine here, because it is taking the time to identify which devices can do TRIM, which would imply it can handle ones that can't, too. Source of my understanding: http://src.illumos.org/source/xref/freebsd-head/sys/dev/isci/scil/sati_device.c

I hope by 'partially backed by SSD' you mean L2ARC/ZIL, not some SSD data vdevs and some HD data vdevs!
 
Back
Top