Replace drive, need to re-enable SMART tests on that drive?

adamgoldberg

Explorer
Joined
Dec 12, 2015
Messages
60
The drive I had on /dev/ada1 went bad - SMART tests started warning of imminent failure. So I took that drive offline, replaced it, and it resilvered perfectly well and I was back & running with full functionality in about 2h.

But I noticed that the SMART tests weren't running on the new /dev/ada1 (but they were on the old). I went poking about, and found that I needed to go to SMART Tests, and edit both the short & long tests to re-enable /dev/ada1's tests.

That seems weird, eh? Why should FreeNAS disable tests on ada1? Or if it does, why should it not re-enable them when the drive is replaced?

FreeNAS-11.2-U8, Supermicro 1U chassis w/hot swap
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
I confirm I see the same, I'm fairly sure the reason is that the GUID or GPTID is used by the task in the background, not the dev name, so when the GPTID is new, it was never told to scan that disk. The optics on it don't make much sense though, I agree with you.

I guess we wouldn't want the system just deciding to start scanning a disk without at least asking you first, but perhaps there can be a check that at least reminds you after replacing a disk to check the SMART tasks for the new disk.
 

adamgoldberg

Explorer
Joined
Dec 12, 2015
Messages
60
Yes, even just a pop-up warning or something ... and maybe a paragraph in Sec. 9.5.1 in the documentation...
 

JaimieV

Guru
Joined
Oct 12, 2012
Messages
742
I put in a bug for this a year or so ago, after a similar thread.

There's a new "all disks" tickbox - does that take on new disks when a change happens? I've now ticked it but hopefully I won't know for ages.
 
Top