All of lore.kernel.org
 help / color / mirror / Atom feed
* Repair broken btrfs raid6?
@ 2015-02-09 22:45 Tobias Holst
  2015-02-10  3:36 ` Duncan
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Tobias Holst @ 2015-02-09 22:45 UTC (permalink / raw)
  To: linux-btrfs

Hi

I'm having some trouble with my six-drives btrfs raid6 (each drive
encrypted with LUKS). At first: Yes, I do have backups, but it may
take at least days, maybe weeks or even some month to restore
everything from the (offside) backups. So it is not essential to
recover the data, but would be great ;-)

OS: Ubuntu 14.04
Kernel: 3.19.0
btrfs-progs: 3.19-rc2

When booting my server I am getting this in the syslog:
> [    8.026362] BTRFS: device label tobby-btrfs devid 3 transid 108721 /dev/dm-0
> [    8.118896] BTRFS: device label tobby-btrfs devid 6 transid 108721 /dev/dm-1
> [    8.202477] BTRFS: device label tobby-btrfs devid 1 transid 108721 /dev/dm-2
> [    8.520988] BTRFS: device label tobby-btrfs devid 4 transid 108721 /dev/dm-3
> [    8.555570] BTRFS info (device dm-3): force lzo compression
> [    8.555574] BTRFS info (device dm-3): disk space caching is enabled
> [    8.556310] BTRFS: failed to read the system array on dm-3
> [    8.592135] BTRFS: open_ctree failed
> [    9.039187] BTRFS: device label tobby-btrfs devid 2 transid 108721 /dev/dm-4
> [    9.107779] BTRFS: device label tobby-btrfs devid 5 transid 108721 /dev/dm-5
Looks like there is something wrong on drive 3, giving me "open_ctree
failed". I have to press "S" to skip mounting of the btrfs volume. It
boots and with "sudo mount --all" I can successfully mount the btrfs
volume. Sometimes it takes one or two minutes but it will mount.

After a while I am sometimes/randomly getting this in the syslog:
> [ 1161.283246] BTRFS: dm-5 checksum verify failed on 39099619901440 wanted BB5B0AD5 found 6B6F5040 level 0
Looks like something else is broken on dm-5... But shouldn't this be
repaired with the new raid56-repair-features of kernel 3.19?

After some more time I am getting this:
> [637017.631044] BTRFS (device dm-4): parent transid verify failed on 39099305132032 wanted 108722 found 108719
Then it is not possible to access the mounted volume anymore. I have
to "umount -l" to unmount it and then I can remount it. Until it
happens again (after some time)...

I also tried a balance and a scrub but they "crash". Syslog is full of
messages like the following examples:
> [ 3355.523157] csum_tree_block: 53 callbacks suppressed
> [ 3355.523160] BTRFS: dm-5 checksum verify failed on 39099306917888 wanted F90D8231 found 5981C697 level 0
> [ 4006.935632]  BTRFS (device dm-5): parent transid verify failed on 30525418536960 wanted 108975 found 108767
and "btrfs scrub status /[device]" gives me the following output:
> "scrub status for [UUID]
>        scrub started at Mon Feb  9 18:16:38 2015 and was aborted after 2008 seconds
>        total bytes scrubbed: 113.04GiB with 0 errors"

So a short summary:
- btrfs raid6 on 3.19.0 with btrfs-progs 3.19-rc2
- does not mount at boot up, "open_ctree failed" (disk 3)
- mounts successfully after bootup
- randomly "checksum verify failed" (disk 5)
- balance and scrub crash after some time
- after a while the volume gets unreadable, saying "parent transid
verify failed" (disk 4 or 5)

And it looks like there still is no way to btrfsck a raid6.

Any ideas how to repair this filesystem?

Regards,
Tobias

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

end of thread, other threads:[~2015-02-15 20:46 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-09 22:45 Repair broken btrfs raid6? Tobias Holst
2015-02-10  3:36 ` Duncan
2015-02-10  7:17 ` Kai Krakow
2015-02-10 13:15   ` Ed Tomlinson
2015-02-13  1:12     ` Kai Krakow
2015-02-10 18:18   ` Tobias Holst
2015-02-11 14:46 ` Tobias Holst
2015-02-12  9:16   ` Liu Bo
2015-02-12 23:22     ` Tobias Holst
2015-02-13  8:06       ` Liu Bo
2015-02-13 18:26         ` Tobias Holst
2015-02-13 21:54           ` Tobias Holst
2015-02-15  3:30             ` Liu Bo
2015-02-15 20:45               ` Tobias Holst

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.