fortaisur
2016-07-14 08:34:48 UTC
One platform I am now working with occasionally has a RAID controller
which requires adding e.g. " -d sat+megaraid,0" to the smartctl command line
in order to get anything useful.
I don't work with the platform that much so keep forgetting that parameter
and have to look it up again.
I assumed there would be a smartctl.conf, or an environment variable like SMARTCTL,
where I could set that so I don't need to specify it. I cannot find any
documentation on any way to set smartctl arguments like that. The smartd.conf
appears to be for smartd only, not smartctl.
Is there some way to set arguments like this? I realize I could make a shell
alias or function, but most programs have some built-in way to set commonly-needed
options.
I noticed that per the system logs, smartd needs no such specification - it
appears to automatically figure out the type of drive/controller. Is there any
way to get smartctl to do the same?
which requires adding e.g. " -d sat+megaraid,0" to the smartctl command line
in order to get anything useful.
I don't work with the platform that much so keep forgetting that parameter
and have to look it up again.
I assumed there would be a smartctl.conf, or an environment variable like SMARTCTL,
where I could set that so I don't need to specify it. I cannot find any
documentation on any way to set smartctl arguments like that. The smartd.conf
appears to be for smartd only, not smartctl.
Is there some way to set arguments like this? I realize I could make a shell
alias or function, but most programs have some built-in way to set commonly-needed
options.
I noticed that per the system logs, smartd needs no such specification - it
appears to automatically figure out the type of drive/controller. Is there any
way to get smartctl to do the same?