Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#51629 - [btrfs-progs] Scrub isn't working

Attached to Project: Arch Linux
Opened by Kai Hendry (hendry) - Tuesday, 01 November 2016, 14:59 GMT
Last edited by Dave Reisner (falconindy) - Tuesday, 01 November 2016, 15:38 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Scrub doesn't appear to work

Additional info:
* 4.8.2-1


Steps to reproduce:

nuc:~$ systemctl | grep btrfs
var-lib-docker-btrfs.mount loaded active mounted /var/lib/docker/btrfs
btrfs-scrub@-mnt-raid1-.service loaded failed failed btrfs-scrub@-mnt-raid1-.se
rvice
system-btrfs\x2dscrub.slice loaded active active system-btrfs\x2dscrub.slic
e
btrfs-scrub@-.timer loaded active waiting Monthly Btrfs scrub on /
btrfs-scrub@-mnt-raid1-.timer loaded active waiting btrfs-scrub@-mnt-raid1-.ti
mer
nuc:~$ systemctl status btrfs-scrub@-mnt-raid1-.service
btrfs-scrub@-mnt-raid1-.service
Loaded: loaded (/usr/lib/systemd/system/btrfs-scrub@.service; static; vendor preset: disabled)
Active: failed (Result: resources)

Nov 01 00:00:46 nuc systemd[1]: btrfs-scrub@-mnt-raid1-.service: Failed to run 'start' task: Invalid argument
Nov 01 00:00:46 nuc systemd[1]: Failed to start btrfs-scrub@-mnt-raid1-.service.
Nov 01 00:00:46 nuc systemd[1]: btrfs-scrub@-mnt-raid1-.service: Unit entered failed state.
Nov 01 00:00:46 nuc systemd[1]: btrfs-scrub@-mnt-raid1-.service: Failed with result 'resources'.
Nov 01 16:16:37 nuc systemd[1]: [/usr/lib/systemd/system/btrfs-scrub@.service:2] Failed to resolve unit specifiers on Btrfs scrub on %f, ignoring: Invalid argu
nuc:~$ systemctl status btrfs-scrub@-mnt-raid1-.timer
btrfs-scrub@-mnt-raid1-.timer
Loaded: loaded (/usr/lib/systemd/system/btrfs-scrub@.timer; enabled; vendor preset: disabled)
Active: active (waiting) since Sat 2016-10-29 13:55:16 SGT; 3 days ago

Oct 29 13:55:16 nuc systemd[1]: Started btrfs-scrub@-mnt-raid1-.timer.
Nov 01 16:16:37 nuc systemd[1]: [/usr/lib/systemd/system/btrfs-scrub@.timer:2] Failed to resolve unit specifiers on Monthly Btrfs scrub on %f, ignoring: Invali
nuc:~$ systemctl status btrfs-scrub@-.timer
btrfs-scrub@-.timer - Monthly Btrfs scrub on /
Loaded: loaded (/usr/lib/systemd/system/btrfs-scrub@.timer; enabled; vendor preset: disabled)
Active: active (waiting) since Sat 2016-10-29 13:55:16 SGT; 3 days ago

Oct 29 13:55:16 nuc systemd[1]: Started Monthly Btrfs scrub on /.
nuc:~$ mount
/dev/sda2 on / type btrfs (rw,relatime,ssd,space_cache,subvolid=5,subvol=/)
/dev/sdb1 on /mnt/raid1 type btrfs (rw,noatime,space_cache,subvolid=5,subvol=/)
This task depends upon

Closed by  Dave Reisner (falconindy)
Tuesday, 01 November 2016, 15:38 GMT
Reason for closing:  Not a bug
Comment by Kai Hendry (hendry) - Tuesday, 01 November 2016, 15:27 GMT
sudo systemctl disable btrfs-scrub@-mnt-raid1-.timer
sudo systemctl enable btrfs-scrub@mnt-raid1.timer

Has fixed it. Sorry for the noise.

Loading...