Author Topic: Smart Hard Drive Monitoring on AOS 5.1.1  (Read 1958 times)

Dan Eicher

  • Jr. Member
  • **
  • Posts: 65
  • Karma: +3/-0
    • View Profile
Smart Hard Drive Monitoring on AOS 5.1.1
« on: July 30, 2025, 03:50:19 pm »
I've looked into the various threads here, and it seems smartmon monitoring can be done with,
   smartahci, pmsmartctrl and smartmonutils.

 My first go-to is always ANPM.

 Searching ANPM for SMART or SMART* doesn't return anything.

 What is my best bet in 2025 on AOS 5.1.1 to read the smart values stored on a standard SSD?

 I appreciate any feedback.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5417
  • Karma: +48/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Smart Hard Drive Monitoring on AOS 5.1.1
« Reply #1 on: July 30, 2025, 05:36:17 pm »
Hello

There is SmartMonTools_6-6r4424 in hobbes.
- https://hobbesarchive.com/?detail=/pub/os2/util/disk/SmartMonTools_6-6r4424.zip

The readme says:
Quote
If you are using DANIS506 driver use hdX device names, e.g.

smartctl -i hd0

If you are using OS2AHCI driver use ahciX device names, e.g.

smartctl -i ahci0

To get list of the drives in the system use "smartctl --scan" command.

More comments are welcome from people with more experience.

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5521
  • Karma: +135/-1
    • View Profile
Re: Smart Hard Drive Monitoring on AOS 5.1.1
« Reply #2 on: July 30, 2025, 06:28:17 pm »
You may have to update the database from upstream which I think is available at https://www.smartmontools.org/wiki/Download#Updatethedrivedatabase.
Also note, no support for nVME drives as the driver is lacking the interface.

Dariusz Piatkowski

  • Hero Member
  • *****
  • Posts: 1446
  • Karma: +32/-0
    • View Profile
Re: Smart Hard Drive Monitoring on AOS 5.1.1
« Reply #3 on: August 02, 2025, 10:16:27 pm »
Hey Dan!

The CLI stuff is out there (meaning available), but to ease with this stuff check out PMsmartctl:

Author: Peter Brown     email: losepete@losepete.plus.com?subject=PMsmartctl

What Peter did was to build a nifty little util that does a quick pass through your system, gives you a list of available devices and lets you select what SMART info you want to get (which is ultimately produced as a TEXT file).

Very easy to use, good control. Since we did the initial testing for Peter here on the forum I'm not sure where he's gone with this (if anywhere else?).

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5521
  • Karma: +135/-1
    • View Profile
Re: Smart Hard Drive Monitoring on AOS 5.1.1
« Reply #4 on: August 03, 2025, 06:52:57 am »
Wonder how Peter is doing? Been a while since he posted

Pete

  • Hero Member
  • *****
  • Posts: 1424
  • Karma: +17/-0
    • View Profile
Re: Smart Hard Drive Monitoring on AOS 5.1.1
« Reply #5 on: August 03, 2025, 07:27:07 pm »
Hi All

Thanks for your concern Dave but I'm still alive and kicking - although I have developed a nasty case of "students elbow" which is a bit uncomfortable and slows my limited keyboard skills down somewhat  :-)

No current plans on updating PMsmartctl - unless someone has a need for something not already included?

I checked the version of smartmontools I have installed and it is
   smartctl 7.0 (build date Oct 19 2019) [i386-pc-os2-emx] (local build)

This came from http://rpm.netlabs.org/experimental/00/zip/smartmontools-7_0-1_oc00.zip

As netlabs seems to be down at the moment I've attached the above zip to this post.


Regards

Pete



Dave Yeo

  • Hero Member
  • *****
  • Posts: 5521
  • Karma: +135/-1
    • View Profile
Re: Smart Hard Drive Monitoring on AOS 5.1.1
« Reply #6 on: August 03, 2025, 09:50:24 pm »
Good things aren't too bad for you Pete, too many move on or worse and vanish.
As for  PMsmartctl, what is needed are driver updates, eg nVME to get the smart data and then updated smartmon, all beyond your control.

Dan Eicher

  • Jr. Member
  • **
  • Posts: 65
  • Karma: +3/-0
    • View Profile
Re: Smart Hard Drive Monitoring on AOS 5.1.1
« Reply #7 on: August 05, 2025, 12:33:17 am »
>This came from http://rpm.netlabs.org/experimental/00/zip/smartmontools-7_0-1_oc00.zip

Ignorant question for any of you all.

Usually when I do an rpm -i under unix, it expects a file called *.rpm.

This zip, has what appears to be the files and locations where it needs installed.

How do I install this?

Thanks!

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5521
  • Karma: +135/-1
    • View Profile
Re: Smart Hard Drive Monitoring on AOS 5.1.1
« Reply #8 on: August 05, 2025, 12:56:00 am »
Install the netlabs-exp package with ANPM, then enable the exp repository and use ANPM to install it, or manually install following the directory structure. @unixroot, or %UNIXROOT% is simply the drive letter where your RPM environment is installed, probably C: in your case.
And yes, to quote Adrian,
Quote
Disks arrived & were put into the server today! I'm still working on the full replacement but everything worked well enough that I could boot up the VMs again!

I tested most services and from my point of view we are back. In case you disagree, let me know!

thanks again to Knut for the new disks!

Steven Levine

  • Jr. Member
  • **
  • Posts: 88
  • Karma: +12/-0
    • View Profile
Re: Smart Hard Drive Monitoring on AOS 5.1.1
« Reply #9 on: August 05, 2025, 09:18:06 pm »
Dan,

I recommend you hold off until the netlabs server is fully back online.  My testing indicates that this is not yet happened.  URLs that were available before the server went down are not yet visible including http://rpm.netlabs.org/release/ which is the top level directory for the released rpms.  The same is true for http://rpm.netlabs.org/experimental/.

It's possible Adrian needed to take the server offline to finish up the recovery.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5417
  • Karma: +48/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Smart Hard Drive Monitoring on AOS 5.1.1
« Reply #10 on: August 06, 2025, 12:35:45 am »
Hello

There is the public mailing list for netlabs ("community-subscribe@netlabs.org" if you want to subscribe).

Adrian posted (14 hours ago - 3:23am my time) that he swapped new disks and there is a sync process that it is taking time. Let's hope Netlabs gets back on the next days.

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Dan Eicher

  • Jr. Member
  • **
  • Posts: 65
  • Karma: +3/-0
    • View Profile
Re: Smart Hard Drive Monitoring on AOS 5.1.1
« Reply #11 on: August 07, 2025, 11:30:08 pm »

 Success!

 I was able to use ANPM, to enable netlab-exp.

 Then I was able to install smartutils.