Expose drive speed and temperature on disk topo node
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:
Details on how the test was changed can be found here:
Updated by Rob Johnston over 2 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 over 2 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
commit 00d7a6fb939233ed021b823016c33fcae1dac964 Author: Rob Johnston <email@example.com> Date: 2018-09-18T16:57:51.000Z 9455 Expose drive speed and temperature on disk topo node Reviewed by: Yuri Pankov <firstname.lastname@example.org> Reviewed by: Igor Kozhukhov <email@example.com> Approved by: Dan McDonald <firstname.lastname@example.org>