Skip to content

[FIXED] Please update sensors.sh for new NVMe / NVD / NDA devices #13

@thesunexpress

Description

@thesunexpress

Hello there,

The FreeBSD devs have decided, in their infinite wisdom, that NVMe devices should now be considered NDA devices by default:
https://man.freebsd.org/cgi/man.cgi?nda

This is instead of the previous standard of nvme / nvd:
https://man.freebsd.org/cgi/man.cgi?nvme

As the manpages reflect, one can mess with sysctl knobs to force nda devices to report as nvme / nvd instead, but this is non-standard now.
I am not sure if/when smartmontools devs will realize this change.
Currently, I have your sensors.sh script hacked up, in a dirty way, to report temps from nvmecontrol -- which is not ideal. The fact that a piece of software, designed specifically for nvme devices, is now co-opted to do so for nda devices is one seriously proper operation to confuse & mislead everybody. I haven't a clue why it was decided this is the correct course of action... there must be some seriously eccentric folks writing FreeBSD base code.
I am not experienced enough with shell scripting (zsh in particular), or the internal workings of smartmontools, or rather 'smartctl', to figure out how to make it report info of nda devices. But if you can figure it out, it would future-proof your excellent script.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions