Is there a way to force a TRIM in a Windows 2012 Software RAID array?

I have a Windows 2012 server configured with two SSD under a Software RAID 1 (controlled by Windows), under that configuration the optimization tool is not supported.

Is the TRIM still scheduled/performed by the OS, just not visibly so, and with no manual controls?

Is there a way to force it, given it's a simple mirroring RAID, and the OS is capable of TRIM when the SSD are not RAID'ed?

I found an "option" early on, but it's obviously not suitable for use in production: detach one disk from the raid (thus killing the RAID), perform the TRIM on the single-disk, then rebuild the RAID.

(the SSDs are 120GB Intel Sandforce in case that matters, they host several databases, are under constant read/write 24/7, and there is a data rotation of several gigabytes per day)


Solution 1:

Windows software RAID only supports Trim/Unmap pass-through for RAID-0 at this time.

However, Sandforce (and most other SSD chips) will pickup that a block is being zeroed and mark the block for garbage collection instead (what Trim would do). You can force Windows to zero unused disk space with the cypher /w X:\ command. This does not work on encrypted drives.