All of lore.kernel.org
 help / color / mirror / Atom feed
* BTRFS corruption, mounts but comes read-only
@ 2019-09-30 19:57 Remi Gauvin
  2019-09-30 21:08 ` Remi Gauvin
  0 siblings, 1 reply; 7+ messages in thread
From: Remi Gauvin @ 2019-09-30 19:57 UTC (permalink / raw)
  To: linux-btrfs

Quick history, the system was rejecting ssh connections, and was not
responding to ACPI shutdown, so I had to force power off.

On restart, everything looked ok, but when I did a scrub, the system
quickly reached a point of forced read-only., (kernel Ubuntu 4.15.0-52)

I installed a current Arch for recovery, (kernel 5.3.1 and btrfs-progs
5.2.2)

Here is the result of btrfs check

btrfs check /dev/sdd4
Opening filesystem to check...
Checking filesystem on /dev/sdd4
UUID: cd54199e-753f-4bac-862d-c9d353d3e155
[1/7] checking root items
[2/7] checking extents
corrupt extent record: key [5126707298304,169,16384]
incorrect local backref count on 5126707298304 root 5890615246848 owner
1507958538109110 offset 386035672063981056 found 0 wanted 11927552 back
0x55737707d980
backref disk bytenr does not match extent record, bytenr=5126707298304,
ref bytenr=0
tree backref 5126707298304 parent 5890436890624 root 5890436890624 not
found in extent tree
tree backref 5126707298304 parent 5890463039488 root 5890463039488 not
found in extent tree
tree backref 5126707298304 parent 5125855133696 root 5125855133696 not
found in extent tree
tree backref 5126707298304 parent 4717386399744 root 4717386399744 not
found in extent tree
tree backref 5126707298304 parent 5125777653760 root 5125777653760 not
found in extent tree
tree backref 5126707298304 parent 5126231179264 root 5126231179264 not
found in extent tree
tree backref 5126707298304 parent 4716869992448 root 4716869992448 not
found in extent tree
tree backref 5126707298304 parent 4716547129344 root 4716547129344 not
found in extent tree
tree backref 5126707298304 parent 4716575670272 root 4716575670272 not
found in extent tree
tree backref 5126707298304 parent 4418457927680 root 4418457927680 not
found in extent tree
tree backref 5126707298304 parent 4418653339648 root 4418653339648 not
found in extent tree
tree backref 5126707298304 parent 4716604555264 root 4716604555264 not
found in extent tree
tree backref 5126707298304 parent 4716953616384 root 4716953616384 not
found in extent tree
tree backref 5126707298304 parent 5890615246848 root 5890615246848 not
found in extent tree
tree backref 5126707298304 parent 4134522355712 root 4134522355712 not
found in extent tree
tree backref 5126707298304 parent 4418052734976 root 4418052734976 not
found in extent tree
tree backref 5126707298304 parent 4034125447168 root 4034125447168 not
found in extent tree
tree backref 5126707298304 parent 4034188083200 root 4034188083200 not
found in extent tree
tree backref 5126707298304 parent 4133585420288 root 4133585420288 not
found in extent tree
tree backref 5126707298304 parent 4034073935872 root 4034073935872 not
found in extent tree
tree backref 5126707298304 parent 4032730021888 root 4032730021888 not
found in extent tree
tree backref 5126707298304 parent 4033156546560 root 4033156546560 not
found in extent tree
tree backref 5126707298304 parent 4031949127680 root 4031949127680 not
found in extent tree
tree backref 5126707298304 parent 4032101384192 root 4032101384192 not
found in extent tree
tree backref 5126707298304 parent 4032197132288 root 4032197132288 not
found in extent tree
tree backref 5126707298304 parent 4034077949952 root 4034077949952 not
found in extent tree
tree backref 5126707298304 parent 4031202394112 root 4031202394112 not
found in extent tree
tree backref 5126707298304 parent 4030981292032 root 4030981292032 not
found in extent tree
tree backref 5126707298304 parent 3874566619136 root 3874566619136 not
found in extent tree
tree backref 5126707298304 parent 3874229714944 root 3874229714944 not
found in extent tree
tree backref 5126707298304 parent 3873657765888 root 3873657765888 not
found in extent tree
tree backref 5126707298304 parent 3874460270592 root 3874460270592 not
found in extent tree
tree backref 5126707298304 parent 4030556012544 root 4030556012544 not
found in extent tree
tree backref 5126707298304 parent 4031297765376 root 4031297765376 not
found in extent tree
tree backref 5126707298304 parent 4418354544640 root 4418354544640 not
found in extent tree
backpointer mismatch on [5126707298304 16384]
bad extent [5126707298304, 5126707314688), type mismatch with chunk
ERROR: errors found in extent allocation tree or chunk allocation
[3/7] checking free space tree
cache and super generation don't match, space cache will be invalidated
[4/7] checking fs roots
[5/7] checking only csums items (without verifying data)
[6/7] checking root refs
[7/7] checking quota groups skipped (not enabled on this FS)
found 4501017206864 bytes used, error(s) found
total csum bytes: 4386928432
total tree bytes: 9074900992
total fs tree bytes: 3698982912
total extent tree bytes: 377012224
btree space waste bytes: 1430502412
file data blocks allocated: 16729280847872
 referenced 8948709453824



Thank you.

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

end of thread, other threads:[~2019-10-05 23:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-30 19:57 BTRFS corruption, mounts but comes read-only Remi Gauvin
2019-09-30 21:08 ` Remi Gauvin
2019-10-01  1:30   ` Qu Wenruo
2019-10-01  1:41     ` Remi Gauvin
2019-10-01  1:53       ` Qu Wenruo
2019-10-05 17:14         ` Remi Gauvin
2019-10-05 23:18           ` Qu Wenruo

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.