2Shirt / WizardKit

MIT License
0 stars 0 forks source link

Add SMART override for Samsung PM871b devices #163

Closed 2Shirt closed 3 years ago

2Shirt commented 3 years ago

I have a Samsung SSD with SMART data showing Supercap at 100. This Kingston document shows that 100 is a best value but it's showing as failed with WKDiags. Think that maybe this should be updated so 0 or 100 is a pass but anything else is interpreted as real data and a fail?

2Shirt commented 3 years ago

This report was for a Samsung PM871b Series M.2 SSD model: MZNLN128HAHQ-000H1

My read of that doc says that the supercap value should be interpreted as follows: 100 = 100% life remaining, 0 = 0% life remaining.

Found this ticket in smartmontools which supports that theory. This report is for an HP variant but I'm guessing it applies in this case as well.

2Shirt commented 3 years ago

Plan - Override attribute 201 using the regex described in the smartmontools ticket. This will require supporting inverted scales in attribute definitions. If a new key in the dict is added then this should require the least modification to the existing code.