I’m trying to use the built in SMART service to monitor my drives, but I’m not sure how to configure it properly.
Today, my hard drives are sda, sdc, sdd, sde, sdf, sdg. My USB OS drive is sdb. This is the first time I’ve seen my USB drive mount as sdb, but I’m aware that could always happen.
Because my drives mount points may change, and because my OS drive doesn’t support SMART, I can’t use DEVICESCAN, I think. So, I’ve found another suggestion that I expected would work.
Under Services --> Smart, I just have the text:
/dev/disk/by-id/ata-Hitachi_HUA723020ALA641_YFG4B0HA -a -m email.address@gmail.com
/dev/disk/by-id/ata-Hitachi_HUA723020ALA641_YFG6D8NA -a -m email.address@gmail.com
/dev/disk/by-id/ata-Hitachi_HUA723020ALA641_YFG770TA -a -m email.address@gmail.com
/dev/disk/by-id/ata-Hitachi_HUA723020ALA641_YFHV3XGA -a -m email.address@gmail.com
/dev/disk/by-id/ata-Hitachi_HUA723020ALA641_YGG3KD3A -a -m email.address@gmail.com
/dev/disk/by-id/ata-Hitachi_HUA723020ALA641_YGGLE0AB -a -m email.address@gmail.com
Under Storage --> Disks, all 6 of my drives are shows as being SMART capable, and my USB drive as not SMART capable. This seems perfectly valid to me.
The issue I’m having is that /opt/rockstor/var/log/rockstor.log is getting slammed with SMART scanning issues. It appears that there are two of them that repeat over and over.
File "/opt/rockstor/src/rockstor/storageadmin/views/disk.py", line 226, in _update_disk_state
do.name, do.smart_options)
File "/opt/rockstor/src/rockstor/system/smart.py", line 311, in available
[SMART, '--info'] + get_dev_options(device, custom_options))
File "/opt/rockstor/src/rockstor/system/osi.py", line 98, in run_command
raise CommandException(cmd, out, err, rc)
CommandException: Error running a command. cmd = ['/usr/sbin/smartctl', '--info', '/dev/sdb']. rc = 1. stdout = ['smartctl 6.2 2013-07-26 r3841 [x86_64-linux-4.6.0-1.el7.elrepo.x86_64] (local build)', 'Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org', '', '/dev/sdb: Unknown USB bridge [0x0781:0x5583 (0x100)]', 'Please specify device type with the -d option.', '', 'Use smartctl -h to get a usage summary', '', '']. stderr = ['']
[22/Jun/2016 08:20:28] ERROR [storageadmin.views.disk:228] Error running a command. cmd = ['/usr/sbin/smartctl', '--info', '']. rc = 1. stdout = ['smartctl 6.2 2013-07-26 r3841 [x86_64-linux-4.6.0-1.el7.elrepo.x86_64] (local build)', 'Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org', '', ': Unable to detect device type', 'Please specify device type with the -d option.', '', 'Use smartctl -h to get a usage summary', '', '']. stderr = ['']
Traceback (most recent call last):
File "/opt/rockstor/src/rockstor/storageadmin/views/disk.py", line 226, in _update_disk_state
do.name, do.smart_options)
File "/opt/rockstor/src/rockstor/system/smart.py", line 311, in available
[SMART, '--info'] + get_dev_options(device, custom_options))
File "/opt/rockstor/src/rockstor/system/osi.py", line 98, in run_command
raise CommandException(cmd, out, err, rc)
CommandException: Error running a command. cmd = ['/usr/sbin/smartctl', '--info', '']. rc = 1. stdout = ['smartctl 6.2 2013-07-26 r3841 [x86_64-linux-4.6.0-1.el7.elrepo.x86_64] (local build)', 'Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org', '', ': Unable to detect device type', 'Please specify device type with the -d option.', '', 'Use smartctl -h to get a usage summary', '', '']. stderr = ['']
It LOOKS like smartctl is being run on sdb (my USB drive) as well as without a drive specified. How do I correct this?
I’ve verified that in smartd.conf, the only non-comment lines are those I pasted above. I don’t know why it is scanning for a non-specified drive or for sdb.