OPNsense Forum

Archive => 23.7 Legacy Series => Topic started by: ksx4system on August 02, 2023, 03:43:59 PM

Title: ses0 device visible in SMART widget
Post by: ksx4system on August 02, 2023, 03:43:59 PM
Hello,

I've just upgraded my router from 23.1.11_1 to 23.7 release. Everything seems to work fine but I see a non-existent device named ses0 within SMART widget on dashboard. How do I remove it? This device is not visible in SMART menu, just ada0 (SSD system drive, the only storage available for this machine).

Thanks in advance for any help.
Title: Re: ses0 device visible in SMART widget
Post by: franco on August 02, 2023, 03:48:39 PM
https://github.com/opnsense/plugins/issues/3513

If we have enough complaints I will switch back to the old behaviour. This is how "smartctl" sees devices and thinks this is a disk for one reason or another.


Cheers,
Franco
Title: Re: ses0 device visible in SMART widget
Post by: ksx4system on August 02, 2023, 03:58:17 PM
Quote from: franco on August 02, 2023, 03:48:39 PM
This is how "smartctl" sees devices and things

I assume this could be safely ignored then (eg. only aesthetic issue). Thanks for rapid reply and have a great day :)
Title: Re: ses0 device visible in SMART widget
Post by: franco on August 02, 2023, 04:03:51 PM
Yes but.. what is the exact metric for ignoring something that is not a disk after all? ;)

The old script also had to dance around the nmve driver madness.


Cheers,
Franco
Title: Re: ses0 device visible in SMART widget
Post by: ksx4system on August 03, 2023, 02:20:05 PM
Quote from: franco on August 02, 2023, 04:03:51 PM
Yes but.. what is the exact metric for ignoring something that is not a disk after all? ;)

The ses0 device probably can't fail (it's not a real disk) so it can be ignored.
Title: Re: ses0 device visible in SMART widget
Post by: Patrick M. Hausen on August 03, 2023, 03:37:33 PM
Quote from: franco on August 02, 2023, 04:03:51 PM
Yes but.. what is the exact metric for ignoring something that is not a disk after all? ;)
The old script also had to dance around the nmve driver madness.

nvd* disk devices are going to be replaced by nda* and integrated into the CAM subsystem. I do not know from the top of my head in which FreeBSD release this is going to be the default.

One can set the loader tunable hw.nvme.use_nvd to 0 to force the new behaviour on FreeBSD 13.

Warning: if you installed with UFS, changing this after the fact might render your installation unable to boot. ZFS users should be fine.
Title: Re: ses0 device visible in SMART widget
Post by: franco on August 03, 2023, 04:46:26 PM
Thanks for the insight. Well, not with our UFS install using labels properly, but we should be careful here indeed.

My best guess here is just revert that change than, I don't feel like scripting around smartctl which could go stale at any point in time as well or needs more maintenance.

Ok?


Cheers,
Franco
Title: Re: ses0 device visible in SMART widget
Post by: Patrick M. Hausen on August 03, 2023, 05:03:48 PM
I was all for it. But I have no system on which the sysctl method would not work. This is my TrueNAS CORE (FreeBSD 13), the box with the most disks plus different types, too:
root@freenas[~]# sysctl -n kern.disks
ada5 ada4 ada3 ada2 ada1 ada0 nda2 nda1 nda0


I just checked, you still need to use /dev/nvme* for smartctl, even with the nda* devices enabled, so special treatment still necessary.  :-\ At least on 13.