linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Scrub bug on kernel 2.13
@ 2014-04-07  8:32 Swâmi Petaramesh
  2014-04-07  8:40 ` Swâmi Petaramesh
  2014-04-07  9:02 ` Hugo Mills
  0 siblings, 2 replies; 4+ messages in thread
From: Swâmi Petaramesh @ 2014-04-07  8:32 UTC (permalink / raw)
  To: linux-btrfs

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

-- 
Swâmi Petaramesh <swami@petaramesh.org> http://petaramesh.org PGP 9076E32E


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Scrub bug on kernel 2.13
  2014-04-07  8:32 Scrub bug on kernel 2.13 Swâmi Petaramesh
@ 2014-04-07  8:40 ` Swâmi Petaramesh
  2014-04-07  9:02 ` Hugo Mills
  1 sibling, 0 replies; 4+ messages in thread
From: Swâmi Petaramesh @ 2014-04-07  8:40 UTC (permalink / raw)
  To: linux-btrfs

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


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

-- 
Swâmi Petaramesh <swami@petaramesh.org> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Scrub bug on kernel 2.13
  2014-04-07  8:32 Scrub bug on kernel 2.13 Swâmi Petaramesh
  2014-04-07  8:40 ` Swâmi Petaramesh
@ 2014-04-07  9:02 ` Hugo Mills
  2014-04-07  9:12   ` Scrub bug on kernel 3.13 Swâmi Petaramesh
  1 sibling, 1 reply; 4+ messages in thread
From: Hugo Mills @ 2014-04-07  9:02 UTC (permalink / raw)
  To: Swâmi Petaramesh; +Cc: linux-btrfs

[-- Attachment #1: Type: text/plain, Size: 1491 bytes --]

On Mon, Apr 07, 2014 at 10:32:04AM +0200, Swâmi Petaramesh wrote:
> 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.

> 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
> 

-- 
=== 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. ---    

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 811 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Scrub bug on kernel 3.13
  2014-04-07  9:02 ` Hugo Mills
@ 2014-04-07  9:12   ` Swâmi Petaramesh
  0 siblings, 0 replies; 4+ messages in thread
From: Swâmi Petaramesh @ 2014-04-07  9:12 UTC (permalink / raw)
  To: Hugo Mills; +Cc: linux-btrfs

[-- Attachment #1: Type: text/plain, Size: 1084 bytes --]

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

> and you should be OK.

I'm OK, thanks ! :-)

> 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 <teg@jklm.no>
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 :-)

-- 
Swâmi Petaramesh <swami@petaramesh.org> http://petaramesh.org PGP 9076E32E

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 190 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-04-07  9:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-07  8:32 Scrub bug on kernel 2.13 Swâmi Petaramesh
2014-04-07  8:40 ` Swâmi Petaramesh
2014-04-07  9:02 ` Hugo Mills
2014-04-07  9:12   ` Scrub bug on kernel 3.13 Swâmi Petaramesh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).