Is it possible to label disks AND use those labels in smartctl?
Long story
I use nagios to monitor drive temps on my FreeBSD ZFS file server.
Yesterday, an SSD failed and all comms to it are timing out. I power cycled the server to check for a transient problem. The SSD did not come back and freebsd treated the SSD as not connected. As expected the ada devices shuffled numeric labels.
The problem is smartctl is now reporting temps for different disks. Worse, the last disk in the ada list doesn't exist anymore and this causes an nagios alarm. (I have ada0 to ada3. Disk ada2 failed. Therefore ada3 moved to ada2 (after reboot). Now ada3 doesn't exist and smartctl reports an error.)
Of course, the ZFS file system is fine because it uses labels.
TL;DR
How can I label ZFS formated disks so that smartctl can use device labels that don't change??
(Any help would appreciated.)
Long story
I use nagios to monitor drive temps on my FreeBSD ZFS file server.
Yesterday, an SSD failed and all comms to it are timing out. I power cycled the server to check for a transient problem. The SSD did not come back and freebsd treated the SSD as not connected. As expected the ada devices shuffled numeric labels.
The problem is smartctl is now reporting temps for different disks. Worse, the last disk in the ada list doesn't exist anymore and this causes an nagios alarm. (I have ada0 to ada3. Disk ada2 failed. Therefore ada3 moved to ada2 (after reboot). Now ada3 doesn't exist and smartctl reports an error.)
Of course, the ZFS file system is fine because it uses labels.
TL;DR
How can I label ZFS formated disks so that smartctl can use device labels that don't change??
(Any help would appreciated.)