Re: Using SMARTd to monitor drives
Christian Franke <[email protected]> Tue, 7 Feb 2017 07:40:27 +0100
| Newsgroups | gmane.linux.utilities.smartmontools |
|---|---|
| Message-ID | <[email protected]> |
Ray Andrews wrote: > ... > BTW, just now I wondering what the relationship is between > > > # default is every 30 minutes: > #smartd_opts=3D"--interval=3D1800" > > 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. Besides the fact that '-i' is explained on smartd.conf man page, I = already explained the effects of both '-i' in my first answer from = 2017-01-19. Please read & understand previous answers before asking same = question again. > 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 BTW, you could also do this with 'smartctl -s standby,N ...' > $ smartd -q onecheck > ... > > $ hdparm -C /dev/sda; hdparm -C /dev/sdb; hdparm -C /dev/sdc > > /dev/sda: > drive state is: active/idle This is as expected. The initial drive registration (SMART enable, = capability checks) is always done by smartd. This may or may not spin up = drives, depending on drive firmware. Quote from smartd.conf man page "This =B4nocheck=B4 Directive is used to prevent a disk from being spun-up = when it is *periodically polled* by smartd." Regards, Christian ---------------------------------------------------------------------------= --- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot