So I just went down a rabbit hole for about 3hrs, as I NEEDED to know if iSCSI and NFS can pass TRIM over their protocols to SSD-backed storage. And here are my findings.
- iSCSI is capable of passing TRIM correctly
- NFS requires v4.2 on server and client to pass TRIM correctly, otherwise earlier versions DO NOT
I cobbled this together from an eye-spinning number of sources on the internet. So if you feel you can conclusively prove me wrong, by all means.
I’m primarily posting this for myself (as my blog/website is not yet production ready), and maybe it can help some other people who are looking.
- RHEL 7.4+ has official support for NFS v4.2
- FreeBSD, unsure when it will get NFS v4.2, I’m trying to find out, so far I haven’t found info
- Proxmox, to get it to use NFS v4.2 (not sure if it can or not) you have to change NFS options for mounts at the CLI, I’ve opened a feature request to add options/settings like this to the webGUI
- FreeNAS seems to conclusively not be NFS v4.2 capable, as of this writing (since it also relies on FreeBSD)
Hope this helps someone! 😀