Page 1 of 1
SMART reports stopped
Posted: 24 May 2014 00:58
by bunk3m
Not sure if this is the right forum so if incorrect please move.
I updated a mirrored ZFS disk set with a new drive that failed.
I have SMART report run tests and send me a report via email. (Disks|Management|S.M.A.R.T. is activated)
As far as I can tell, it hasn't done any tests since Mar 30 when I changed the disk. The logs show
Code: Select all
smartd[1877]: smartd is exiting (exit status 0)
I'm not sure what to do to get this going again because the reporting is activated.
What should I be checking?
Thanks
Re: SMART reports stopped
Posted: 24 May 2014 10:33
by crowi
sometimes SMART gets disabled when new drives are added.
Did you check if it is enabled in Disks|Management|Disk|Edit?
Re: SMART reports stopped
Posted: 24 May 2014 15:42
by bunk3m
Hi. Thanks for the reply and suggestion.
I've checked and it is enabled.
Just to be sure, I disabled, save & restart and then enabled again.
Still no info in the log. The last entry is still Mar. 30.
Re: SMART reports stopped
Posted: 19 Jul 2014 22:09
by bunk3m
I'm back trying to figure out how to get the SMART reports going again. It drives me crazy that it isn't worked but used to work. I've been reading various freebsd, nas4free, linux smartctl forum posts but haven't found anything that addresses this. I conclude that this is probably so obvious for most people that no one would ask. I'm too new to this or stupid to know that I don't know what I've missed.
Just wondering if there is anything that I perhaps should have done when I replace the drive in the ZFS Pool to get the reporting to work again??
As previously reported, I've disabled, deleted all the reports, defined the reports again and then enabled again but still no reports. The last one is still from Mar. 30 prior to me replacing the failing drive. Under the Diagnostics|Information|S.M.A.R.T., I can see that the SMART report for each of the disks as at the moment I click on the report. But I can't understand why the cronjob would run to do the short and long tests and report back using the daily log report??
Any suggestions would be appreciated!
Thanks.
Re: SMART reports stopped
Posted: 19 Jul 2014 22:34
by bunk3m
I have noticed that the rc.conf file had
which I changed to "YES".
Also tried to restart smartd but it isn't where the freebsd man page says it should be.
Code: Select all
/usr/local/etc/rc.d/smartd start
/usr/local/etc/rc.d/smartd: Command not found.
I did find it at
Code: Select all
find . -name "smartd"
./etc/rc.d/smartd
./usr/local/sbin/smartd
Then I had to find where the smartd.conf file was because it wasn't where the man page says it should be.
Code: Select all
find . -name "smartd.conf"
./var/etc/smartd.conf
The smartd.conf file is blank/empty.
I'm confused. Something isn't correct here.
Re: SMART reports stopped
Posted: 20 Jul 2014 19:56
by bunk3m
Just a quick follow-up about some of the results that I'm getting.
The log showed this today:
Code: Select all
Jul 19 16:26:12 nas4free smartd[12121]: Unable to monitor any SMART enabled devices. Try debug (-d) option. Exiting...
Jul 19 16:26:12 nas4free smartd[12121]: Configuration file /var/etc/smartd.conf parsed but has no entries (like /dev/hda)
Jul 19 16:26:12 nas4free smartd[12121]: Opened configuration file /var/etc/smartd.conf
Jul 19 16:26:12 nas4free smartd[12121]: Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org
Jul 19 16:26:12 nas4free smartd[12121]: smartd 6.1 2013-03-16 r3800 [FreeBSD 9.1-RELEASE-p3 amd64] (local build)
Since this worked fine before I changed the defective drive, then what could have happened to the smartd.conf file? Shouldn't this be created somehow from the GUI as when you change any of the options, it would add/remove drives from the monitoring, add/remove drives from running quick or long reports etc.
Anyone have an idea what might have gotten corrupted and how I might fix this?
Thanks.
Re: SMART reports stopped
Posted: 20 Jul 2014 21:19
by RedAntz
Hi bunk3m,
Which NAS4Free version are you using ?
If it's the latest, did you restore your config from previous version ? If so, please perform 'Clear and Import' from Disks | Management, and setup your S.M.A.R.T.. The latest NAS4Free require config to be updated that way so that S.M.A.R.T. will work properly.
Re: SMART reports stopped
Posted: 20 Jul 2014 21:33
by bunk3m
Hi RedAntz.
Thanks for your reply.
I'm running "9.1.0.1 - Sandstorm (revision 775)". This is the original install that I did. The only change that I've done was replace one drive in the ZPool.
Re: SMART reports stopped
Posted: 20 Jul 2014 21:39
by RedAntz
When you mentioned S.M.A.R.T. is enabled, do you mean the Disks|Management|S.M.A.R.T. is enabled or the one in each individual hardisk : "S.M.A.R.T. Activate S.M.A.R.T. monitoring for this device." under "Disks|Management|Disk|Edit" page ?
Re: SMART reports stopped
Posted: 21 Jul 2014 01:51
by bunk3m
Hi RedAntz. Thanks for the reply. I didn't remember that there were two places it needed to be enabled.
I had Disks|Management|S.M.A.R.T. enabled. This is the place I always enabled it.
I didn't realize that there was a SMART activate on Disks|Management|Disk|Edit. I don't think I set this before. Having said that, I just set this to Activate for each disk. I'll have to see if I have a report in the morning.
Re: SMART reports stopped
Posted: 21 Jul 2014 01:54
by bunk3m
I think that fixed it. The logs already have info.
Code: Select all
Jul 20 19:47:41 nas4free smartd[14527]: Configuration file /var/etc/smartd.conf parsed.
Jul 20 19:47:41 nas4free smartd[14527]: Opened configuration file /var/etc/smartd.conf
Thanks again for your help!!