kylemanna
9/24/2014 - 8:08 PM

btrfs-scrub.service

[Unit]
Description=Check volume for errors once a week
Documentation=man:btrfs-scrub

[Timer]
OnCalendar=weekly
AccuracySec=1h
Persistent=true

[Install]
WantedBy=multi-user.target
[Unit]
Description=Check volume for errors
Documentation=man:btrfs-scrub
After=fstrim.service

[Service]
Type=oneshot
ExecStart=/usr/bin/btrfs scrub start -Bd /mnt/massive
IOSchedulingClass=idle
CPUSchedulingPolicy=idle