Re: How configure smartctl (not smartd)
fortaisur <[email protected]> Thu, 11 Aug 2016 10:39:16 -0700
| Newsgroups | gmane.linux.utilities.smartmontools |
|---|---|
| Message-ID | <[email protected]> |
Christian Franke <[email protected]> wrote: >fortaisur wrote: >> 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? > >There is no smartctl conf file or variable. There are no plans to add this. > > >> I realize I could make a shell >> alias or function, but most programs have some built-in way to set commonly-needed >> options. > >Fell free to create a ticket and provide your ideas how this may work: >https://www.smartmontools.org/newticket > > >> I noticed that per the system logs, smartd needs no such specification - it >> appears to automatically figure out the type of drive/controller. > >This only works if DEVICESCAN is used. It includes also drives behind >MegaRAID controllers (but no other RAID controllers). For individual >entries, -d megaraid,N is still required. > > >> Is there any >> way to get smartctl to do the same? > >"smartctl --scan" uses the same functionality as the DEVICESCAN in >smartd.conf. > >Thanks, >Christian > > >------------------------------------------------------------------------------ Thank you for all of the replies and info - I will just use an alias. ------------------------------------------------------------------------------ What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports. http://sdm.link/zohodev2dev