Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Package Request] Add smartmontools 7.4+ to SynoCli Disk Tools #6432

Closed
cpm1 opened this issue Jan 31, 2025 · 5 comments · Fixed by #6434
Closed

[Package Request] Add smartmontools 7.4+ to SynoCli Disk Tools #6432

cpm1 opened this issue Jan 31, 2025 · 5 comments · Fixed by #6434
Labels
request request for new package

Comments

@cpm1
Copy link

cpm1 commented Jan 31, 2025

Software Name

SynoCli Disk Tools - smartmontools

Brief Description

Synology only delivers a quite old smartmontools version 6.5 from 2022 by default. That version doesn't know how to display Seagates FARM data for example, which would be important considering the current fraud case of old/used Seagate (and others?) harddisk as "new" where the S.M.A.R.T. data were reset. FARM is only support starting with smartmontools 7.4.

Hence it would be really usefull if SynoCli Disk Tools would get the latest smartmontools.

Website

https://www.smartmontools.org

Documentation

https://www.smartmontools.org/wiki/TocDoc

Build/Installation documentation

https://www.smartmontools.org/wiki/Download#Installfromthesourcetarball

Source code

https://github.com/smartmontools/smartmontools/releases/download/RELEASE_7_4/smartmontools-7.4.tar.gz

OpenSource License

GPLv2

Other License

No response

@cpm1 cpm1 added the request request for new package label Jan 31, 2025
@hgy59
Copy link
Contributor

hgy59 commented Jan 31, 2025

Related to #6226

@hgy59
Copy link
Contributor

hgy59 commented Jan 31, 2025

@cpm1 I have already compiled smartmontools when evaluating scrutiny for #6226

I guess, it would be best to add smartmontools to synocli-monitor package since I didn't get my questions for scrutiny answered.
Or would you expect it in synocli-disk package?

@cpm1
Copy link
Author

cpm1 commented Jan 31, 2025

@hgy59
Well, strictly spoken, yes, at first glance I'd expect smartmontools to be part of the synocli-disk package as it is exactly this, a CLI disk utility on demand and no continuesly running monitoring tool, like scrutiny.

You suggested as much in this comment on scrutiny: #6226 (comment)

So, if you don't have any objections, I'd vote for synocli-disk package.

BTW: Sorry for opening a new issue, but #6226 didn't show up for whatever reason when I searched for smartmontools.

@hgy59
Copy link
Contributor

hgy59 commented Jan 31, 2025

So I will update synocli-disk

@cpm1 do you have an example for how to call smartctl?

I tested only with:

# /usr/local/bin/smartctl --all  /dev/sda
smartctl 7.4 2023-08-01 r5530 [x86_64-linux-4.4.302+] (local build)
Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Vendor:               SYNOLOGY
Product:              Storage
Revision:             4.0
Compliance:           SPC-3
User Capacity:        17,179,869,184 bytes [17.1 GB]
Logical block size:   512 bytes
LU is thin provisioned, LBPRZ=0
Logical Unit id:      0x6001405c3472109de88ad4312da3a4d5
Serial number:        c3472109-e88a-4312-a3a4-5ab1d767f8eb
Device type:          disk
Transport protocol:   SAS (SPL-4)
Local Time is:        Fri Jan 31 10:30:15 2025 CET
SMART support is:     Available - device has SMART capability.
SMART support is:     Enabled
Temperature Warning:  Disabled or Not Supported

=== START OF READ SMART DATA SECTION ===
SMART Health Status: OK
Current Drive Temperature:     0 C
Drive Trip Temperature:        0 C

Error Counter logging not supported


[GLTSD (Global Logging Target Save Disable) set. Enable Save with '-S on']
Device does not support Self Test logging

@cpm1
Copy link
Author

cpm1 commented Jan 31, 2025

Great! Although on second thought the monitor package would just be as good. After all, there is also a smartd in the smartmontools package, which can actually work as monitor daemon.

In the end it doesn't really matter as long as they are available at all :D

Calling smartmontools is quite straightforward like you did already for the basic information or if you happen to use Seagate drives # sudo smartctl -l farm /dev/sda. The documentation describes the zillion other options of smartmontools, here are some more examples: https://www.linuxjournal.com/article/6983

Thank you for your efforts!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
request request for new package
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants