All of lore.kernel.org
 help / color / mirror / Atom feed
* Problems with BTRFS formatted disk
@ 2022-06-18 18:55 David C. Partridge
  2022-06-18 23:00 ` Qu Wenruo
  0 siblings, 1 reply; 24+ messages in thread
From: David C. Partridge @ 2022-06-18 18:55 UTC (permalink / raw)
  To: linux-btrfs

It all started with a power outage.

When I brought the system back up I got:

Jun 18 15:40:27 charon kernel: BTRFS error (device sdb1): parent transid
verify failed on 12554992156672 wanted 130582 found 127355
Jun 18 15:40:27 charon kernel: BTRFS error (device sdb1): parent transid
verify failed on 12554992156672 wanted 130582 found 127355
Jun 18 15:40:27 charon kernel: BTRFS error (device sdb1): failed to read
block groups: -5
Jun 18 15:40:27 charon mount[629]: mount: /shared: wrong fs type, bad
option, bad superblock on /dev/sdb1, missing codepage or helper program, or
othe>
Jun 18 15:40:27 charon systemd[1]: shared.mount: Mount process exited,
code=exited, status=32/n/a
Jun 18 15:40:27 charon systemd[1]: shared.mount: Failed with result
'exit-code'.
Jun 18 15:40:27 charon systemd[1]: Failed to mount /shared.
Jun 18 15:40:27 charon kernel: BTRFS error (device sdb1): open_ctree failed

I tried:
root@charon:/home/amonra# btrfs check /dev/sdb1
Opening filesystem to check...
parent transid verify failed on 12554992156672 wanted 130582 found 127355
parent transid verify failed on 12554992156672 wanted 130582 found 127355
parent transid verify failed on 12554992156672 wanted 130582 found 127355
Ignoring transid failure
leaf parent key incorrect 12554992156672
ERROR: failed to read block groups: Operation not permitted
ERROR: cannot open file system
root@charon:/home/amonra# btrfs check -s 1 /dev/sdb1
using SB copy 1, bytenr 67108864
Opening filesystem to check...
parent transid verify failed on 12554992156672 wanted 130582 found 127355
parent transid verify failed on 12554992156672 wanted 130582 found 127355
parent transid verify failed on 12554992156672 wanted 130582 found 127355
Ignoring transid failure
leaf parent key incorrect 12554992156672
ERROR: failed to read block groups: Operation not permitted
ERROR: cannot open file system
root@charon:/home/amonra# btrfs check -s 2 /dev/sdb1
using SB copy 2, bytenr 274877906944
Opening filesystem to check...
parent transid verify failed on 12554992156672 wanted 130582 found 127355
parent transid verify failed on 12554992156672 wanted 130582 found 127355
parent transid verify failed on 12554992156672 wanted 130582 found 127355
Ignoring transid failure
leaf parent key incorrect 12554992156672
ERROR: failed to read block groups: Operation not permitted
ERROR: cannot open file system
root@charon:/home/amonra#

but that didn't achieve much.

Following advice I tried: btrfs rescue zero-log which appeared to work, but
attempt to mount afterwards gave me:

Jun 18 18:58:38 charon kernel: BTRFS info (device sdb1): flagging fs with
big metadata feature
Jun 18 18:58:38 charon kernel: BTRFS info (device sdb1): disk space caching
is enabled
Jun 18 18:58:38 charon kernel: BTRFS info (device sdb1): has skinny extents
Jun 18 18:58:39 charon kernel: BTRFS error (device sdb1): parent transid
verify failed on 12554992156672 wanted 130582 found 127355
Jun 18 18:58:39 charon kernel: BTRFS error (device sdb1): parent transid
verify failed on 12554992156672 wanted 130582 found 127355
Jun 18 18:58:39 charon kernel: BTRFS error (device sdb1): failed to read
block groups: -5
Jun 18 18:58:39 charon kernel: BTRFS error (device sdb1): open_ctree failed

In desperation I tried: btrfs check --repair which gave me:

Opening filesystem to check...
parent transid verify failed on 12554992156672 wanted 130582 found 127355
parent transid verify failed on 12554992156672 wanted 130582 found 127355
parent transid verify failed on 12554992156672 wanted 130582 found 127355
Ignoring transid failure
leaf parent key incorrect 12554992156672
ERROR: failed to read block groups: Operation not permitted
ERROR: cannot open file system

So what do I do now?  I don't have a disk large enough to attempt btrfs
restore (if that would even work).  I don't have a backup of this volume as
this is my backup disk.

Thanks 
David










Cheers, David



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

end of thread, other threads:[~2022-06-20  8:19 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-18 18:55 Problems with BTRFS formatted disk David C. Partridge
2022-06-18 23:00 ` Qu Wenruo
2022-06-19  1:33   ` David C. Partridge
2022-06-19  2:01     ` Qu Wenruo
2022-06-19 10:29       ` David C. Partridge
2022-06-19 10:40         ` Qu Wenruo
2022-06-19 11:14           ` David C. Partridge
2022-06-19 11:51             ` Qu Wenruo
2022-06-19 12:53               ` David C. Partridge
2022-06-19 13:21                 ` Qu Wenruo
2022-06-19 13:26                 ` David C. Partridge
2022-06-19 13:30                   ` Qu Wenruo
2022-06-19 14:15                     ` David C. Partridge
2022-06-19 19:06                       ` Andrei Borzenkov
2022-06-19 20:06                         ` David C. Partridge
2022-06-20  0:38                           ` Qu Wenruo
2022-06-20  1:01                             ` Wang Yugui
2022-06-20  2:04                               ` Qu Wenruo
2022-06-20  2:12                                 ` Wang Yugui
2022-06-20  2:12                                   ` Qu Wenruo
2022-06-20  8:19                             ` David C. Partridge
2022-06-19 21:40                       ` Qu Wenruo
2022-06-20  8:17                         ` David C. Partridge
2022-06-19  1:37   ` David C. Partridge

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.