TRIM error? SG-4860 + Micron M600 SSD
-
Just a typical paranoid OCD thing but… I have an SG4860 running 2.4rc with a Micron M600 128GB SSD (the SSD is from the Netgate store but was originally from another unit...)
When I run dmesg I see an error
# dmesg | grep TRIM WARNING: /tmp/mnt/cf: TRIM flag on fs but disk does not support TRIM
However, tunefs reports TRIM enabled:
# tunefs -p / tunefs: POSIX.1e ACLs: (-a) disabled tunefs: NFSv4 ACLs: (-N) disabled tunefs: MAC multilabel: (-l) disabled tunefs: soft updates: (-n) enabled tunefs: soft update journaling: (-j) enabled tunefs: gjournal: (-J) disabled tunefs: trim: (-t) enabled tunefs: maximum blocks per file in a cylinder group: (-e) 4096 tunefs: average file size: (-f) 16384 tunefs: average number of files in a directory: (-s) 64 tunefs: minimum percentage of free space: (-m) 8% tunefs: space to hold for metadata blocks: (-k) 6408 tunefs: optimization preference: (-o) time tunefs: volume label: (-L)
Which to believe? Does it even matter? :P
-
Looks like that disk does not support TRIM. From what unit was the SSD originally?
-
99% sure it was from a SG-2440 that we ordered. Honestly I can't remember… did you guys ever ship Micron SSDs?
-
OK, I apologize I've been getting partial information internally. Looks like your readings are from a different device, not the mSATA device. Do you by any chance attempt to enable TRIM on the built-in eMMC?
-
I thought when you had an mSATA device installed, the eMMC was "disabled"? /dev/ada0 is definitely my 128GB mSATA SSD…
-
I thought when you had an mSATA device installed, the eMMC was "disabled"? /dev/ada0 is definitely my 128GB mSATA SSD…
It's not disabled, mSATA always boot first if it's present. eMMC is still active but not used in that case. Our support says you are definitely getting a reading of eMMC, which is why it says TRIM not supported. TRIM is enabled on your SSD.
-
During boot up the external config loader attempts to mount any external drives to check them for config file you might want to restore. Since the eMMC on the RCC-VE appears as a USB device it is checked. The scripts attempts to mount it with TRIM but it doesn't support TRIM hence the error you see there. It's not a problem, we mount the all the drives with TRIM in the factory image anyway and whilst it doesn't support TRIM it doesn't cause any issues for the eMMC drive. That's not true of all drives though which is why TRIM is not enabled globally.
Steve
-
@stephenw10: great, thanks for your informative answer. My OCD can rest now ;)