Hi,
I'm new to Unraid. I have read up a lot on it over the past 2 months and took the plunge to migrate my Windows Home Server 2011 over to Unraid. It's great to be a part of the community here.
I have a Samsung 860 EVO I use for my cache drive. I installed Dynamix TRIM plugin to get this trimmed at 3AM everyday, but I kept getting the error:
fstrim: /mnt/cache: the discard operation is not supported
I got this same error when running via the Terminal.
root@nas:~# fstrim /mnt/cache
fstrim: /mnt/cache: the discard operation is not supported
I checked to make sure the drive supports TRIM
root@nas:~# hdparm -I /dev/sdb 2>&1 | grep TRIM
* Data Set Management TRIM supported (limit 8 blocks)
* Deterministic read ZEROs after TRIM
I have been trying to troubleshoot this over the past 2 weeks with no success. I'm hoping you guys can point me to what to try next.
My setup:
Mobo: Supermicro X10DRi-T with Intel C612
SSD drive: Samsung 860 EVO 4TB 2.5" SATA SSD
Connection method: Onboard SATA ports
Unraid version: 6.8.2
Things I have tried (running the TRIM command via the Terminal manually for each of the below):
1. This mobo has 10 SATA ports: 4 I-SATA ports, 2 DOM I-SATA ports and 4 S-SATA ports. From looking at the mobo manual, all SATA ports are connected to Intel SATA controllers. I have tried 1 of each variant and got the same error.
2. I tried different SATA cables and got the same error.
3. I stopped the array, mounted the drive via Unassigned Device and for the same error:
root@nas:~# fstrim -v /mnt/disks/Samsung_SSD_860_EVO_4TB_S4WUNE0M802047R
fstrim: /mnt/disks/Samsung_SSD_860_EVO_4TB_S4WUNE0M802047R: the discard operation is not supported
4. I tried an old SSD I have on hand and this one seemed to work:
root@nas:~# fstrim -v /mnt/disks/M4-CT512M4SSD1_0000000012330912F659-part2
/mnt/disks/M4-CT512M4SSD1_0000000012330912F659-part2: 68.8 MiB (72119296 bytes) trimmed
root@nas:~# fstrim -v /mnt/disks/M4-CT512M4SSD1_0000000012330912F659-part4
/mnt/disks/M4-CT512M4SSD1_0000000012330912F659-part4: 306.7 GiB (329315692544 bytes) trimmed
5. I booted into Windows and installed Samsung Magician on the spare SSD I have above and the Samsung drive appears to be genuine and has the latest firmware.
I attached my diagnostic to this post.
I hope I am not missing something obvious. If I am, please pardon my ignorance and I appreciate you guys pointing me in the right direction.
I think this means that for some odd reason, this Samsung drive does not support TRIM? Which is weird since it's a very popular drive.
Please let me know what you think. Thanks!
nas-diagnostics-20200210-1925.zip