Scrub and SMART schedule

Status
Not open for further replies.

nakos

Dabbler
Joined
Dec 29, 2013
Messages
12
Hi everybody,
I spent last day to find a way to schedule:
- Scrub every Sunday at 2pm
- SMART long test every Wednesday at 2pm

Unfortunately no one of these works

Could you please explain to a stupid guy how can i set all the triggers to make it happen?

Thanks in advance and sorry for the stupid question!

nAKos
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994
What version of FreeNAS are you using?

In the left hand pane open up Storage - > ZFS Scrub and if you don't have any scrub schedule then add one, if you do have a scrub schedule then edit it. You will find many settings that you can change but keep it setup as default except the hour you should change and scroll down to the bottom and select only Sunday.

You do similar setup for SMART which is under System -> SMART Tests. You will have to create long tests if you haven't already.
 

nakos

Dabbler
Joined
Dec 29, 2013
Messages
12
The version is 9.2.
How can i see if the scrub and SMART start properly? because from the console i don't have any message
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994
From the shell type
Code:
smartctl -a /dev/ada0
assuming your first drive is ada0. This will list quite a bit of data and in there you will see test results. Correlate the hour it was run to the current hours of power on time and you will know when it was completed. Repeat this for all your drives, ada1, ada2, etc...
 

gpsguy

Active Member
Joined
Jan 22, 2012
Messages
4,472
For scrub results, run "zpool status -v" from the shell. Here's an example of the output.

scrub repaired 0 in 0h31m with 0 errors on Sat Jan 19 10:28:28 2013
 

nakos

Dabbler
Joined
Dec 29, 2013
Messages
12
This is how i set scrub...but unfortunately doesn't start!
3nsf.jpg

For SMART I have drives da0, da1, etc... instead of ada0, ada1, etc... i think is the same process...is now set to start at 19pm (so in 15min for my local time)...i will let you know

Thank you
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
Those settings are set so that a scrub will occur every sunday at 1400, but only if there has been at least 35 days since the last completed scrub.
 

nakos

Dabbler
Joined
Dec 29, 2013
Messages
12
SMART suppose to start at 19pm as shown in the picture below...is it running?
ljw8.jpg


Here the result of smartctl -a /dev/da1

smartctl 6.2 2013-07-26 r3841 [FreeBSD 9.2-RELEASE amd64] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family: Seagate Desktop HDD.15
Device Model: ST4000DM000-1F2168
Serial Number: W300EP7B
LU WWN Device Id: 5 000c50 069963f49
Firmware Version: CC52
User Capacity: 4,000,787,030,016 bytes [4.00 TB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate: 5900 rpm
Device is: In smartctl database [for details use: -P show]
ATA Version is: ATA8-ACS T13/1699-D revision 4
SATA Version is: SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Sun Jan 5 19:10:34 2014 GST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status: (0x00) Offline data collection activity
was never started.
Auto Offline Data Collection: Disabled.
Self-test execution status: ( 249) Self-test routine in progress...
90% of test remaining.
Total time to complete Offline
data collection: ( 602) seconds.
Offline data collection
capabilities: (0x73) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
No Offline surface scan supported.
Self-test supported.
Conveyance Self-test supported.
Selective Self-test supported.
SMART capabilities: (0x0003) Saves SMART data before entering
power-saving mode.
Supports SMART auto save timer.
Error logging capability: (0x01) Error logging supported.
General Purpose Logging supported.
Short self-test routine
recommended polling time: ( 1) minutes.
Extended self-test routine
recommended polling time: ( 506) minutes.
Conveyance self-test routine
recommended polling time: ( 2) minutes.
SCT capabilities: (0x1085) SCT Status supported.

SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x000f 118 099 006 Pre-fail Always - 201317120
3 Spin_Up_Time 0x0003 092 091 000 Pre-fail Always - 0
4 Start_Stop_Count 0x0032 100 100 020 Old_age Always - 57
5 Reallocated_Sector_Ct 0x0033 100 100 010 Pre-fail Always - 0
7 Seek_Error_Rate 0x000f 072 060 030 Pre-fail Always - 4315736237
9 Power_On_Hours 0x0032 098 098 000 Old_age Always - 2233
10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 100 100 020 Old_age Always - 31
183 Runtime_Bad_Block 0x0032 099 099 000 Old_age Always - 1
184 End-to-End_Error 0x0032 100 100 099 Old_age Always - 0
187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always - 0
188 Command_Timeout 0x0032 100 100 000 Old_age Always - 0 0 0
189 High_Fly_Writes 0x003a 097 097 000 Old_age Always - 3
190 Airflow_Temperature_Cel 0x0022 069 049 045 Old_age Always - 31 (Min/Max 29/34)
191 G-Sense_Error_Rate 0x0032 100 100 000 Old_age Always - 0
192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 31
193 Load_Cycle_Count 0x0032 075 075 000 Old_age Always - 51845
194 Temperature_Celsius 0x0022 031 051 000 Old_age Always - 31 (0 21 0 0 0)
197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0
240 Head_Flying_Hours 0x0000 100 253 000 Old_age Offline - 1783h+33m+46.168s
241 Total_LBAs_Written 0x0000 100 253 000 Old_age Offline - 20339076153
242 Total_LBAs_Read 0x0000 100 253 000 Old_age Offline - 44246030665

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
# 1 Extended offline Self-test routine in progress 90% 2233 -
# 2 Extended offline Completed without error 00% 2128 -
# 3 Short offline Completed without error 00% 2085 -
# 4 Short offline Completed without error 00% 1917 -
# 5 Extended offline Completed without error 00% 1385 -
# 6 Extended offline Completed without error 00% 669 -
# 7 Short offline Completed without error 00% 237 -

SMART Selective self-test log data structure revision number 1
SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
1 0 0 Not_testing
2 0 0 Not_testing
3 0 0 Not_testing
4 0 0 Not_testing
5 0 0 Not_testing
Selective self-test flags (0x0):
After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
# 1 Extended offline Self-test routine in progress 90% 2233 -

It is indeed running! Don't shutdown or reboot the server. :)
 
Status
Not open for further replies.
Top