OPNsense Forum

English Forums => 24.7, 24.10 Legacy Series => Topic started by: Stormscape on July 26, 2024, 01:01:15 PM

Title: os-smart detects wrong device
Post by: Stormscape on July 26, 2024, 01:01:15 PM
With 24.7, the os-smart plugin wrongly detects which dev file to query for SMART data for nvme devices, showing the only option as /dev/nda0, instead of /dev/nvme0, resulting in a failure to query the SSD correctly for SMART data.

Of course if you connect via ssh and run smartctl directly against /dev/nvme0, it will correctly return SMART data, but with /dev/nda0 you of course just get this:

Smartctl open device: /dev/nda0 failed: INQUIRY failed
Title: Re: os-smart detects wrong device
Post by: CursorBeat on July 28, 2024, 11:00:12 PM
I can confirm this. Tested with DEC740

Maintainer: franco@opnsense.org

Did you wrote him already?
Title: Re: os-smart detects wrong device
Post by: Stormscape on August 12, 2024, 04:34:24 AM
For those stumbling across this thread via Google, or reading the forums: A pull request has been submitted to the Github at this elegant and finely crafted link. (https://github.com/opnsense/plugins/pull/4173) It fixes the issue and so it'll be fixed soon. Still waiting on widget.
Title: Re: os-smart detects wrong device
Post by: franco on August 12, 2024, 08:47:28 AM
https://github.com/opnsense/plugins/commit/016bf27cb5

# opnsense-patch -c plugins 016bf27cb5


Cheers,
Franco
Title: Re: os-smart detects wrong device
Post by: vpx23 on September 26, 2024, 06:24:11 PM
The plugin also has to be updated for the new dashboard, it can't be selected in the widgets list.
Title: Re: os-smart detects wrong device
Post by: franco on September 26, 2024, 08:48:52 PM
While this hint is pretty obvious the not so obvious reality is that a widget is already available in the development version but needs to be rewritten slightly to better fit the scope of the old widget before it can be released to 24.7.x.


Cheers,
Franco