Re: Using SMARTd to monitor drives
Ray Andrews <[email protected]> Mon, 06 Feb 2017 11:46:43 -0800
| Newsgroups | gmane.linux.utilities.smartmontools |
|---|---|
| Message-ID | <[email protected]> |
On 06/02/17 11:16 AM, Carlos E. R. wrote: > On 2017-02-06 19:49, Ray Andrews wrote: >> On 06/02/17 03:41 AM, Carlos E. R. wrote: >>> journalctl | grep -w smartd >> Thanks, that's better. The previous thing stopped giving me any >> information. One day I'm going to have to study the entire logging >> mechanism. > I don't know about your distro, but in openSUSE both journal and syslog > can coexist, although the journal is the boss (and the only one by > default). A syslog daemon had to be installed, I used rsyslog. I don't > have permanent journal files, and I limited its size. God knows, I've just not given it much study. As I said, before smartd, all I ever cared about was errors. BTW, just now I wondering what the relationship is between # default is every 30 minutes: #smartd_opts="--interval=1800" in '/etc/default/smartmontools' and the '-i' switch used in '/etc/smartd.conf'. The latter seems to have a different unit but in 'man smartd.conf' the switch is mentioned only in the text, it does not have a section devoted to it. It seems legal to use but I'm not sure what's going on there and the value can't be above 255, it seems. And: I've tried '-n standby' but it seems to be ignored, all my disks spin up after '$ smartd -q onecheck' even if I had just spun them down: $ hdparm -S60y /dev/sda; hdparm -S60y /dev/sdb; hdparm -S60y /dev/sdc /dev/sda: setting standby to 60 (5 minutes) issuing standby command /dev/sdb: setting standby to 60 (5 minutes) issuing standby command /dev/sdc: setting standby to 60 (5 minutes) issuing standby command $ smartd -q onecheck ... $ hdparm -C /dev/sda; hdparm -C /dev/sdb; hdparm -C /dev/sdc /dev/sda: drive state is: active/idle /dev/sdb: drive state is: active/idle /dev/sdc: drive state is: active/idle ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot