Scrub bug on kernel 2.13
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 errorsroot@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 errorsSignature · 1 line
Swâmi Petaramesh <[email protected]> http://petaramesh.org PGP 9076E32E
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 errorsroot@zafu:~# btrfs scrub cancel / ERROR: scrub cancel failed on /: not runningroot@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
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 errorsroot@zafu:~# btrfs scrub cancel / ERROR: scrub cancel failed on /: not runningroot@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. --- 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