[[fester:scrub]]

Scrub Schedules

Maintaining your FreeNAS server is very important. It can be the difference between knowing your server may be developing a problem which gives you some time to take remedial action, or getting up one morning and realising your servers bust and the data has been lost.

Part of a good server maintenance routine is performing regular scrubs of the drives and periodically running SMART tests.

There are a few things you need to know before starting.

  1. Do not schedule scrubs and SMART tests to run at the same time. This can cause the scrub to never complete.
  2. Only one SMART test at a time can be run on the same disk. We cannot have a scenario were the Long test and the Short test are running simultaneously on the same drive.
  3. Scrubs and SMART tests are almost pointless on SSDs (Fester does not know why. I can see why surface scans and badblocks tests would be a waste of time, but not scrubs and some types of SMART tests. If anyone knows why let me know and I will try to include it in the guide.).

When considering scrubs and SMART tests all manner of questions arise. What tests should be done? How often?

It is also immediately clear that when scheduling scrubs and SMART tests we must put some thought into this so the two do not coincide with one another.

This should help.

Go to the “System” page (1) and click on the “Boot” button (2).

In the small box labelled “Automatic scrub interval (in days)” change the default value from 35 (this is too long) to 7.

That’s it.

Go to the “Storage” page.

Now click on the “Scrubs” button (1).

You have two choices here.

You can select the default scrub schedule (2) (it should turn blue when selected) and change it by clicking on the “Edit” button (3) and populating the settings within with new ones that will follow shortly.

Or you can delete it by clicking the “Delete” button (4) and create a new one (Fester prefers to delete and start from scratch).

If you deleted the default scrub schedule then click the “Add Scrub” button (1).

Whatever option you decided on before a window will pop up.

  • Select the volume the schedule applies to from the “Volume:” drop down selection menu (2) (Fester used Tank1).
  • Set the “Threshold days:” to 10 by typing it into the corresponding text box (3).
  • Give the schedule a meaningful name in the “Description:” text box (4).
  • Fester wants to schedule these tests to run on the 1st and 15th of every month at 02:00am in the morning (the server should not be busy at that time).
  • Set “Each selected minute” to 00 (5) and “Each selected hour” to 02 (6).
  • Scroll down the window.

In the “Each selected day of the month” box select the 1st day by clicking on 01 (7) and the 15th day by clicking on 15 (8).

Put a tick in every tick box for every month (9).

Now scroll down the window.

Put a tick in every tick box for every day of the week (10).

Now click on the “OK” button (11) to save this scrub schedule.

That’s the scrub schedule set.

  • fester/scrub.txt
  • Last modified: 2016/06/11 14:21
  • by dan