Are scrubs supposed to happen automatically ?

Status
Not open for further replies.

Fritzolio

Explorer
Joined
Oct 12, 2015
Messages
63
I thought and it looks like it's set up that way but it's been 37 days since I did a manual scrub and 1 first of the month has passed and no automatic scrub. Am I missing something?

Thanks
 

BigDave

FreeNAS Enthusiast
Joined
Oct 6, 2013
Messages
2,479
Scrubs are set at default of every 35 days iirc.
You could always check the manual for the version of FreeNAS you are running.
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,996
It's possible you changed the scrub settings, have you looked at them to see what they are?

EDIT: Post the output of "cat /etc/crontab"
 

Fritzolio

Explorer
Joined
Oct 12, 2015
Messages
63
Code:
#                                                                                                                                  
# $FreeBSD: src/etc/crontab,v 1.33.2.1 2009/08/03 08:13:06 kensmith Exp $                                                          
#                                                                                                                                  
SHELL=/bin/sh                                                                                                                      
PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin                                                                                            
#                                                                                                                                  
#minute hour    mday    month   wday    who     command                                                                            
#                                                                                                                                  
*/5     *       *       *       *       root    /usr/libexec/atrun                                                                 
#                                                                                                                                  
# Save some entropy so that /dev/random can re-seed on boot.                                                                       
*/11    *       *       *       *       operator /usr/libexec/save-entropy                                                         
#                                                                                                                                  
# Rotate log files only at midnight.                                                                                               
0       0       *       *       *       root    newsyslog                                                                          
#                                                                                                                                  
# Perform daily/weekly/monthly maintenance.                                                                                        
1       3       *       *       *       root    periodic daily                                                                     
15      4       *       *       6       root    periodic weekly                                                                    
30      5       1       *       *       root    periodic monthly                                                                   
#                                                                                                                                  
# Adjust the time zone if the CMOS clock keeps local time, as opposed to                                                           
# UTC time.  See adjkerntz(8) for details.                                                                                         
1,31    0-5     *       *       *       root    adjkerntz -a                                                                       
                                                                                                                                   
0       *       *       *       *       root    /bin/sh /usr/local/sbin/save_rrds.sh                                               
                                                                                                                                   
5       3       *       *       *       root    /bin/sh /usr/local/bin/telemetry-cron.sh > /dev/null 2>&1                          
                                                                                                                                   
0       *       *       *       *       root    /usr/local/bin/python /usr/local/bin/mfistatus.py > /dev/null 2>&1                 
1,31    *       *       *       *       root    /usr/local/bin/python /usr/local/www/freenasUI/tools/alert.py > /dev/null 2>&1     
                                                                                                                                   
15      3       *       *       *       root    /usr/local/bin/python /usr/local/www/freenasUI/tools/cachetool.py expire >/dev/null
2>&1                                                                                                                               
30      3       *       *       *       root    /usr/local/bin/python /usr/local/www/freenasUI/tools/cachetool.py fill >/dev/null 2>
&1                                                                                                                                 
45      3       *       *       *       root    /usr/local/bin/python /usr/local/www/freenasUI/middleware/notifier.py backup_db >/de
v/null 2>&1                                                                                                                        
0       3       *       *       *       root    find /tmp/ -iname "sessionid*" -ctime +1d -delete                                  
30      */5     *       *       *       root    /etc/ix.rc.d/ix-kinit renew                                                        
45      3       *       *       *       root    /usr/local/libexec/nas/scrub -t 35 freenas-boot                                    
00      00      *       *       7       root    PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/root/bin" /usr/l
ocal/libexec/nas/scrub -t 35 Backups                                                                                               
00      00      *       *       7       root    PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/root/bin" /usr/l
ocal/libexec/nas/scrub -t 35 Media                                                                                                 
15      4       *       *       6       root    /usr/local/bin/python /usr/local/www/freenasUI/tools/autosnap.py > /dev/null 2>&1  
45      3       *       *       *       root    /usr/local/bin/python /usr/local/www/freenasUI/tools/update_check.py > /dev/null 2>&
1                                                                                                                                  
@weekly root /usr/local/sbin/update-smart-drivedb > /dev/null 2>&1 
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,996
So you have two pools, one called Backup and one called Media, is that true? Those and the boot device are the only things being scrubbed.

What's the output of "zfs list"?
 

Fritzolio

Explorer
Joined
Oct 12, 2015
Messages
63
Yes sir. You are correct. The boot drive scrubbed a few days ago.

Code:
NAME                                                       USED  AVAIL  REFER  MOUNTPOINT                                          
Backups                                                   1.23T  5.46T  1.23T  /mnt/Backups                                        
Backups/.system                                           13.3M  5.46T   238K  legacy                                              
Backups/.system/configs-5ece5c906a8f4df886779fae5cade8a5  5.00M  5.46T  5.00M  legacy                                              
Backups/.system/cores                                     3.95M  5.46T  3.95M  legacy                                              
Backups/.system/rrd-5ece5c906a8f4df886779fae5cade8a5       219K  5.46T   219K  legacy                                              
Backups/.system/samba4                                    2.60M  5.46T  2.60M  legacy                                              
Backups/.system/syslog-5ece5c906a8f4df886779fae5cade8a5   1.26M  5.46T  1.26M  legacy                                              
Media                                                     11.2T  8.91T  11.2T  /mnt/Media                                          
freenas-boot                                              1.37G  70.8G   144K  none                                                
freenas-boot/ROOT                                         1.33G  70.8G   144K  none                                                
freenas-boot/ROOT/FreeNAS-9.3-STABLE-201509282017         8.58M  70.8G   673M  /                                                   
freenas-boot/ROOT/FreeNAS-9.3-STABLE-201510290351         8.71M  70.8G   674M  /                                                   
freenas-boot/ROOT/FreeNAS-9.3-STABLE-201511020249         8.70M  70.8G   674M  /                                                   
freenas-boot/ROOT/FreeNAS-9.3-STABLE-201511040813         1.30G  70.8G   674M  /                                                   
freenas-boot/ROOT/Initial-Install                            8K  70.8G   663M  legacy                                              
freenas-boot/ROOT/default                                 1.67M  70.8G   666M  legacy                                              
freenas-boot/grub                                         38.5M  70.8G  7.76M  legacy  
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,996
All looks fine. I'm curious if the scrub will occur this Sunday, but for the hell of it... What is the output for "zpool status", honest, that should be the last thing I ask for the CLI.
 

Fritzolio

Explorer
Joined
Oct 12, 2015
Messages
63
Thanks.

Code:
config:                                                                                                                            
                                                                                                                                   
        NAME                                            STATE     READ WRITE CKSUM                                                 
        Backups                                         ONLINE       0     0     0                                                 
          raidz2-0                                      ONLINE       0     0     0                                                 
            gptid/d2a3ebe9-6dd2-11e5-9872-0025506d5920  ONLINE       0     0     0                                                 
            gptid/d33ed617-6dd2-11e5-9872-0025506d5920  ONLINE       0     0     0                                                 
            gptid/6992f25a-70f5-11e5-9979-0025506d5920  ONLINE       0     0     0                                                 
            gptid/d458720a-6dd2-11e5-9872-0025506d5920  ONLINE       0     0     0                                                 
            gptid/d4da0560-6dd2-11e5-9872-0025506d5920  ONLINE       0     0     0                                                 
            gptid/d5814cc8-6dd2-11e5-9872-0025506d5920  ONLINE       0     0     0                                                 
            gptid/d621fa75-6dd2-11e5-9872-0025506d5920  ONLINE       0     0     0                                                 
            gptid/d6c26d9c-6dd2-11e5-9872-0025506d5920  ONLINE       0     0     0                                                 
            gptid/d74ec652-6dd2-11e5-9872-0025506d5920  ONLINE       0     0     0                                                 
            gptid/d7cf4606-6dd2-11e5-9872-0025506d5920  ONLINE       0     0     0                                                 
                                                                                                                                   
errors: No known data errors                                                                                                       
                                                                                                                                   
  pool: Media                                                                                                                      
state: ONLINE                                                                                                                     
  scan: scrub repaired 0 in 7h9m with 0 errors on Sun Oct 18 22:13:44 2015                                                         
config:                                                                                                                            
                                                                                                                                   
        NAME                                            STATE     READ WRITE CKSUM                                                 
        Media                                           ONLINE       0     0     0                                                 
          raidz2-0                                      ONLINE       0     0     0                                                 
            gptid/b6eab5ca-6ebf-11e5-8172-0025506d5920  ONLINE       0     0     0                                                 
            gptid/b739a134-6ebf-11e5-8172-0025506d5920  ONLINE       0     0     0                                                 
            gptid/b89b90ff-6ebf-11e5-8172-0025506d5920  ONLINE       0     0     0                                                 
            gptid/bb328746-6ebf-11e5-8172-0025506d5920  ONLINE       0     0     0                                                 
            gptid/bd77eede-6ebf-11e5-8172-0025506d5920  ONLINE       0     0     0                                                 
            gptid/bed16740-6ebf-11e5-8172-0025506d5920  ONLINE       0     0     0                                                 
            gptid/c081bc3e-6ebf-11e5-8172-0025506d5920  ONLINE       0     0     0                                                 
            gptid/c1ab7699-6ebf-11e5-8172-0025506d5920  ONLINE       0     0     0                                                 
            gptid/c20d5c5a-6ebf-11e5-8172-0025506d5920  ONLINE       0     0     0                                                 
            gptid/1b179f4e-72b6-11e5-82bd-0025506d5920  ONLINE       0     0     0                                                 
                                                                                                                                   
errors: No known data errors                                                                                                       
                                                                                                                                   
  pool: freenas-boot                                                                                                               
state: ONLINE                                                                                                                     
  scan: scrub repaired 0 in 0h0m with 0 errors on Tue Nov 10 03:45:12 2015                                                         
config:                                                                                                                            
                                                                                                                                   
        NAME        STATE     READ WRITE CKSUM                                                                                     
        freenas-boot  ONLINE       0     0     0                                                                                   
          ada0p2    ONLINE       0     0     0                                                                                     
                                                                                                                                   
errors: No known data errors                 
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,996
What happened tot he top line of the message, I wanted to see when the Backups scrub was last completed as well.

Based on this information your scrub will occur on Sunday. This is normal, it's not 30 days, it's 35 minimum and then to the next Sunday. It should run a scrub this up coming Sunday.
 

Fritzolio

Explorer
Joined
Oct 12, 2015
Messages
63
Sorry, didn't mean to cut it off. I did both scrubs on the same day.

I'll report back after Sunday.

Thanks for the help. :)
 

Fritzolio

Explorer
Joined
Oct 12, 2015
Messages
63
You were right, scrubs occurred last night and all is well. Installing the latest update now.

Thanks for the help. :)
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,996
No problem. Once I saw the last date of your scrub, it was easy to figure out.
 
Status
Not open for further replies.
Top