Skip to content

TrueNAS / ZFS Maintenance Guidelines ​

1. Overview ​

ZFS Scrub ​

  • Purpose: Scans allocated data and metadata, verifying checksums and repairing any detected errors using redundancy (e.g., mirror).
  • Duration: Depends on used data size, disk performance, fragmentation, and workload.

SMART Tests ​

  • Types:
    • Short (few minutes)
    • Long / Extended (hoursβ€”varies by drive size)
    • Conveyance (very short, often for transit checks)
  • Warning: Should never run on the same day as a scrub or resilver due to high disk load impacting performance and reliability. (TrueNAS Open Enterprise Storage)

2. Expected Durations ​

Scrub Duration (Rule of Thumb) ​

Approximately 1–2 hours per TiB of used space on healthy disks:

SMART Test Durations ​

Test TypeFrequencyNotes
Short SMARTEvery 1–7 daysQuick health check (TrueNAS Open Enterprise Storage)
Long SMARTEvery 1–4 weeksIn-depth surface scan (TrueNAS Open Enterprise Storage)
ZFS ScrubEvery 2–4 weeksMaintains data integrity (TrueNAS Open Enterprise Storage)
Weekly AlternateAlternate scrub and long SMART testsTwo scrubs and two long SMART tests per month (TrueNAS Open Enterprise Storage)

Community-specific schedules ​

  • Thread schedule:

    β€œI run short SMART tests daily at midnight, long SMART tests weekly at 01:00 Saturdays, and scrubs every other Sunday at midnight.” (TrueNAS Open Enterprise Storage)

  • Alternate-week schedule:

    β€œShort tests about twice per week. One week: ZFS scrub; next week: long SMART test. Alternate each weekβ€”never overlap.” (TrueNAS Open Enterprise Storage)

  • Monthly date-based schedule:

    • Scrubs: 1st & 15th at 04:00 (threshold ~10 days)
    • Short SMART: 5, 12, 19, 26 @03:00
    • Long SMART: 8th & 22nd @04:00
    • Avoid scheduling on 28–31 to prevent skipping in shorter months (TrueNAS Open Enterprise Storage)
  • Modern small-office approach:

    • Scrub every 35 days (Sunday midnight)
    • Long SMART weekly (Wednesday 19:00)
    • Short SMART daily (16:00) (Practical ZFS)

4. Avoiding Yearly Conflicts ​

If you schedule scrubs monthly and SMART long tests monthly (e.g., on fixed dates), they may eventually land on the same day. Strategies to prevent conflict:

  1. Alternate weekly schedules

  2. Date offset schedule

  3. Threshold tuning

  4. Scripted chaining

    • Use zpool scrub -w to wait for scrub to finish, then trigger SMART test β€” ensures they never run simultaneously. (Practical ZFS)

5. Sample Markdown Schedule Template ​

TrueNAS Maintenance Schedule ​

TaskFrequencySchedule Example
Short SMARTEvery 1–7 daysDaily at 03:00
Long SMARTEvery 2 weeksAlternate Saturdays at 02:00
ZFS ScrubEvery 2 weeksNight after long SMART (Sunday)

Sample Alternating Weekly Schedule ​

  • Week A:
    • Sunday 02:00 – ZFS Scrub (Pool A)
    • Monday 03:00 – Short SMART (All disks)
    • (No Long SMART this week)
  • Week B:
    • Sunday 02:00 – Long SMART (All disks)
    • Monday 03:00 – Short SMART
    • (No Scrub this week)

Repeat every 4 weeks β€” ensures no overlap and consistent checks.

Tips ​

  • Never schedule SMART tests and scrubs on the same day β€” avoid performance conflicts. :contentReference[oaicite:17]
  • Tune thresholds lower than desired intervals to compensate for task run time. :contentReference[oaicite:18]
  • Consider cooling impact when running tests across many disks simultaneously β€” stagger SMART tests if needed. :contentReference[oaicite:19]
  • After each task, check results via Storage β†’ Disks β†’ [disk] β†’ S.M.A.R.T. Test Results (or via smartctl). :contentReference[oaicite:20]

6. Final Notes ​

  • Adjust task times to off-peak hours to minimize impact on users and services.
  • Monitor disk health reports and examine SMART test logs regularly.
  • If you change pool usage patterns (more data used, slower disks, heavier workload), revisit your schedule and adjust intervals as needed.

Version: dca0e30 | Updated: 2026-10-28