Bug 271741 - smartd-conf.py should allow customization of parameters
smartd-conf.py should allow customization of parameters
Product: Fedora
Classification: Fedora
Component: smartmontools (Show other bugs)
All Linux
medium Severity low
: ---
: ---
Assigned To: Tomas Smetana
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2007-08-31 11:13 EDT by Matthew Mastracci
Modified: 2007-11-30 17:12 EST (History)
0 users

See Also:
Fixed In Version: 5.37-3.2.fc7
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-09-25 04:28:27 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Matthew Mastracci 2007-08-31 11:13:58 EDT
Description of problem:

smartd-conf.py currently hardcodes the parameters to each harddrive.  To
customize the parameter, you need to disable autogeneration of the smartd.conf
file.  It would be easier if a user could specify global flags if

smartctl_opts="-t -l error -l selftest -s

The above line requests more detailed monitoring of SMART flags, plus automatic
offline/extended tests throughout the day.

Version-Release number of selected component (if applicable):


How reproducible:


Additional info:

Can provide a patch if needed.
Comment 1 Tomas Smetana 2007-09-03 05:05:31 EDT
It can be done quite easily but do you really think it's useful?  What's easier
on editing /etc/sysconfig/smartmontools than /etc/smartd.conf?  The script is
intended for inexperienced users to create a basic configuration for them.  If
you're able to configure smartd yourself, why do you need to have the config
file autogenerated?
Comment 2 Matthew Mastracci 2007-09-03 10:55:05 EDT
I agree that it doesn't take an overwhelming amount of work to modify the
smartd.conf file, but it ends up being a bit tedious on machines with more than
5 hard drives.  It also makes it easier and less error-prone when installing new
drives or modifying global configuration parameters.

It also makes it easier to modify the smartd templates on more than one machine.
 Currently, rolling out a change to run automatic tests on HDDs across 10
machines requires editing 10 files x # of hard drives.  With the change, it
would require 10 scp calls to write a new, identical config file.

I don't currently see a need for more granular option configuration - this would
be for configuring global defaults only.  If someone requires per-hard-drive
configuration, it would be just as easy to modify smartd.conf.
Comment 3 Tomas Smetana 2007-09-04 08:16:45 EDT
You should be able to add the parameters into /etc/sysconfig/smartmontools --
optional variable smartd_conf_opts.  The change will be present in the next update.
Comment 4 Fedora Update System 2007-09-04 18:07:06 EDT
smartmontools-5.37-3.2.fc7 has been pushed to the Fedora 7 testing repository.  If problems still persist, please make note of it in this bug report.
Comment 5 Matthew Mastracci 2007-09-04 18:24:46 EDT
Tested, works as expected with and without the following option in

smartd_conf_opts="-H -m root -t -l error -l selftest -s
Comment 6 Fedora Update System 2007-09-25 04:28:26 EDT
smartmontools-5.37-3.2.fc7 has been pushed to the Fedora 7 stable repository.  If problems still persist, please make note of it in this bug report.

Note You need to log in before you can comment on or make changes to this bug.