Feature #9455
closedExpose drive speed and temperature on disk topo node
100%
Description
As part of the general effort to flesh out the hc-scheme topology, it would be nice if the drive speed and temperature were exposed on the disk topo nodes. Both speed and temp are available via libdiskmgt. Drive speed would be exposed as a uint32 topo prop directly on the disk node for non-SSDs. Drive temp would be exposed via a child sensor facility node.
Note this change has already been integrated into illumos-joyent via the commit linked below:
https://github.com/joyent/illumos-joyent/commit/0d2eb7a53abcabd58cac94fda80cb021bae84390
Details on how the test was changed can be found here:
Related issues
Updated by Rob Johnston about 5 years ago
Just a clarification that the temperature sensor requires support for the DKIOCGTEMPERATURE ioctl in the underlying driver. As such, this will work with SCSI-based devices, but not ATA/SATA, USB storage or NMVE. On those devices, the "facility/reading" property will fail to read.
Similar story for the speed-in-rpm property. It relies on underlying DKIO support in the driver.
Updated by Electric Monk about 5 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
git commit 00d7a6fb939233ed021b823016c33fcae1dac964
commit 00d7a6fb939233ed021b823016c33fcae1dac964 Author: Rob Johnston <rob.johnston@joyent.com> Date: 2018-09-18T16:57:51.000Z 9455 Expose drive speed and temperature on disk topo node Reviewed by: Yuri Pankov <yuripv@yuripv.net> Reviewed by: Igor Kozhukhov <igor@dilos.org> Approved by: Dan McDonald <danmcd@joyent.com>
Updated by Rob Johnston about 5 years ago
- Related to Support #9849: Add support for pull temperature and speed off of SATA drives added