Skip to contentSkip to conversation

Scrub bug on kernel 2.13

DISCUSSION Swâmi Petaramesh 2 participants 4 messages Apr 7, 2014 Btrfs file system

lore
Share & tools
lore
#0 lore raw

Hi there,

Machine got rebooted while scrub was in process, and now it looks like a scrub zombie...

How do I restore this to a normal non-zombie state ?

root@zafu:~# btrfs scrub status /
scrub status for 13c87f57-3a85-4daf-a4bf-ba777407c169
        scrub started at Mon Apr  7 09:49:48 2014, running for 693 seconds
        total bytes scrubbed: 34.06GiB with 0 errors
root@zafu:~# btrfs scrub cancel /
ERROR: scrub cancel failed on /: not running
root@zafu:~# btrfs scrub start /
ERROR: scrub is already running.
To cancel use 'btrfs scrub cancel /'.
To see the status use 'btrfs scrub status [-d] /'.
root@zafu:~# btrfs scrub status /
scrub status for 13c87f57-3a85-4daf-a4bf-ba777407c169
        scrub started at Mon Apr  7 09:49:48 2014, running for 693 seconds
        total bytes scrubbed: 34.06GiB with 0 errors
Signature · 1 line
Swâmi Petaramesh <[email protected]> http://petaramesh.org PGP 9076E32E
#1 lore raw

Sorry, I meant kernel 3.13 :-)

Linux zafu 3.13.8-1-ARCH #1 SMP PREEMPT Tue Apr 1 12:19:51 CEST 2014 x86_64 GNU/Linux

Quoted 24 lines · Le lundi 7 avril 2014 10:32:04 Swâmi Petaramesh a écrit :

Hi there,

Machine got rebooted while scrub was in process, and now it looks like a scrub zombie...

How do I restore this to a normal non-zombie state ?

root@zafu:~# btrfs scrub status /
scrub status for 13c87f57-3a85-4daf-a4bf-ba777407c169
        scrub started at Mon Apr  7 09:49:48 2014, running for 693 seconds
        total bytes scrubbed: 34.06GiB with 0 errors
root@zafu:~# btrfs scrub cancel /
ERROR: scrub cancel failed on /: not running
root@zafu:~# btrfs scrub start /
ERROR: scrub is already running.
To cancel use 'btrfs scrub cancel /'.
To see the status use 'btrfs scrub status [-d] /'.
root@zafu:~# btrfs scrub status /
scrub status for 13c87f57-3a85-4daf-a4bf-ba777407c169
        scrub started at Mon Apr  7 09:49:48 2014, running for 693 seconds
        total bytes scrubbed: 34.06GiB with 0 errors
Signature · 10 lines
Swâmi Petaramesh <[email protected]> http://petaramesh.org PGP 9076E32E
Protégez votre vie privée : Chiffrez vos e-mails avec GnuPG

Art 20. de la Loi de Programmation Militaire 2013-1168 du 18/12/2013:
Tout ce que vous lirez, écrirez, consulterez ou penserez sur Internet
sera collecté par les services de renseignement, compilé, conservé
et retenu contre vous lors de votre procès.

"Pour une défense de la démocratie à l'ère numérique" http://goo.gl/FsRfbq
La Quadrature du Net : http://goo.gl/f16cw1
#2 lore raw
In reply to Swâmi Petaramesh
Quoted 6 lines · Swâmi Petaramesh

Hi there,

Machine got rebooted while scrub was in process, and now it looks like a scrub zombie...

How do I restore this to a normal non-zombie state ?

There's a status file in /var/lib/btrfs (at least, it's somewhere
near there -- I think that's it, though). Delete that, and you should be OK. It's a known bug, and I'm fairly sure it was fixed in the userspace tools some time ago. What version of the tools are you using?

Hugo.

Quoted 18 lines
root@zafu:~# btrfs scrub status /
scrub status for 13c87f57-3a85-4daf-a4bf-ba777407c169
        scrub started at Mon Apr  7 09:49:48 2014, running for 693 seconds
        total bytes scrubbed: 34.06GiB with 0 errors
root@zafu:~# btrfs scrub cancel /
ERROR: scrub cancel failed on /: not running
root@zafu:~# btrfs scrub start /
ERROR: scrub is already running.
To cancel use 'btrfs scrub cancel /'.
To see the status use 'btrfs scrub status [-d] /'.
root@zafu:~# btrfs scrub status /
scrub status for 13c87f57-3a85-4daf-a4bf-ba777407c169
        scrub started at Mon Apr  7 09:49:48 2014, running for 693 seconds
        total bytes scrubbed: 34.06GiB with 0 errors
Signature · 3 lines
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
  PGP key: 65E74AC0 from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
    --- Questions are a burden, and answers a prison for oneself. ---    
#3 lore raw

Re: Scrub bug on kernel 3.13

Quoted 2 lines · Le lundi 7 avril 2014 10:02:36 Hugo Mills a écrit :

There's a status file in /var/lib/btrfs (at least, it's somewhere
near there -- I think that's it, though). Delete that

# rm /var/lib/btrfs/scrub.status.13c87f57-3a85-4daf-a4bf-ba777407c169
Quoted 1 line

and you should be OK.

I'm OK, thanks ! :-)

Quoted 1 line

What version of the tools are you using?

Latest Arch available version:

# pacman -Qi btrfs-progs
Name           : btrfs-progs
Version        : 3.12-1
Description    : btrfs filesystem utilities
Architecture   : x86_64
URL            : http://btrfs.wiki.kernel.org/
[...]
Provides       : btrfs-progs-unstable
[...]
Conflicts With : btrfs-progs-unstable
Replaces       : btrfs-progs-unstable
Installed Size : 2480,00 KiB
Packager       : Tom Gundersen <[email protected]>
Build Date     : mer. 27 nov. 2013 12:24:33 CET
Install Date   : dim. 22 déc. 2013 09:48:58 CET
Install Reason : Explicitly installed
Install Script : Yes
Validated By   : Signature

Thanks again :-)

Signature · 1 line
Swâmi Petaramesh <[email protected]> http://petaramesh.org PGP 9076E32E