btrfs check (not lowmem) and OOM-like hangs (4.17.6)
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
In reply to Josef BacikQuoted 11 lines · Josef Bacik
Quoted 6 lines · Marc MERLIN
I have
./btrfs check --repair/dev/mapper/dshelf1
on hold (^Z), waiting for your ok to proceed.All good to continue?
Hold on I'm looking at the code, I'm very confused, we shouldn't be finding any extent tree errors at this point. Let me work out what's going on. Thanks,
Ok.
I ran check without repair, at least it completed. 2.5 million lines of output but I think they mostly look like this
Opening filesystem to check...FS_INFO IS 0x555b2100de50
JOSEF: root 9
Couldn't find the last root for 8FS_INFO AFTER IS 0x555b2100de50
Checking filesystem on /dev/mapper/dshelf1
UUID: 96539b8c-ccc9-47bf-9e6c-29305890941e
[1/7] checking root items
checksum verify failed on 15645954129920 wanted 0x085fc24a found 0x941acdde
checksum verify failed on 15645954195456 wanted 0x6c1c72a4 found 0xb06d5dd9
checksum verify failed on 15645608116224 wanted 0x31706547 found 0x314fad1d
checksum verify failed on 15645262413824 wanted 0x3affbd35 found 0x96d53d25
checksum verify failed on 13577199878144 wanted 0x6e9e8bc6 found 0x61063457
checksum verify failed on 13577399156736 wanted 0x2869b8c7 found 0xbb1119e1
checksum verify failed on 12512437698560 wanted 0xca43b3f8 found 0xd7f6db69
checksum verify failed on 13577503686656 wanted 0xd81b7702 found 0x95a3c9a6
checksum verify failed on 15645781344256 wanted 0xb81e3df4 found 0xb5c70846
checksum verify failed on 13577178939392 wanted 0x2cb83118 found 0x63f0b6bf
checksum verify failed on 15645419667456 wanted 0xde0dab28 found 0x3ceddd16
checksum verify failed on 13577821011968 wanted 0x9a29aff5 found 0x2cdff391
checksum verify failed on 15645781196800 wanted 0xef669b11 found 0x46985a93
[2/7] checking extents
checksum verify failed on 364637798400 wanted 0xc3ba5144 found 0x30a5fff1
checksum verify failed on 364637962240 wanted 0x91d33e8a found 0x00890be7
checksum verify failed on 11970891186176 wanted 0x6b46adfb found 0xe40e4cbe
(...)
Device extent[1, 11416060821504, 1073741824] didn't find the relative chunk.
Device extent[1, 11422503272448, 1073741824] didn't find the relative chunk.
Device extent[1, 10616123162624, 1073741824] didn't find the relative chunk.
data backref 743381753856 parent 782895169536 owner 0 offset 0 num_refs 0 not found in extent tree incorrect local backref count on 743381753856 parent 782895169536 owner 0 offset 0 found 1 wanted 0 back 0x555b2d253630 incorrect local backref count on 743381753856 root 11222 owner 55083 offset 31752192 found 0 wanted 1 back 0x555b2d4b1bf0 backref disk bytenr does not match extent record, bytenr=743381753856, ref bytenr=0
backpointer mismatch on [743381753856 24576]
data backref 743382028288 parent 11651792814080 owner 0 offset 0 num_refs 0 not found in extent tree incorrect local backref count on 743382028288 parent 11651792814080 owner 0 offset 0 found 1 wanted 0 back 0x555b2d3d6b30 incorrect local backref count on 743382028288 root 11222 owner 55241 offset 917504 found 0 wanted 1 back 0x555b2d4b1eb0 backref disk bytenr does not match extent record, bytenr=743382028288, ref bytenr=0
backpointer mismatch on [743382028288 12288]
data backref 743382425600 parent 11822453374976 owner 0 offset 0 num_refs 0 not found in extent tree incorrect local backref count on 743382425600 parent 11822453374976 owner 0 offset 0 found 1 wanted 0 back 0x555b52540af0 incorrect local backref count on 743382425600 root 11222 owner 55259 offset 0 found 0 wanted 1 back 0x555b2d4b2d20 backref disk bytenr does not match extent record, bytenr=743382425600, ref bytenr=0
(...)
root 11223 inode 1403275 errors 1000, some csum missing
root 11223 inode 1403276 errors 1000, some csum missing
root 11223 inode 1403277 errors 1000, some csum missing
root 11223 inode 1403278 errors 1000, some csum missing
root 11223 inode 1403279 errors 1000, some csum missing
root 11223 inode 1403280 errors 1000, some csum missing
root 11223 inode 1403281 errors 1500, file extent discount, nbytes wrong, some csum missing
Found file extent holes:
start: 8192, len: 4096
root 11223 inode 1403282 errors 2001, no inode item, link count wrong
unresolved ref dir 1403235 index 48 namelen 7 name spdif.h filetype 1 errors 4, no inode ref
root 11223 inode 1403283 errors 2001, no inode item, link count wrong
unresolved ref dir 1403235 index 49 namelen 10 name speyside.c filetype 1 errors 4, no inode ref
root 11223 inode 1403284 errors 2001, no inode item, link count wrong
unresolved ref dir 1403235 index 50 namelen 11 name tobermory.c filetype 1 errors 4, no inode ref
root 11223 inode 1403285 errors 2001, no inode item, link count wrong
unresolved ref dir 1402760 index 19 namelen 2 name sh filetype 2 errors 4, no inode ref
root 11223 inode 1403291 errors 3000, some csum missing, link count wrong
unresolved ref dir 1403285 index 7 namelen 12 name dma-sh7760.c filetype 0 errors 3, no dir item, no dir index
root 11223 inode 1403292 errors 3000, some csum missing, link count wrong
unresolved ref dir 1403285 index 8 namelen 5 name fsi.c filetype 0 errors 3, no dir item, no dir index
root 11223 inode 1403293 errors 3000, some csum missing, link count wrong
unresolved ref dir 1403285 index 9 namelen 5 name hac.c filetype 0 errors 3, no dir item, no dir index
root 11223 inode 1403294 errors 3000, some csum missing, link count wrong
unresolved ref dir 1403285 index 10 namelen 7 name migor.c filetype 0 errors 3, no dir item, no dir index
root 11223 inode 1403295 errors 2000, link count wrong
unresolved ref dir 1403285 index 11 namelen 13 name sh7760-ac97.c filetype 0 errors 3, no dir item, no dir index
root 11223 inode 1403296 errors 3000, some csum missing, link count wrong
unresolved ref dir 1403285 index 12 namelen 5 name siu.h filetype 0 errors 3, no dir item, no dir index
root 11223 inode 1403297 errors 3000, some csum missing, link count wrong
unresolved ref dir 1403285 index 13 namelen 9 name siu_dai.c filetype 0 errors 3, no dir item, no dir index
root 11223 inode 1403298 errors 3000, some csum missing, link count wrong
unresolved ref dir 1403285 index 14 namelen 9 name siu_pcm.c filetype 0 errors 3, no dir item, no dir index
root 11223 inode 1403299 errors 3000, some csum missing, link count wrong
unresolved ref dir 1403285 index 15 namelen 5 name ssi.c filetype 0 errors 3, no dir item, no dir index
root 11223 inode 1403301 errors 1000, some csum missing
root 11223 inode 1403302 errors 1000, some csum missing
root 11223 inode 1403303 errors 1000, some csum missing
root 11223 inode 1403304 errors 1000, some csum missing
root 11223 inode 1403305 errors 1000, some csum missing
(...)
root 165299 inode 95687 errors 1000, some csum missing
root 165299 inode 95688 errors 1000, some csum missing
root 165299 inode 95689 errors 1000, some csum missing
root 165299 inode 95690 errors 1000, some csum missing
root 165299 inode 95692 errors 1000, some csum missing
root 165299 inode 95697 errors 1000, some csum missing
root 165299 inode 95698 errors 1000, some csum missing
root 165299 inode 95699 errors 3000, some csum missing, link count wrong
unresolved ref dir 76854 index 28 namelen 23 name gmapsupp_micronesia.img filetype 1 errors 3, no dir item, no dir index
root 165299 inode 95700 errors 1000, some csum missing
root 165299 inode 95701 errors 3000, some csum missing, link count wrong
unresolved ref dir 76854 index 30 namelen 24 name gmapsupp_osm_NZ_Topo.img filetype 1 errors 3, no dir item, no dir index
root 165299 inode 95702 errors 1000, some csum missing
root 165299 inode 95703 errors 3000, some csum missing, link count wrong
unresolved ref dir 76854 index 32 namelen 19 name gmapsupp_osm_AK.img filetype 1 errors 3, no dir item, no dir index
root 165299 inode 95704 errors 1000, some csum missing
root 165299 inode 95705 errors 1000, some csum missing
ERROR: errors found in fs roots
found 14180032409600 bytes used, error(s) found
total csum bytes: 0
total tree bytes: 2083700736
total fs tree bytes: 1891270656
total extent tree bytes: 188317696
btree space waste bytes: 334201707
file data blocks allocated: 14814349185024
referenced 14828266401792
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 10 lines · Marc MERLIN
Quoted 8 lines · Josef Bacik
Quoted 6 lines · Marc MERLIN
I have
./btrfs check --repair/dev/mapper/dshelf1
on hold (^Z), waiting for your ok to proceed.All good to continue?
Quoted 9 lines
Quoted 3 lines
Hold on I'm looking at the code, I'm very confused, we shouldn't be finding any extent tree errors at this point. Let me work out what's going on. Thanks,
Ok.
I ran check without repair, at least it completed. 2.5 million lines of output but I think they mostly look like this
Ok the csum errors I expect. I've made some changes and pushed them, re-run the rescue init-extent-tree again. Run check without --repair. If it complains about extent backrefs then I fucked up, I just need like 20ish lines of that output to see what I'm messing up. If it only complains about csums then we won, we can run btrfs check --init-csum-tree, and then --repair. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 6 lines · Josef Bacik
Ok the csum errors I expect. I've made some changes and pushed them, re-run the rescue init-extent-tree again. Run check without --repair. If it complains about extent backrefs then I fucked up, I just need like 20ish lines of that output to see what I'm messing up. If it only complains about csums then we won, we can run btrfs check --init-csum-tree, and then --repair. Thanks,
searching 165298 for bad extents
processed 108756992 of 108756992 possible bytes, 100%
searching 165299 for bad extents
processed 75792384 of 75792384 possible bytes, 100%
searching 18446744073709551607 for bad extents
processed 16384 of 16384 possible bytes, 100%
Recording extents for root 3
processed 1556480 of 0 possible bytes, 0%
Recording extents for root 1
processed 1474560 of 0 possible bytes, 0%
doing roots
Recording extents for root 4
processed 1032192 of 1064960 possible bytes, 96%
Recording extents for root 5
processed 10960896 of 10977280 possible bytes, 99%
Recording extents for root 7
processed 16384 of 16545742848 possible bytes, 0%
Recording extents for root 9
processed 16384 of 16384 possible bytes, 100%
Recording extents for root 11221
processed 49152 of 256016384 possible bytes, 0%
Recording extents for root 11222
processed 49479680 of 49479680 possible bytes, 100%
Recording extents for root 11223
processed 1619902464 of 1635549184 possible bytes, 99%Ignoring transid failure
processed 1635319808 of 1635549184 possible bytes, 99%
Recording extents for root 11224
processed 75792384 of 75792384 possible bytes, 100%
Recording extents for root 159785
processed 108429312 of 108429312 possible bytes, 100%
Recording extents for root 159787
processed 49152 of 49479680 possible bytes, 0%
Recording extents for root 160494
processed 1425408 of 108560384 possible bytes, 1%
Recording extents for root 160496
processed 49152 of 49479680 possible bytes, 0%
Recording extents for root 161197
processed 770048 of 108544000 possible bytes, 0%
Recording extents for root 161199
processed 49152 of 49479680 possible bytes, 0%
Recording extents for root 162628
processed 49152 of 49479680 possible bytes, 0%
Recording extents for root 162632
processed 2441216 of 108691456 possible bytes, 2%
Recording extents for root 162645
processed 49152 of 75792384 possible bytes, 0%
Recording extents for root 163298
processed 49152 of 49479680 possible bytes, 0%
Recording extents for root 163302
processed 966656 of 108691456 possible bytes, 0%
Recording extents for root 163303
processed 49152 of 75792384 possible bytes, 0%
Recording extents for root 163316
processed 933888 of 108691456 possible bytes, 0%
Recording extents for root 163318
processed 16384 of 49479680 possible bytes, 0%
Recording extents for root 163916
processed 49152 of 49479680 possible bytes, 0%
Recording extents for root 163920
processed 966656 of 108691456 possible bytes, 0%
Recording extents for root 163921
processed 49152 of 75792384 possible bytes, 0%
Recording extents for root 164620
processed 49152 of 49479680 possible bytes, 0%
Recording extents for root 164624
processed 98304 of 109445120 possible bytes, 0%
Recording extents for root 164633
processed 49152 of 75792384 possible bytes, 0%
Recording extents for root 165098
processed 1015808 of 108756992 possible bytes, 0%
Recording extents for root 165100
processed 16384 of 49479680 possible bytes, 0%
Recording extents for root 165198
processed 491520 of 108756992 possible bytes, 0%adding a bytenr that overlaps our thing, dumping paths for [76300, 108, 0] misc/file
doing an insert of the bytenr
doing an insert that overlaps our bytenr 10467695652864 8675328
processed 983040 of 108756992 possible bytes, 0%
Recording extents for root 165200
processed 16384 of 49479680 possible bytes, 0%
Recording extents for root 165294
processed 16384 of 49479680 possible bytes, 0%
Recording extents for root 165298
processed 524288 of 108756992 possible bytes, 0%WTF???? we think we already inserted this bytenr?? [76300, 108, 0] dumping paths 10467695652864 8675328 misc/file
processed 1015808 of 108756992 possible bytes, 0%
Recording extents for root 165299
processed 16384 of 75792384 possible bytes, 0%
Recording extents for root 18446744073709551607
processed 16384 of 16384 possible bytes, 100%
doing block accounting
doing close???
Init extent tree finished, you can run check now
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs check /dev/mapper/dshelf1
Opening filesystem to check...
FS_INFO IS 0x55611fc9ee50
JOSEF: root 9
Couldn't find the last root for 8
FS_INFO AFTER IS 0x55611fc9ee50
Checking filesystem on /dev/mapper/dshelf1
UUID: 96539b8c-ccc9-47bf-9e6c-29305890941e
[1/7] checking root items
checksum verify failed on 15645954129920 wanted 0x085fc24a found 0x941acdde
checksum verify failed on 15645954195456 wanted 0x6c1c72a4 found 0xb06d5dd9
checksum verify failed on 15645608116224 wanted 0x31706547 found 0x314fad1d
checksum verify failed on 15645262413824 wanted 0x3affbd35 found 0x96d53d25
checksum verify failed on 13577199878144 wanted 0x6e9e8bc6 found 0x61063457
checksum verify failed on 13577399156736 wanted 0x2869b8c7 found 0xbb1119e1
checksum verify failed on 12512437698560 wanted 0xca43b3f8 found 0xd7f6db69
checksum verify failed on 13577503686656 wanted 0xd81b7702 found 0x95a3c9a6
checksum verify failed on 15645781344256 wanted 0xb81e3df4 found 0xb5c70846
checksum verify failed on 13577178939392 wanted 0x2cb83118 found 0x63f0b6bf
checksum verify failed on 15645419667456 wanted 0xde0dab28 found 0x3ceddd16
checksum verify failed on 13577821011968 wanted 0x9a29aff5 found 0x2cdff391
checksum verify failed on 15645781196800 wanted 0xef669b11 found 0x46985a93
[2/7] checking extents
(...)
root 165299 inode 78934 errors 1000, some csum missing
root 165299 inode 78935 errors 1000, some csum missing
root 165299 inode 78936 errors 1000, some csum missing
root 165299 inode 78937 errors 1000, some csum missing
root 165299 inode 78938 errors 1000, some csum missing
root 165299 inode 78939 errors 1000, some csum missing
root 165299 inode 78940 errors 1000, some csum missing
root 165299 inode 78941 errors 1000, some csum missing
root 165299 inode 78942 errors 1000, some csum missing
root 165299 inode 78943 errors 1000, some csum missing
root 165299 inode 78945 errors 1, no inode item
root 165299 inode 78946 errors 3000, some csum missing, link count wrong
unresolved ref dir 78945 index 2 namelen 12 name screwloo.zip filetype 1 errors 3, no dir item, no dir index
root 165299 inode 78947 errors 3000, some csum missing, link count wrong
unresolved ref dir 78945 index 3 namelen 10 name fround.zip filetype 1 errors 3, no dir item, no dir index
root 165299 inode 78948 errors 3000, some csum missing, link count wrong
unresolved ref dir 78945 index 4 namelen 10 name ginkun.zip filetype 1 errors 3, no dir item, no dir index
root 165299 inode 78949 errors 3000, some csum missing, link count wrong
unresolved ref dir 78945 index 5 namelen 12 name cobracom.zip filetype 1 errors 3, no dir item, no dir index
root 165299 inode 78950 errors 3000, some csum missing, link count wrong
unresolved ref dir 78945 index 6 namelen 11 name wseries.zip filetype 1 errors 3, no dir item, no dir index
root 165299 inode 78951 errors 3000, some csum missing, link count wrong
unresolved ref dir 78945 index 7 namelen 9 name youma.zip filetype 1 errors 3, no dir item, no dir index
root 165299 inode 78952 errors 3000, some csum missing, link count wrong
unresolved ref dir 78945 index 8 namelen 11 name mswordu.zip filetype 1 errors 3, no dir item, no dir index
root 165299 inode 78953 errors 3000, some csum missing, link count wrong
unresolved ref dir 78945 index 9 namelen 12 name bijokkog.zip filetype 1 errors 3, no dir item, no dir index
root 165299 inode 78954 errors 3000, some csum missing, link count wrong
unresolved ref dir 78945 index 10 namelen 8 name kaos.zip filetype 1 errors 3, no dir item, no dir index
root 165299 inode 78955 errors 3000, some csum missing, link count wrong
unresolved ref dir 78945 index 11 namelen 10 name toggle.zip filetype 1 errors 3, no dir item, no dir index
root 165299 inode 78956 errors 3000, some csum missing, link count wrong
unresolved ref dir 78945 index 12 namelen 11 name jungler.zip filetype 1 errors 3, no dir item, no dir index
root 165299 inode 78957 errors 3000, some csum missing, link count wrong
unresolved ref dir 78945 index 13 namelen 10 name wallst.zip filetype 1 errors 3, no dir item, no dir index
root 165299 inode 78958 errors 3000, some csum missing, link count wrong
unresolved ref dir 78945 index 14 namelen 11 name bkrtmaq.zip filetype 1 errors 3, no dir item, no dir index
root 165299 inode 78959 errors 3000, some csum missing, link count wrong
unresolved ref dir 78945 index 15 namelen 12 name spcforce.zip filetype 1 errors 3, no dir item, no dir index
root 165299 inode 78960 errors 3000, some csum missing, link count wrong
unresolved ref dir 78945 index 16 namelen 10 name bstars.zip filetype 1 errors 3, no dir item, no dir index
root 165299 inode 78961 errors 3000, some csum missing, link count wrong
unresolved ref dir 78945 index 17 namelen 12 name bionicc2.zip filetype 1 errors 3, no dir item, no dir index
root 165299 inode 78962 errors 3000, some csum missing, link count wrong
unresolved ref dir 78945 index 18 namelen 10 name crater.zip filetype 1 errors 3, no dir item, no dir index
root 165299 inode 78963 errors 3000, some csum missing, link count wrong
unresolved ref dir 78945 index 19 namelen 12 name mjcamera.zip filetype 1 errors 3, no dir item, no dir index
root 165299 inode 78964 errors 3000, some csum missing, link count wrong
unresolved ref dir 78945 index 20 namelen 10 name aurail.zip filetype 1 errors 3, no dir item, no dir index
root 165299 inode 78965 errors 3000, some csum missing, link count wrong
unresolved ref dir 78945 index 21 namelen 12 name pc_radrc.zip filetype 1 errors 3, no dir item, no dir index
root 165299 inode 78966 errors 3000, some csum missing, link count wrong
unresolved ref dir 78945 index 22 namelen 11 name mgakuen.zip filetype 1 errors 3, no dir item, no dir index
root 165299 inode 78967 errors 3000, some csum missing, link count wrong
unresolved ref dir 78945 index 23 namelen 12 name blueprnj.zip filetype 1 errors 3, no dir item, no dir index
(...)
root 165299 inode 95686 errors 1000, some csum missing
root 165299 inode 95687 errors 1000, some csum missing
root 165299 inode 95688 errors 1000, some csum missing
root 165299 inode 95689 errors 1000, some csum missing
root 165299 inode 95690 errors 1000, some csum missing
root 165299 inode 95692 errors 1000, some csum missing
root 165299 inode 95697 errors 1000, some csum missing
root 165299 inode 95698 errors 1000, some csum missing
root 165299 inode 95699 errors 3000, some csum missing, link count wrong
unresolved ref dir 76854 index 28 namelen 23 name gmapsupp_micronesia.img filetype 1 errors 3, no dir item, no dir index
root 165299 inode 95700 errors 1000, some csum missing
root 165299 inode 95701 errors 3000, some csum missing, link count wrong
unresolved ref dir 76854 index 30 namelen 24 name gmapsupp_osm_NZ_Topo.img filetype 1 errors 3, no dir item, no dir index
root 165299 inode 95702 errors 1000, some csum missing
root 165299 inode 95703 errors 3000, some csum missing, link count wrong
unresolved ref dir 76854 index 32 namelen 19 name gmapsupp_osm_AK.img filetype 1 errors 3, no dir item, no dir index
root 165299 inode 95704 errors 1000, some csum missing
root 165299 inode 95705 errors 1000, some csum missing
ERROR: errors found in fs roots
Opening filesystem to check...
JOSEF: root 9
Checking filesystem on /dev/mapper/dshelf1
UUID: 96539b8c-ccc9-47bf-9e6c-29305890941e
cache and super generation don't match, space cache will be invalidated
found 14180032393216 bytes used, error(s) found
total csum bytes: 0
total tree bytes: 2083684352
total fs tree bytes: 1891270656
total extent tree bytes: 188301312
btree space waste bytes: 334181897
file data blocks allocated: 14814349185024
referenced 14828266401792
gargamel:/var/local/src/btrfs-Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 119 lines · Marc MERLIN
Quoted 6 lines · Josef Bacik
Ok the csum errors I expect. I've made some changes and pushed them, re-run the rescue init-extent-tree again. Run check without --repair. If it complains about extent backrefs then I fucked up, I just need like 20ish lines of that output to see what I'm messing up. If it only complains about csums then we won, we can run btrfs check --init-csum-tree, and then --repair. Thanks,
searching 165298 for bad extents
processed 108756992 of 108756992 possible bytes, 100%
searching 165299 for bad extents
processed 75792384 of 75792384 possible bytes, 100%
searching 18446744073709551607 for bad extents
processed 16384 of 16384 possible bytes, 100%
Recording extents for root 3
processed 1556480 of 0 possible bytes, 0%
Recording extents for root 1
processed 1474560 of 0 possible bytes, 0%
doing roots
Recording extents for root 4
processed 1032192 of 1064960 possible bytes, 96%
Recording extents for root 5
processed 10960896 of 10977280 possible bytes, 99%
Recording extents for root 7
processed 16384 of 16545742848 possible bytes, 0%
Recording extents for root 9
processed 16384 of 16384 possible bytes, 100%
Recording extents for root 11221
processed 49152 of 256016384 possible bytes, 0%
Recording extents for root 11222
processed 49479680 of 49479680 possible bytes, 100%
Recording extents for root 11223
processed 1619902464 of 1635549184 possible bytes, 99%Ignoring transid failure
processed 1635319808 of 1635549184 possible bytes, 99%
Recording extents for root 11224
processed 75792384 of 75792384 possible bytes, 100%
Recording extents for root 159785
processed 108429312 of 108429312 possible bytes, 100%
Recording extents for root 159787
processed 49152 of 49479680 possible bytes, 0%
Recording extents for root 160494
processed 1425408 of 108560384 possible bytes, 1%
Recording extents for root 160496
processed 49152 of 49479680 possible bytes, 0%
Recording extents for root 161197
processed 770048 of 108544000 possible bytes, 0%
Recording extents for root 161199
processed 49152 of 49479680 possible bytes, 0%
Recording extents for root 162628
processed 49152 of 49479680 possible bytes, 0%
Recording extents for root 162632
processed 2441216 of 108691456 possible bytes, 2%
Recording extents for root 162645
processed 49152 of 75792384 possible bytes, 0%
Recording extents for root 163298
processed 49152 of 49479680 possible bytes, 0%
Recording extents for root 163302
processed 966656 of 108691456 possible bytes, 0%
Recording extents for root 163303
processed 49152 of 75792384 possible bytes, 0%
Recording extents for root 163316
processed 933888 of 108691456 possible bytes, 0%
Recording extents for root 163318
processed 16384 of 49479680 possible bytes, 0%
Recording extents for root 163916
processed 49152 of 49479680 possible bytes, 0%
Recording extents for root 163920
processed 966656 of 108691456 possible bytes, 0%
Recording extents for root 163921
processed 49152 of 75792384 possible bytes, 0%
Recording extents for root 164620
processed 49152 of 49479680 possible bytes, 0%
Recording extents for root 164624
processed 98304 of 109445120 possible bytes, 0%
Recording extents for root 164633
processed 49152 of 75792384 possible bytes, 0%
Recording extents for root 165098
processed 1015808 of 108756992 possible bytes, 0%
Recording extents for root 165100
processed 16384 of 49479680 possible bytes, 0%
Recording extents for root 165198
processed 491520 of 108756992 possible bytes, 0%adding a bytenr that overlaps our thing, dumping paths for [76300, 108, 0] misc/file
doing an insert of the bytenr
doing an insert that overlaps our bytenr 10467695652864 8675328
processed 983040 of 108756992 possible bytes, 0%
Recording extents for root 165200
processed 16384 of 49479680 possible bytes, 0%
Recording extents for root 165294
processed 16384 of 49479680 possible bytes, 0%
Recording extents for root 165298
processed 524288 of 108756992 possible bytes, 0%WTF???? we think we already inserted this bytenr?? [76300, 108, 0] dumping paths 10467695652864 8675328 misc/file
processed 1015808 of 108756992 possible bytes, 0%
Recording extents for root 165299
processed 16384 of 75792384 possible bytes, 0%
Recording extents for root 18446744073709551607
processed 16384 of 16384 possible bytes, 100%
doing block accounting
doing close???
Init extent tree finished, you can run check nowgargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs check /dev/mapper/dshelf1 Opening filesystem to check... FS_INFO IS 0x55611fc9ee50 JOSEF: root 9 Couldn't find the last root for 8 FS_INFO AFTER IS 0x55611fc9ee50 Checking filesystem on /dev/mapper/dshelf1 UUID: 96539b8c-ccc9-47bf-9e6c-29305890941e [1/7] checking root items checksum verify failed on 15645954129920 wanted 0x085fc24a found 0x941acdde checksum verify failed on 15645954195456 wanted 0x6c1c72a4 found 0xb06d5dd9 checksum verify failed on 15645608116224 wanted 0x31706547 found 0x314fad1d checksum verify failed on 15645262413824 wanted 0x3affbd35 found 0x96d53d25 checksum verify failed on 13577199878144 wanted 0x6e9e8bc6 found 0x61063457 checksum verify failed on 13577399156736 wanted 0x2869b8c7 found 0xbb1119e1
Quoted 8 lines
checksum verify failed on 12512437698560 wanted 0xca43b3f8 found 0xd7f6db69 checksum verify failed on 13577503686656 wanted 0xd81b7702 found 0x95a3c9a6 checksum verify failed on 15645781344256 wanted 0xb81e3df4 found 0xb5c70846 checksum verify failed on 13577178939392 wanted 0x2cb83118 found 0x63f0b6bf checksum verify failed on 15645419667456 wanted 0xde0dab28 found 0x3ceddd16 checksum verify failed on 13577821011968 wanted 0x9a29aff5 found 0x2cdff391 checksum verify failed on 15645781196800 wanted 0xef669b11 found 0x46985a93 [2/7] checking extents
OMG we're almost done, that's awesome. So no extent errors, just the csum things and the fs things I expected. Now we do
btrfs check --init-csum-tree <dev>
btrfs check --repair <dev>
and then you should be good. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 2 lines · Josef Bacik
OMG we're almost done, that's awesome. So no extent errors, just the csum things and the fs things I expected. Now we do
Yeah!
Quoted 1 line
btrfs check --init-csum-tree <dev>
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs check --init-csum-tree /dev/mapper/dshelf1 Creating a new CRC tree WARNING:
Do not use --repair unless you are advised to do so by a developer or an experienced user, and then only after having accepted that no fsck can successfully repair all types of filesystem corruption. Eg. some software or hardware bugs can fatally damage a volume. The operation will start in 10 seconds.
Use Ctrl-C to stop it.
10 9 8 7 6 5 4 3 2 1
Starting repair.
Opening filesystem to check...FS_INFO IS 0x55a89d2dbfd0
JOSEF: root 9
Couldn't find the last root for 8FS_INFO AFTER IS 0x55a89d2dbfd0
Checking filesystem on /dev/mapper/dshelf1
UUID: 96539b8c-ccc9-47bf-9e6c-29305890941e
Reinitialize checksum tree
checksum verify failed on 42565632 wanted 0x53c18aa1 found 0xcd4368c2 checksum verify failed on 42582016 wanted 0xc42fc10c found 0xd63d1182 checksum verify failed on 42647552 wanted 0x10aefde4 found 0x5c5bedba checksum verify failed on 42680320 wanted 0x9cfe6b48 found 0xed48fcc5 checksum verify failed on 42696704 wanted 0x005c4793 found 0x0d9de33c checksum verify failed on 42811392 wanted 0x2b08fbc0 found 0xf25092bb checksum verify failed on 42827776 wanted 0x6277c597 found 0x70d260d3 checksum verify failed on 42844160 wanted 0xceecf694 found 0x15ab7b7c checksum verify failed on 42860544 wanted 0xbc48b372 found 0x99719113 checksum verify failed on 60915712 wanted 0xb9ea7152 found 0x75dbb3c0 checksum verify failed on 63438848 wanted 0x4cfafe67 found 0xf97194d0 checksum verify failed on 63422464 wanted 0xcae61e1f found 0xafc5d21c checksum verify failed on 63946752 wanted 0xe545e347 found 0x5c2ca453 checksum verify failed on 63881216 wanted 0x4dbaba12 found 0x843eeecc checksum verify failed on 63930368 wanted 0x03a5dd54 found 0x049161ac checksum verify failed on 76709888 wanted 0x52911556 found 0x1fbf8f99 checksum verify failed on 76660736 wanted 0xcf5d93fa found 0x08ef5ce9 checksum verify failed on 76677120 wanted 0xf56b664d found 0x9d0df1da checksum verify failed on 76726272 wanted 0x759a69db found 0xc4d2e554 checksum verify failed on 76742656 wanted 0xe5a5401d found 0xd40609cc checksum verify failed on 100302848 wanted 0xb1829326 found 0xbd08c95e checksum verify failed on 105742336 wanted 0x26ef0666 found 0x2fa5587b checksum verify failed on 129449984 wanted 0x915d087e found 0x26b36e0f
ERROR: checksum tree refilling failed: -2
easy one to fix?
Quoted 6 lines
btrfs check --repair <dev>
and then you should be good. Thanks,
Josef
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 45 lines · Marc MERLIN
Quoted 2 lines · Josef Bacik
OMG we're almost done, that's awesome. So no extent errors, just the csum things and the fs things I expected. Now we do
Yeah!
Quoted 1 line
btrfs check --init-csum-tree <dev>
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs check --init-csum-tree /dev/mapper/dshelf1 Creating a new CRC tree WARNING:Do not use --repair unless you are advised to do so by a developer or an experienced user, and then only after having accepted that no fsck can successfully repair all types of filesystem corruption. Eg. some software or hardware bugs can fatally damage a volume. The operation will start in 10 seconds.
Use Ctrl-C to stop it.
10 9 8 7 6 5 4 3 2 1
Starting repair.
Opening filesystem to check...FS_INFOIS0x55a89d2dbfd0
JOSEF: root 9
Couldn't find the last root for 8FS_INFOAFTER IS0x55a89d2dbfd0
Checking filesystem on/dev/mapper/dshelf1
UUID: 96539b8c-ccc9-47bf-9e6c-29305890941e
Reinitialize checksum tree
checksum verify failed on 42565632 wanted0x53c18aa1found0xcd4368c2checksum verify failed on 42582016 wanted0xc42fc10cfound0xd63d1182checksum verify failed on 42647552 wanted0x10aefde4found0x5c5bedbachecksum verify failed on 42680320 wanted0x9cfe6b48found0xed48fcc5checksum verify failed on 42696704 wanted0x005c4793found0x0d9de33cchecksum verify failed on 42811392 wanted0x2b08fbc0found0xf25092bbchecksum verify failed on 42827776 wanted0x6277c597found0x70d260d3checksum verify failed on 42844160 wanted0xceecf694found0x15ab7b7cchecksum verify failed on 42860544 wanted0xbc48b372found0x99719113checksum verify failed on 60915712 wanted0xb9ea7152found0x75dbb3c0checksum verify failed on 63438848 wanted0x4cfafe67found0xf97194d0checksum verify failed on 63422464 wanted0xcae61e1ffound0xafc5d21cchecksum verify failed on 63946752 wanted0xe545e347found0x5c2ca453checksum verify failed on 63881216 wanted0x4dbaba12found0x843eeeccchecksum verify failed on 63930368 wanted0x03a5dd54found0x049161acchecksum verify failed on 76709888 wanted0x52911556found0x1fbf8f99
Quoted 9 lines
checksum verify failed on 76660736 wanted
0xcf5d93fafound0x08ef5ce9checksum verify failed on 76677120 wanted0xf56b664dfound0x9d0df1dachecksum verify failed on 76726272 wanted0x759a69dbfound0xc4d2e554checksum verify failed on 76742656 wanted0xe5a5401dfound0xd40609ccchecksum verify failed on 100302848 wanted0xb1829326found0xbd08c95echecksum verify failed on 105742336 wanted0x26ef0666found0x2fa5587bchecksum verify failed on 129449984 wanted0x915d087efound0x26b36e0f
ERROR: checksum tree refilling failed: -2
Hmm of course IDK where it's falling over, I pushed some debugging but there's another method we can try if I can't figure this out. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 2 lines · Josef Bacik
Hmm of course IDK where it's falling over, I pushed some debugging but there's another method we can try if I can't figure this out. Thanks,
Couldn't find the last root for 8FS_INFO AFTER IS 0x564b2ca91fd0
Checking filesystem on /dev/mapper/dshelf1
UUID: 96539b8c-ccc9-47bf-9e6c-29305890941e
Reinitialize checksum tree
checksum verify failed on 42565632 wanted 0x53c18aa1 found 0xcd4368c2 checksum verify failed on 42582016 wanted 0xc42fc10c found 0xd63d1182 checksum verify failed on 42647552 wanted 0x10aefde4 found 0x5c5bedba checksum verify failed on 42680320 wanted 0x9cfe6b48 found 0xed48fcc5 checksum verify failed on 42696704 wanted 0x005c4793 found 0x0d9de33c checksum verify failed on 42811392 wanted 0x2b08fbc0 found 0xf25092bb checksum verify failed on 42827776 wanted 0x6277c597 found 0x70d260d3 checksum verify failed on 42844160 wanted 0xceecf694 found 0x15ab7b7c checksum verify failed on 42860544 wanted 0xbc48b372 found 0x99719113 checksum verify failed on 60915712 wanted 0xb9ea7152 found 0x75dbb3c0 checksum verify failed on 63438848 wanted 0x4cfafe67 found 0xf97194d0 checksum verify failed on 63422464 wanted 0xcae61e1f found 0xafc5d21c checksum verify failed on 63946752 wanted 0xe545e347 found 0x5c2ca453 checksum verify failed on 63881216 wanted 0x4dbaba12 found 0x843eeecc checksum verify failed on 63930368 wanted 0x03a5dd54 found 0x049161ac checksum verify failed on 76709888 wanted 0x52911556 found 0x1fbf8f99 checksum verify failed on 76660736 wanted 0xcf5d93fa found 0x08ef5ce9 checksum verify failed on 76677120 wanted 0xf56b664d found 0x9d0df1da checksum verify failed on 76726272 wanted 0x759a69db found 0xc4d2e554 checksum verify failed on 76742656 wanted 0xe5a5401d found 0xd40609cc checksum verify failed on 100302848 wanted 0xb1829326 found 0xbd08c95e checksum verify failed on 105742336 wanted 0x26ef0666 found 0x2fa5587b checksum verify failed on 129449984 wanted 0x915d087e found 0x26b36e0f
ERROR: iterate extent inodes failed
ERROR: checksum tree refilling failed: -2
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 27 lines · Marc MERLIN
Quoted 2 lines · Josef Bacik
Hmm of course IDK where it's falling over, I pushed some debugging but there's another method we can try if I can't figure this out. Thanks,
Couldn't find the last root for 8
FS_INFOAFTER IS0x564b2ca91fd0
Checking filesystem on/dev/mapper/dshelf1
UUID: 96539b8c-ccc9-47bf-9e6c-29305890941e
Reinitialize checksum tree
checksum verify failed on 42565632 wanted0x53c18aa1found0xcd4368c2checksum verify failed on 42582016 wanted0xc42fc10cfound0xd63d1182checksum verify failed on 42647552 wanted0x10aefde4found0x5c5bedbachecksum verify failed on 42680320 wanted0x9cfe6b48found0xed48fcc5checksum verify failed on 42696704 wanted0x005c4793found0x0d9de33cchecksum verify failed on 42811392 wanted0x2b08fbc0found0xf25092bbchecksum verify failed on 42827776 wanted0x6277c597found0x70d260d3checksum verify failed on 42844160 wanted0xceecf694found0x15ab7b7cchecksum verify failed on 42860544 wanted0xbc48b372found0x99719113checksum verify failed on 60915712 wanted0xb9ea7152found0x75dbb3c0checksum verify failed on 63438848 wanted0x4cfafe67found0xf97194d0checksum verify failed on 63422464 wanted0xcae61e1ffound0xafc5d21cchecksum verify failed on 63946752 wanted0xe545e347found0x5c2ca453checksum verify failed on 63881216 wanted0x4dbaba12found0x843eeeccchecksum verify failed on 63930368 wanted0x03a5dd54found0x049161acchecksum verify failed on 76709888 wanted0x52911556found0x1fbf8f99checksum verify failed on 76660736 wanted0xcf5d93fafound0x08ef5ce9
Quoted 9 lines
checksum verify failed on 76677120 wanted
0xf56b664dfound0x9d0df1dachecksum verify failed on 76726272 wanted0x759a69dbfound0xc4d2e554checksum verify failed on 76742656 wanted0xe5a5401dfound0xd40609ccchecksum verify failed on 100302848 wanted0xb1829326found0xbd08c95echecksum verify failed on 105742336 wanted0x26ef0666found0x2fa5587bchecksum verify failed on 129449984 wanted0x915d087efound0x26b36e0f
ERROR: iterate extent inodes failed
ERROR: checksum tree refilling failed: -2
Ok that's what I figured, switched to the other method, lets see how that goes. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 3 lines · Josef Bacik
Quoted 2 lines · Marc MERLIN
On Wed, May 11, 2022 at 11:21:37AM -0400, Josef Bacik wrote:
[...]
Hi Joseph, Marc,
I looked back in the thread but I was unable to find if it was discussed. Even if the size of the FS is quite big, I am wondering if does make sense that Marc send to Josef the metadata of the filesystem, to speed up the recover.
I am sure that btrfs-image was considered but then discarded (due to a risk of leaking of sensible information ? or may be the image would be too big ?);
It would be interested to know the reasons; may be that even if btrfs-image doesn't fit this particular case in the current form, it can be extended to handle a case like the Marc one..
BR
Signature · 2 lines
gpg @keyserver.linux.it: Goffredo Baroncelli <kreijackATinwind.it> Key fingerprint BBF5 1610 0B64 DAC6 5F7D 17B2 0EDA 9B37 8B82 E0B5
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
In reply to Josef BacikQuoted 2 lines · Josef Bacik
Ok that's what I figured, switched to the other method, lets see how that goes. Thanks,
Seems to work so far
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs check --init-csum-tree /dev/mapper/dshelf1 Creating a new CRC tree WARNING:
Do not use --repair unless you are advised to do so by a developer or an experienced user, and then only after having accepted that no fsck can successfully repair all types of filesystem corruption. Eg. some software or hardware bugs can fatally damage a volume. The operation will start in 10 seconds.
Use Ctrl-C to stop it.
10 9 8 7 6 5 4 3 2 1
Starting repair.
Opening filesystem to check...FS_INFO IS 0x5585f31e5fd0
JOSEF: root 9
Couldn't find the last root for 8FS_INFO AFTER IS 0x5585f31e5fd0
Checking filesystem on /dev/mapper/dshelf1
UUID: 96539b8c-ccc9-47bf-9e6c-29305890941e
Reinitialize checksum tree
checksum verify failed on 11970891186176 wanted 0x6b46adfb found 0xe40e4cbe checksum verify failed on 12511729680384 wanted 0x41be9fa6 found 0x01f06e9c checksum verify failed on 12512010420224 wanted 0x365027e7 found 0xba73f602 checksum verify failed on 12512303677440 wanted 0xc08fc7a0 found 0x3cb30242 checksum verify failed on 13576951021568 wanted 0x9511e976 found 0xd8fe35ea checksum verify failed on 13577013624832 wanted 0x76bbe220 found 0xdfabbbdb (...)
it's taking a while to run, will report when done.
Marc
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
In reply to Goffredo BaroncelliQuoted 8 lines · Goffredo Baroncelli
Quoted 3 lines · Josef Bacik
Quoted 2 lines · Marc MERLIN
On Wed, May 11, 2022 at 11:21:37AM -0400, Josef Bacik wrote:
[...]
Hi Joseph, Marc,
Quoted 7 lines
I looked back in the thread but I was unable to find if it was discussed. Even if the size of the FS is quite big, I am wondering if does make sense that Marc send to Josef the metadata of the filesystem, to speed up the recover.
I am sure that btrfs-image was considered but then discarded (due to a risk of leaking of sensible information ? or may be the image would be too big ?);
The metadata would be 15GB for the csums alone (according to a btrfs-dump-super in the thread, only 15TB of the 24TB total space is used). Subvol metadata would be on top of that. Too big for an email, but not impossible to transfer bidirectionally with a tool such as rsync.
Alternatively, Josef could debug the tool on the copy of the metadata, then send the tool to Marc to run again on the original metadata, and unidirectional transfer will suffice. Handily, this also provides Marc with a restorable backup copy of the metadata, so if there are bugs in the recovery tool, the original metadata can be restored to try again with a fixed tool.
Since the metadata tree is damaged, it can't be traversed (fixing that is the whole point of this exercise), so btrfs-image won't work. The image would have to be a raw dump of all the metadata block groups to get all the potentially relevant pages (including orphan leaf pages whose parents have been lost due to the disk failures). In most cases capturing the free space in metadata block groups would at most double the size, but 30GB is still manageable.
This is a relatively simple tool to build for the case where the chunk tree is intact, which it seems to be in this case. If it wasn't, a brute-force tool could scan the entire disk and pick up anything that looks like a metadata page, then write a chunk tree that matches the majority of collected pages (given a metadata page header's bytenr and the on-disk position, we can identify which metadata chunk it belongs to; the first and last page within that chunk provides the logical and physical boundaries of the chunk).
Dropping the csum pages from the image is possible. They all have distinct item keys not found in any other metadata page, so they're easy to spot on disk and leave out of the transfer; however, the more pages that aren't part of the image, the more pages that are lost or awkwardly unverifiable, increasing risk that the recovery tool won't be able to fix the filesystem. It's likely that at least the interior nodes of the csum tree will still need to be part of the recovery operation, if not all the leaf nodes as well. The alternative is to blow up the csum tree and generate a new one from subvol data, but that means no data integrity checking on any of the data blocks (which are likely also corrupted by the disk failures). Undetected corruption becomes inevitable.
Assuming no snapshots and the distribution of file sizes and types mentioned in the thread (100MB..10GB files, no inline), it would be maybe 10-15 MB for one subvol tree, double that to include the extent tree for eliminating duplicate or obsolete pages. That _does_ fit in an email, especially after compression (subvol trees are highly compressible, half the bits are zero and a third of the rest are consecutive or constant numbers).
Quoted 8 lines
It would be interested to know the reasons; may be that even if btrfs-image doesn't fit this particular case in the current form, it can be extended to handle a case like the Marc one..
BR
Signature · 2 lines
gpg @keyserver.linux.it: Goffredo Baroncelli <kreijackATinwind.it> Key fingerprint BBF5 1610 0B64 DAC6 5F7D 17B2 0EDA 9B37 8B82 E0B5
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
In reply to a message not in the archiveQuoted 3 lines · Josef Bacik
Once Sarah is asleep I'll look at the code, we can probably make this go faster, but you've got a lot of data so I expect it's going to take some time. Thanks,
It's still running on my side, almost 4 days. Is there any way to know whether I'm close to 100%, or not really?
numbers go up and down, so it's not converging towards a bigger number.
checksum verify failed on 12511716491264 wanted 0xb8b7d979 found 0xca46ff1e checksum verify failed on 12511716409344 wanted 0x67a73a8d found 0xbdc10807 checksum verify failed on 12511716638720 wanted 0x001ed505 found 0x4af8413f checksum verify failed on 12511724437504 wanted 0x275e729d found 0xe4908156 checksum verify failed on 13577574744064 wanted 0x93a1e209 found 0x29d35de7 checksum verify failed on 12512041566208 wanted 0xe16cec19 found 0xbb3739bd checksum verify failed on 913014784 wanted 0x4c3d9d32 found 0x561dcfd3 checksum verify failed on 15646027530240 wanted 0x9969c0a6 found 0x7dfb22f6 checksum verify failed on 9227783651328 wanted 0xc6a441d7 found 0x7b82e991 checksum verify failed on 9227783700480 wanted 0x03f1307a found 0xd2d1a1c4 checksum verify failed on 9227817467904 wanted 0x253e13f0 found 0xb2ca98f5 checksum verify failed on 12511748128768 wanted 0x5a02792e found 0x2fd56fdb (...)
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 9 lines · Marc MERLIN
Quoted 3 lines · Josef Bacik
Once Sarah is asleep I'll look at the code, we can probably make this go faster, but you've got a lot of data so I expect it's going to take some time. Thanks,
It's still running on my side, almost 4 days. Is there any way to know whether I'm close to 100%, or not really?
The fs based refill isn't snapshot aware, so it's going to search everything constantly which is annoying. I've got some time this morning, I'll write up something different. THanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 7 lines · Josef Bacik
Quoted 6 lines · Marc MERLIN
Quoted 3 lines · Josef Bacik
Once Sarah is asleep I'll look at the code, we can probably make this go faster, but you've got a lot of data so I expect it's going to take some time. Thanks,
Quoted 6 lines
Quoted 2 lines
It's still running on my side, almost 4 days. Is there any way to know whether I'm close to 100%, or not really?
The fs based refill isn't snapshot aware, so it's going to search everything constantly which is annoying. I've got some time this morning, I'll write up something different. THanks,
Ah, in that case I have around 20 snapshots, so yeah if it's going to be 20 times faster, I'll take that, especially if it ends up being one day instead of 3 weeks :)
Thanks,
Marc
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 12 lines · Marc MERLIN
Quoted 10 lines · Josef Bacik
Quoted 8 lines · Marc MERLIN
Quoted 3 lines · Josef Bacik
Once Sarah is asleep I'll look at the code, we can probably make this go faster, but you've got a lot of data so I expect it's going to take some time. Thanks,
It's still running on my side, almost 4 days. Is there any way to know whether I'm close to 100%, or not really?
Quoted 8 lines
Quoted 3 lines
The fs based refill isn't snapshot aware, so it's going to search everything constantly which is annoying. I've got some time this morning, I'll write up something different. THanks,
Ah, in that case I have around 20 snapshots, so yeah if it's going to be 20 times faster, I'll take that, especially if it ends up being one day instead of 3 weeks :)
Ok I pushed something new, but completely untested as I'm sitting at a park with the kids and my kdevops thing is broken on my laptop. You should be able to do
btrfs rescue init-csum-tree <device>
and it'll rebuild the csum tree. It'll give you a progress bar as well. I expect the normal amount of back and forth before it actually works, but it should work faster for you. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 9 lines · Josef Bacik
Ok I pushed something new, but completely untested as I'm sitting at a park with the kids and my kdevops thing is broken on my laptop. You should be able to do
btrfs rescue init-csum-tree <device>
and it'll rebuild the csum tree. It'll give you a progress bar as well. I expect the normal amount of back and forth before it actually works, but it should work faster for you. Thanks,
Thanks. Actually I'm past that, I'm doing ./btrfs check --init-csum-tree /dev/mapper/dshelf1 that's the one that's been running for days.
Are you saying init-csum-tree was moved to rescue which does run faster, and after that I should run the last step, check --repair, that you suggested?
Thanks,
Marc
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 12 lines · Marc MERLIN
Quoted 9 lines · Josef Bacik
Ok I pushed something new, but completely untested as I'm sitting at a park with the kids and my kdevops thing is broken on my laptop. You should be able to do
btrfs rescue init-csum-tree <device>
and it'll rebuild the csum tree. It'll give you a progress bar as well. I expect the normal amount of back and forth before it actually works, but it should work faster for you. Thanks,
Quoted 8 lines
Thanks. Actually I'm past that, I'm doing ./btrfs check --init-csum-tree
/dev/mapper/dshelf1that's the one that's been running for days.Are you saying init-csum-tree was moved to rescue which does run faster, and after that I should run the last step, check --repair, that you suggested?
Yes, I've replaced the rescue --init-csum-tree with rescue init-csum-tree, which will repopulate the csum extents.
So you should cancel what you're doing, and then run
btrfs rescue init-csum-tree <device>
btrfs check --repair <device>
and then you should be good to go. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 25 lines · Josef Bacik
Quoted 12 lines · Marc MERLIN
Quoted 9 lines · Josef Bacik
Ok I pushed something new, but completely untested as I'm sitting at a park with the kids and my kdevops thing is broken on my laptop. You should be able to do
btrfs rescue init-csum-tree <device>
and it'll rebuild the csum tree. It'll give you a progress bar as well. I expect the normal amount of back and forth before it actually works, but it should work faster for you. Thanks,
Quoted 8 lines
Thanks. Actually I'm past that, I'm doing ./btrfs check --init-csum-tree
/dev/mapper/dshelf1that's the one that's been running for days.Are you saying init-csum-tree was moved to rescue which does run faster, and after that I should run the last step, check --repair, that you suggested?
Yes, I've replaced the rescue --init-csum-tree with rescue init-csum-tree, which will repopulate the csum extents.
Quoted 6 lines
So you should cancel what you're doing, and then run
btrfs rescue init-csum-tree <device>
btrfs check --repair <device>and then you should be good to go. Thanks,
Gotcha, so let's work through the new version, looks like a recursive loop
FS_INFO IS 0x55555564fbc0
JOSEF: root 9
Couldn't find the last root for 8FS_INFO AFTER IS 0x55555564fbc0
Program received signal SIGSEGV, Segmentation fault.0x000055555559f121 in rb_search (root=root@entry=0x55555564ca20 <inserted>, key=key@entry=0x7fffff7ff020,
comp=comp@entry=0x55555559af95 <cache_tree_comp_range>, next_ret=next_ret@entry=0x7fffff7ff038)
at common/rbtree-utils.c:54
54 {
(gdb) bt
#0 0x000055555559f121 in rb_search (root=root@entry=0x55555564ca20 <inserted>, key=key@entry=0x7fffff7ff020,
comp=comp@entry=0x55555559af95 <cache_tree_comp_range>, next_ret=next_ret@entry=0x7fffff7ff038)
at common/rbtree-utils.c:54
#1 0x000055555559b199 in search_cache_extent (tree=tree@entry=0x55555564ca20 <inserted>,
start=start@entry=15645196861440) at common/extent-cache.c:179
#2 0x0000555555584d27 in set_extent_bits (tree=tree@entry=0x55555564ca20 <inserted>, start=15645196861440,
end=15645196877823, bits=bits@entry=1) at kernel-shared/extent_io.c:380
#3 0x0000555555584f5a in set_extent_dirty (tree=tree@entry=0x55555564ca20 <inserted>, start=<optimized out>,
end=<optimized out>) at kernel-shared/extent_io.c:486
#4 0x00005555555e1c0e in record_csums_eb (eb=eb@entry=0x55555595fde0, processed=processed@entry=0x7fffffffdbe8)
at cmds/rescue-init-csum-tree.c:203
#5 0x00005555555e1cf2 in record_csums_eb (eb=eb@entry=0x55555595fde0, processed=processed@entry=0x7fffffffdbe8)
at cmds/rescue-init-csum-tree.c:224
#6 0x00005555555e1cf2 in record_csums_eb (eb=eb@entry=0x55555595fde0, processed=processed@entry=0x7fffffffdbe8)
at cmds/rescue-init-csum-tree.c:224#7 0x00005555555e1cf2 in record_csums_eb (eb=eb@entry=0x55555595fde0, processed=processed@entry=0x7fffffffdbe8)
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 27 lines · Marc MERLIN
Quoted 25 lines · Josef Bacik
Quoted 12 lines · Marc MERLIN
Quoted 9 lines · Josef Bacik
Ok I pushed something new, but completely untested as I'm sitting at a park with the kids and my kdevops thing is broken on my laptop. You should be able to do
btrfs rescue init-csum-tree <device>
and it'll rebuild the csum tree. It'll give you a progress bar as well. I expect the normal amount of back and forth before it actually works, but it should work faster for you. Thanks,
Quoted 8 lines
Thanks. Actually I'm past that, I'm doing ./btrfs check --init-csum-tree
/dev/mapper/dshelf1that's the one that's been running for days.Are you saying init-csum-tree was moved to rescue which does run faster, and after that I should run the last step, check --repair, that you suggested?
Yes, I've replaced the rescue --init-csum-tree with rescue init-csum-tree, which will repopulate the csum extents.
Quoted 9 lines
Quoted 6 lines
So you should cancel what you're doing, and then run
btrfs rescue init-csum-tree <device>
btrfs check --repair <device>and then you should be good to go. Thanks,
Gotcha, so let's work through the new version, looks like a recursive loop
Fixed, thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 1 line · Josef Bacik
Fixed, thanks,
Thanks, that was a whole lot quicker, less than 1h vs many days.
Recording extents for root 165098
processed 1015808 of 108756992 possible bytes, 0%
Recording extents for root 165100
processed 16384 of 49479680 possible bytes, 0%
Recording extents for root 165198
processed 491520 of 108756992 possible bytes, 0%adding a bytenr that overlaps our thing, dumping paths for [76300, 108, 0] misc/add0/file
doing an insert of the bytenr
doing an insert that overlaps our bytenr 10467695652864 8675328
processed 983040 of 108756992 possible bytes, 0%
Recording extents for root 165200
processed 16384 of 49479680 possible bytes, 0%
Recording extents for root 165294
processed 16384 of 49479680 possible bytes, 0%
Recording extents for root 165298
processed 524288 of 108756992 possible bytes, 0%WTF???? we think we already inserted this bytenr?? [76300, 108, 0] dumping paths 10467695652864 8675328 misc/add0/file
processed 1015808 of 108756992 possible bytes, 0%
Recording extents for root 165299
processed 16384 of 75792384 possible bytes, 0%
Recording extents for root 18446744073709551607
processed 16384 of 16384 possible bytes, 100%
doing block accounting
doing close???
Init extent tree finished, you can run check now
Progress! :)
Now check --repair will be running for while, will report back...
Deleting bad dir index [76854,96,27] root 163921 Deleting bad dir index [78134,96,26] root 163921 Deleting bad dir index [76854,96,28] root 163921 Deleting bad dir index [76854,96,30] root 163921 Deleting bad dir index [76854,96,32] root 163921 repairing missing dir index item for inode 86629 repairing missing dir index item for inode 86630 repairing missing dir index item for inode 86638 repairing missing dir index item for inode 86748 repairing missing dir index item for inode 86759 repairing missing dir index item for inode 86760 repairing missing dir index item for inode 86766 repairing missing dir index item for inode 87909 repairing missing dir index item for inode 87912 repairing missing dir index item for inode 87977 repairing missing dir index item for inode 87978 repairing missing dir index item for inode 87979 repairing missing dir index item for inode 87981 repairing missing dir index item for inode 87982 repairing missing dir index item for inode 87983 repairing missing dir index item for inode 87984 repairing missing dir index item for inode 87985 repairing missing dir index item for inode 87986 repairing missing dir index item for inode 87987 repairing missing dir index item for inode 87988 repairing missing dir index item for inode 87989 repairing missing dir index item for inode 95246 repairing missing dir index item for inode 95699 repairing missing dir index item for inode 95701 repairing missing dir index item for inode 95703 repairing missing dir index item for inode 78946 repairing missing dir index item for inode 78947 repairing missing dir index item for inode 78948 repairing missing dir index item for inode 78949 repairing missing dir index item for inode 78950 repairing missing dir index item for inode 78951 repairing missing dir index item for inode 78952 repairing missing dir index item for inode 78953 repairing missing dir index item for inode 78954 repairing missing dir index item for inode 78955 repairing missing dir index item for inode 78956 repairing missing dir index item for inode 78957 repairing missing dir index item for inode 78958 repairing missing dir index item for inode 78959 repairing missing dir index item for inode 78960 repairing missing dir index item for inode 78961 repairing missing dir index item for inode 78962 repairing missing dir index item for inode 78963 repairing missing dir index item for inode 78964 repairing missing dir index item for inode 78965 repairing missing dir index item for inode 78966 repairing missing dir index item for inode 78967 repairing missing dir index item for inode 78968 repairing missing dir index item for inode 78969 repairing missing dir index item for inode 78970 repairing missing dir index item for inode 78971 repairing missing dir index item for inode 78972 repairing missing dir index item for inode 78973 (...)
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 1 line · Marc MERLIN
Now check --repair will be running for while, will report back...
It wasn't as bad as I thought.
It fixed a bunch of things (long output, I have it saved if needed), mostly orphanned stuff.
and finished with
root 165299 inode 95698 errors 1000, some csum missing root 165299 inode 95699 errors 1000, some csum missing root 165299 inode 95700 errors 1000, some csum missing root 165299 inode 95701 errors 1000, some csum missing root 165299 inode 95702 errors 1000, some csum missing root 165299 inode 95703 errors 1000, some csum missing root 165299 inode 95704 errors 1000, some csum missing root 165299 inode 95705 errors 1000, some csum missing
ERROR: errors found in fs roots
found 56720129146880 bytes used, error(s) found
total csum bytes: 0
total tree bytes: 8334311424
total fs tree bytes: 7565082624
total extent tree bytes: 752779264
btree space waste bytes: 1336306596
file data blocks allocated: 59257396740096
referenced 59313065607168
But I still can't mount the FS:
[1802750.985454] BTRFS info (device dm-1): disk space caching is enabled [1802751.039629] BTRFS info (device dm-1): has skinny extents [1802751.401992] BTRFS error (device dm-1): dev extent physical offset 941709328384 on devid 1 doesn't have corresponding chunk [1802751.437568] BTRFS error (device dm-1): failed to verify dev extents against chunks: -117 [1802751.482104] BTRFS error (device dm-1): open_ctree failed
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 26 lines · Marc MERLIN
Quoted 1 line · Marc MERLIN
Now check --repair will be running for while, will report back...
It wasn't as bad as I thought.
It fixed a bunch of things (long output, I have it saved if needed), mostly orphanned stuff.
and finished with
root 165299 inode 95698 errors 1000, some csum missing root 165299 inode 95699 errors 1000, some csum missing root 165299 inode 95700 errors 1000, some csum missing root 165299 inode 95701 errors 1000, some csum missing root 165299 inode 95702 errors 1000, some csum missing root 165299 inode 95703 errors 1000, some csum missing root 165299 inode 95704 errors 1000, some csum missing root 165299 inode 95705 errors 1000, some csum missing
ERROR: errors found in fs roots
found 56720129146880 bytes used, error(s) found
total csum bytes: 0
total tree bytes: 8334311424
total fs tree bytes: 7565082624
total extent tree bytes: 752779264
btree space waste bytes: 1336306596
file data blocks allocated: 59257396740096
referenced 59313065607168
Quoted 7 lines
But I still can't mount the FS:
[1802750.985454] BTRFS info (device dm-1): disk space caching is enabled [1802751.039629] BTRFS info (device dm-1): has skinny extents [1802751.401992] BTRFS error (device dm-1): dev extent physical offset 941709328384 on devid 1 doesn't have corresponding chunk [1802751.437568] BTRFS error (device dm-1): failed to verify dev extents against chunks: -117 [1802751.482104] BTRFS error (device dm-1): open_ctree failed
Huh, did this pop during the btrfs check? We can just delete that guy
btrfs-corrupt-block -d "1,204,941709328384" -r 3 <device>
and then you should be good, unless there are other dangling dev extents that need to be removed. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 1 line · Josef Bacik
Huh, did this pop during the btrfs check? We can just delete that guy
Yes, just at the end, when it looked finished
Quoted 4 lines
btrfs-corrupt-block -d "1,204,941709328384" -r 3 <device>
and then you should be good, unless there are other dangling dev extents that need to be removed. Thanks,
Is that bad?
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs-corrupt-block -d "1,204,941709328384" -r 3 /dev/mapper/dshelf1 FS_INFO IS 0x56044c4bd600 JOSEF: root 9 Couldn't find the last root for 8 FS_INFO AFTER IS 0x56044c4bd600 Error searching to node -2
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 4 lines · Marc MERLIN
Quoted 1 line · Josef Bacik
Huh, did this pop during the btrfs check? We can just delete that guy
Quoted 8 lines
Yes, just at the end, when it looked finished
Quoted 4 lines
btrfs-corrupt-block -d "1,204,941709328384" -r 3 <device>
and then you should be good, unless there are other dangling dev extents that need to be removed. Thanks,
Is that bad?
Yeah, means I don't understand my own filesystem, use -r 4 instead please. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 9 lines · Josef Bacik
Quoted 6 lines
Quoted 4 lines
btrfs-corrupt-block -d "1,204,941709328384" -r 3 <device>
and then you should be good, unless there are other dangling dev extents that need to be removed. Thanks,
Is that bad?
Yeah, means I don't understand my own filesystem, use -r 4 instead please. Thanks,
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs-corrupt-block -d "1,204,941709328384" -r4 /dev/mapper/dshelf1 FS_INFO IS 0x55e58be9e600 JOSEF: root 9 Couldn't find the last root for 8 FS_INFO AFTER IS 0x55e58be9e600
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs-corrupt-block -d "1,204,941709328384" -r 4 /dev/mapper/dshelf1 FS_INFO IS 0x55e239055600 JOSEF: root 9 Couldn't find the last root for 8 FS_INFO AFTER IS 0x55e239055600 Error searching to node -2
Means it worked?
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 18 lines · Marc MERLIN
Quoted 9 lines · Josef Bacik
Quoted 6 lines
Quoted 4 lines
btrfs-corrupt-block -d "1,204,941709328384" -r 3 <device>
and then you should be good, unless there are other dangling dev extents that need to be removed. Thanks,
Is that bad?
Yeah, means I don't understand my own filesystem, use -r 4 instead please. Thanks,
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs-corrupt-block -d "1,204,941709328384" -r4 /dev/mapper/dshelf1 FS_INFO IS 0x55e58be9e600 JOSEF: root 9 Couldn't find the last root for 8 FS_INFO AFTER IS 0x55e58be9e600
Quoted 8 lines
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs-corrupt-block -d "1,204,941709328384" -r 4 /dev/mapper/dshelf1 FS_INFO IS 0x55e239055600 JOSEF: root 9 Couldn't find the last root for 8 FS_INFO AFTER IS 0x55e239055600 Error searching to node -2Means it worked?
Yeah, probably should print out a "Error: Success!" when it does actually do something. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
In reply to Marc MERLINQuoted 17 lines · Marc MERLIN
Quoted 9 lines · Josef Bacik
Quoted 6 lines
Quoted 4 lines
btrfs-corrupt-block -d "1,204,941709328384" -r 3 <device>
and then you should be good, unless there are other dangling dev extents that need to be removed. Thanks,
Is that bad?
Yeah, means I don't understand my own filesystem, use -r 4 instead please. Thanks,
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs-corrupt-block -d "1,204,941709328384" -r4 /dev/mapper/dshelf1 FS_INFO IS 0x55e58be9e600 JOSEF: root 9 Couldn't find the last root for 8 FS_INFO AFTER IS 0x55e58be9e600
Quoted 8 lines
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs-corrupt-block -d "1,204,941709328384" -r 4 /dev/mapper/dshelf1 FS_INFO IS 0x55e239055600 JOSEF: root 9 Couldn't find the last root for 8 FS_INFO AFTER IS 0x55e239055600 Error searching to node -2Means it worked?
Could you update the code so that it says "deleted"?
I'm doing repair again, and I now see:
Fixed 0 roots.
[2/7] checking extents
checksum verify failed on 364637798400 wanted 0xc3ba5144 found 0x30a5fff1 checksum verify failed on 364637962240 wanted 0x91d33e8a found 0x00890be7 checksum verify failed on 11970891186176 wanted 0x6b46adfb found 0xe40e4cbe checksum verify failed on 12511729680384 wanted 0x41be9fa6 found 0x01f06e9c checksum verify failed on 12512010420224 wanted 0x365027e7 found 0xba73f602 checksum verify failed on 12512303677440 wanted 0xc08fc7a0 found 0x3cb30242 checksum verify failed on 13576951021568 wanted 0x9511e976 found 0xd8fe35ea checksum verify failed on 13577013624832 wanted 0x76bbe220 found 0xdfabbbdb checksum verify failed on 13577013919744 wanted 0xafb37267 found 0x69504e0d checksum verify failed on 13577113485312 wanted 0x049c1e5a found 0x0ddcba27 checksum verify failed on 13577170976768 wanted 0x9585372b found 0x048e24e3 checksum verify failed on 13577420161024 wanted 0x6d37d200 found 0x45f7a0b8 checksum verify failed on 13577490890752 wanted 0x426c3628 found 0x35008768 checksum verify failed on 13577726541824 wanted 0xc3089b25 found 0x426c57c7 checksum verify failed on 13577776611328 wanted 0x50eba933 found 0x4f0ec122 checksum verify failed on 364983844864 wanted 0x3a556bff found 0xba7431e0 checksum verify failed on 364986433536 wanted 0xa2ee2364 found 0xc0023b14 checksum verify failed on 364986449920 wanted 0x55bf9ee9 found 0x9cda5c9f checksum verify failed on 364986482688 wanted 0x5421a4b7 found 0x37ac4734 (...)
checksum verify failed on 15646006722560 wanted 0x760a06a0 found 0xb44fcd95 checksum verify failed on 15645319872512 wanted 0x3bfb10c8 found 0x2be82f60 checksum verify failed on 15645980491776 wanted 0xe1e674a7 found 0x0fdfda2c checksum verify failed on 15645526884352 wanted 0xc2d409c1 found 0xb3eee8d2 checksum verify failed on 13577013936128 wanted 0x4ba00b03 found 0x64614751 Chunk[256, 228, 4523166793728] stripe[1, 4531228246016] is not found in dev extent Chunk[256, 228, 4524240535552] stripe[1, 4532301987840] is not found in dev extent Chunk[256, 228, 4525314277376] stripe[1, 4533375729664] is not found in dev extent Chunk[256, 228, 4526388019200] stripe[1, 4534449471488] is not found in dev extent Chunk[256, 228, 4527461761024] stripe[1, 4535523213312] is not found in dev extent Chunk[256, 228, 4528535502848] stripe[1, 4536596955136] is not found in dev extent Chunk[256, 228, 4529609244672] stripe[1, 4537670696960] is not found in dev extent (...)
Chunk[256, 228, 15362624061440] stripe[1, 14782241439744] is not found in dev extent Chunk[256, 228, 15363697803264] stripe[1, 14783315181568] is not found in dev extent Chunk[256, 228, 15364771545088] stripe[1, 14784388923392] is not found in dev extent Chunk[256, 228, 15365845286912] stripe[1, 14785462665216] is not found in dev extent Chunk[256, 228, 15366919028736] stripe[1, 14786536407040] is not found in dev extent Device extent[1, 11503033909248, 1073741824] didn't find the relative chunk. Device extent[1, 11595375706112, 1073741824] didn't find the relative chunk. Device extent[1, 11596449447936, 1073741824] didn't find the relative chunk. Device extent[1, 11597523189760, 1073741824] didn't find the relative chunk. Device extent[1, 11598596931584, 1073741824] didn't find the relative chunk. Device extent[1, 11599670673408, 1073741824] didn't find the relative chunk. Device extent[1, 11600744415232, 1073741824] didn't find the relative chunk. Device extent[1, 11601818157056, 1073741824] didn't find the relative chunk. Device extent[1, 11611481833472, 1073741824] didn't find the relative chunk. Device extent[1, 11612555575296, 1073741824] didn't find the relative chunk. Device extent[1, 11613629317120, 1073741824] didn't find the relative chunk. (...)
Device extent[1, 11422503272448, 1073741824] didn't find the relative chunk. Device extent[1, 10616123162624, 1073741824] didn't find the relative chunk. super bytes used 14180042272768 mismatches actual used 14180042223616
Ok to continue?
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 1 line · Marc MERLIN
Could you update the code so that it says "deleted"?
AI on this one? ^^^
Quoted 57 lines
I'm doing repair again, and I now see:
Fixed 0 roots.
[2/7] checking extents
checksum verify failed on 364637798400 wanted0xc3ba5144found0x30a5fff1checksum verify failed on 364637962240 wanted0x91d33e8afound0x00890be7checksum verify failed on 11970891186176 wanted0x6b46adfbfound0xe40e4cbechecksum verify failed on 12511729680384 wanted0x41be9fa6found0x01f06e9cchecksum verify failed on 12512010420224 wanted0x365027e7found0xba73f602checksum verify failed on 12512303677440 wanted0xc08fc7a0found0x3cb30242checksum verify failed on 13576951021568 wanted0x9511e976found0xd8fe35eachecksum verify failed on 13577013624832 wanted0x76bbe220found0xdfabbbdbchecksum verify failed on 13577013919744 wanted0xafb37267found0x69504e0dchecksum verify failed on 13577113485312 wanted0x049c1e5afound0x0ddcba27checksum verify failed on 13577170976768 wanted0x9585372bfound0x048e24e3checksum verify failed on 13577420161024 wanted0x6d37d200found0x45f7a0b8checksum verify failed on 13577490890752 wanted0x426c3628found0x35008768checksum verify failed on 13577726541824 wanted0xc3089b25found0x426c57c7checksum verify failed on 13577776611328 wanted0x50eba933found0x4f0ec122checksum verify failed on 364983844864 wanted0x3a556bfffound0xba7431e0checksum verify failed on 364986433536 wanted0xa2ee2364found0xc0023b14checksum verify failed on 364986449920 wanted0x55bf9ee9found0x9cda5c9fchecksum verify failed on 364986482688 wanted0x5421a4b7found0x37ac4734(...)
checksum verify failed on 15646006722560 wanted0x760a06a0found0xb44fcd95checksum verify failed on 15645319872512 wanted0x3bfb10c8found0x2be82f60checksum verify failed on 15645980491776 wanted0xe1e674a7found0x0fdfda2cchecksum verify failed on 15645526884352 wanted0xc2d409c1found0xb3eee8d2checksum verify failed on 13577013936128 wanted0x4ba00b03found0x64614751Chunk[256, 228, 4523166793728] stripe[1, 4531228246016] is not found in dev extent Chunk[256, 228, 4524240535552] stripe[1, 4532301987840] is not found in dev extent Chunk[256, 228, 4525314277376] stripe[1, 4533375729664] is not found in dev extent Chunk[256, 228, 4526388019200] stripe[1, 4534449471488] is not found in dev extent Chunk[256, 228, 4527461761024] stripe[1, 4535523213312] is not found in dev extent Chunk[256, 228, 4528535502848] stripe[1, 4536596955136] is not found in dev extent Chunk[256, 228, 4529609244672] stripe[1, 4537670696960] is not found in dev extent (...)
Chunk[256, 228, 15362624061440] stripe[1, 14782241439744] is not found in dev extent Chunk[256, 228, 15363697803264] stripe[1, 14783315181568] is not found in dev extent Chunk[256, 228, 15364771545088] stripe[1, 14784388923392] is not found in dev extent Chunk[256, 228, 15365845286912] stripe[1, 14785462665216] is not found in dev extent Chunk[256, 228, 15366919028736] stripe[1, 14786536407040] is not found in dev extent Device extent[1, 11503033909248, 1073741824] didn't find the relative chunk. Device extent[1, 11595375706112, 1073741824] didn't find the relative chunk. Device extent[1, 11596449447936, 1073741824] didn't find the relative chunk. Device extent[1, 11597523189760, 1073741824] didn't find the relative chunk. Device extent[1, 11598596931584, 1073741824] didn't find the relative chunk. Device extent[1, 11599670673408, 1073741824] didn't find the relative chunk. Device extent[1, 11600744415232, 1073741824] didn't find the relative chunk. Device extent[1, 11601818157056, 1073741824] didn't find the relative chunk. Device extent[1, 11611481833472, 1073741824] didn't find the relative chunk. Device extent[1, 11612555575296, 1073741824] didn't find the relative chunk. Device extent[1, 11613629317120, 1073741824] didn't find the relative chunk. (...)
Device extent[1, 11422503272448, 1073741824] didn't find the relative chunk. Device extent[1, 10616123162624, 1073741824] didn't find the relative chunk. super bytes used 14180042272768 mismatches actual used 14180042223616
Quoted 1 line
Ok to continue?
It didn't take that long, so I let it finish.
root 165299 inode 95699 errors 1000, some csum missing root 165299 inode 95700 errors 1000, some csum missing root 165299 inode 95701 errors 1000, some csum missing root 165299 inode 95702 errors 1000, some csum missing root 165299 inode 95703 errors 1000, some csum missing root 165299 inode 95704 errors 1000, some csum missing root 165299 inode 95705 errors 1000, some csum missing
ERROR: errors found in fs roots
Fixed the nlink of inode 74607
reset isize for dir 74754 root 165098
reset isize for dir 74978 root 165098
reset isize for dir 75036 root 165098
reset isize for dir 75038 root 165098
reset isize for dir 76276 root 165098
reset isize for dir 74754 root 165198
reset isize for dir 74978 root 165198
reset isize for dir 75036 root 165198
reset isize for dir 75038 root 165198
reset isize for dir 75937 root 165198
reset isize for dir 76276 root 165198
Fixed the nlink of inode 76565
reset isize for dir 74754 root 165298
reset isize for dir 74978 root 165298
reset isize for dir 75036 root 165298
reset isize for dir 75038 root 165298
reset isize for dir 76276 root 165298
found 226880675774464 bytes used, error(s) found total csum bytes: 0
total tree bytes: 33496432640
total fs tree bytes: 30395858944
total extent tree bytes: 3034775552
btree space waste bytes: 5386252957
file data blocks allocated: 249664874872832
referenced 249887841910784
gargamel:/var/local/src/btrfs-progs-josefbacik# mount -o ro,recovery /dev/mapper/dshelf1 /mnt/mnt mount: /mnt/mnt: wrong fs type, bad option, bad superblock on /dev/mapper/dshelf1, missing codepage or helper program, or other error.
BTRFS info (device dm-1): flagging fs with big metadata feature
BTRFS warning (device dm-1): 'recovery' is deprecated, use 'rescue=usebackuproot' instead BTRFS info (device dm-1): trying to use backup root at mount time
BTRFS info (device dm-1): disk space caching is enabled
BTRFS info (device dm-1): has skinny extents
BTRFS error (device dm-1): dev extent physical offset 943856812032 on devid 1 doesn't have corresponding chunk BTRFS error (device dm-1): failed to verify dev extents against chunks: -117
BTRFS error (device dm-1): open_ctree failed
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 61 lines · Marc MERLIN
Quoted 1 line · Marc MERLIN
Could you update the code so that it says "deleted"?
AI on this one? ^^^
Quoted 55 lines
I'm doing repair again, and I now see:
Fixed 0 roots.
[2/7] checking extents
checksum verify failed on 364637798400 wanted0xc3ba5144found0x30a5fff1checksum verify failed on 364637962240 wanted0x91d33e8afound0x00890be7checksum verify failed on 11970891186176 wanted0x6b46adfbfound0xe40e4cbechecksum verify failed on 12511729680384 wanted0x41be9fa6found0x01f06e9cchecksum verify failed on 12512010420224 wanted0x365027e7found0xba73f602checksum verify failed on 12512303677440 wanted0xc08fc7a0found0x3cb30242checksum verify failed on 13576951021568 wanted0x9511e976found0xd8fe35eachecksum verify failed on 13577013624832 wanted0x76bbe220found0xdfabbbdbchecksum verify failed on 13577013919744 wanted0xafb37267found0x69504e0dchecksum verify failed on 13577113485312 wanted0x049c1e5afound0x0ddcba27checksum verify failed on 13577170976768 wanted0x9585372bfound0x048e24e3checksum verify failed on 13577420161024 wanted0x6d37d200found0x45f7a0b8checksum verify failed on 13577490890752 wanted0x426c3628found0x35008768checksum verify failed on 13577726541824 wanted0xc3089b25found0x426c57c7checksum verify failed on 13577776611328 wanted0x50eba933found0x4f0ec122checksum verify failed on 364983844864 wanted0x3a556bfffound0xba7431e0checksum verify failed on 364986433536 wanted0xa2ee2364found0xc0023b14checksum verify failed on 364986449920 wanted0x55bf9ee9found0x9cda5c9fchecksum verify failed on 364986482688 wanted0x5421a4b7found0x37ac4734(...)
checksum verify failed on 15646006722560 wanted0x760a06a0found0xb44fcd95checksum verify failed on 15645319872512 wanted0x3bfb10c8found0x2be82f60checksum verify failed on 15645980491776 wanted0xe1e674a7found0x0fdfda2cchecksum verify failed on 15645526884352 wanted0xc2d409c1found0xb3eee8d2checksum verify failed on 13577013936128 wanted0x4ba00b03found0x64614751Chunk[256, 228, 4523166793728] stripe[1, 4531228246016] is not found in dev extent Chunk[256, 228, 4524240535552] stripe[1, 4532301987840] is not found in dev extent Chunk[256, 228, 4525314277376] stripe[1, 4533375729664] is not found in dev extent Chunk[256, 228, 4526388019200] stripe[1, 4534449471488] is not found in dev extent Chunk[256, 228, 4527461761024] stripe[1, 4535523213312] is not found in dev extent Chunk[256, 228, 4528535502848] stripe[1, 4536596955136] is not found in dev extent Chunk[256, 228, 4529609244672] stripe[1, 4537670696960] is not found in dev extent (...)
Chunk[256, 228, 15362624061440] stripe[1, 14782241439744] is not found in dev extent Chunk[256, 228, 15363697803264] stripe[1, 14783315181568] is not found in dev extent Chunk[256, 228, 15364771545088] stripe[1, 14784388923392] is not found in dev extent Chunk[256, 228, 15365845286912] stripe[1, 14785462665216] is not found in dev extent Chunk[256, 228, 15366919028736] stripe[1, 14786536407040] is not found in dev extent Device extent[1, 11503033909248, 1073741824] didn't find the relative chunk. Device extent[1, 11595375706112, 1073741824] didn't find the relative chunk. Device extent[1, 11596449447936, 1073741824] didn't find the relative chunk. Device extent[1, 11597523189760, 1073741824] didn't find the relative chunk. Device extent[1, 11598596931584, 1073741824] didn't find the relative chunk. Device extent[1, 11599670673408, 1073741824] didn't find the relative chunk. Device extent[1, 11600744415232, 1073741824] didn't find the relative chunk. Device extent[1, 11601818157056, 1073741824] didn't find the relative chunk. Device extent[1, 11611481833472, 1073741824] didn't find the relative chunk. Device extent[1, 11612555575296, 1073741824] didn't find the relative chunk. Device extent[1, 11613629317120, 1073741824] didn't find the relative chunk. (...)
Device extent[1, 11422503272448, 1073741824] didn't find the relative chunk. Device extent[1, 10616123162624, 1073741824] didn't find the relative chunk.
I'm going to have to fix check to fix these problems, I'll let you know when I have something. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 64 lines · Josef Bacik
Quoted 61 lines · Marc MERLIN
Quoted 1 line · Marc MERLIN
Could you update the code so that it says "deleted"?
AI on this one? ^^^
Quoted 55 lines
I'm doing repair again, and I now see:
Fixed 0 roots.
[2/7] checking extents
checksum verify failed on 364637798400 wanted0xc3ba5144found0x30a5fff1checksum verify failed on 364637962240 wanted0x91d33e8afound0x00890be7checksum verify failed on 11970891186176 wanted0x6b46adfbfound0xe40e4cbechecksum verify failed on 12511729680384 wanted0x41be9fa6found0x01f06e9cchecksum verify failed on 12512010420224 wanted0x365027e7found0xba73f602checksum verify failed on 12512303677440 wanted0xc08fc7a0found0x3cb30242checksum verify failed on 13576951021568 wanted0x9511e976found0xd8fe35eachecksum verify failed on 13577013624832 wanted0x76bbe220found0xdfabbbdbchecksum verify failed on 13577013919744 wanted0xafb37267found0x69504e0dchecksum verify failed on 13577113485312 wanted0x049c1e5afound0x0ddcba27checksum verify failed on 13577170976768 wanted0x9585372bfound0x048e24e3checksum verify failed on 13577420161024 wanted0x6d37d200found0x45f7a0b8checksum verify failed on 13577490890752 wanted0x426c3628found0x35008768checksum verify failed on 13577726541824 wanted0xc3089b25found0x426c57c7checksum verify failed on 13577776611328 wanted0x50eba933found0x4f0ec122checksum verify failed on 364983844864 wanted0x3a556bfffound0xba7431e0checksum verify failed on 364986433536 wanted0xa2ee2364found0xc0023b14checksum verify failed on 364986449920 wanted0x55bf9ee9found0x9cda5c9fchecksum verify failed on 364986482688 wanted0x5421a4b7found0x37ac4734(...)
checksum verify failed on 15646006722560 wanted0x760a06a0found0xb44fcd95checksum verify failed on 15645319872512 wanted0x3bfb10c8found0x2be82f60checksum verify failed on 15645980491776 wanted0xe1e674a7found0x0fdfda2cchecksum verify failed on 15645526884352 wanted0xc2d409c1found0xb3eee8d2checksum verify failed on 13577013936128 wanted0x4ba00b03found0x64614751Chunk[256, 228, 4523166793728] stripe[1, 4531228246016] is not found in dev extent Chunk[256, 228, 4524240535552] stripe[1, 4532301987840] is not found in dev extent Chunk[256, 228, 4525314277376] stripe[1, 4533375729664] is not found in dev extent Chunk[256, 228, 4526388019200] stripe[1, 4534449471488] is not found in dev extent Chunk[256, 228, 4527461761024] stripe[1, 4535523213312] is not found in dev extent Chunk[256, 228, 4528535502848] stripe[1, 4536596955136] is not found in dev extent Chunk[256, 228, 4529609244672] stripe[1, 4537670696960] is not found in dev extent (...)
Chunk[256, 228, 15362624061440] stripe[1, 14782241439744] is not found in dev extent Chunk[256, 228, 15363697803264] stripe[1, 14783315181568] is not found in dev extent Chunk[256, 228, 15364771545088] stripe[1, 14784388923392] is not found in dev extent Chunk[256, 228, 15365845286912] stripe[1, 14785462665216] is not found in dev extent Chunk[256, 228, 15366919028736] stripe[1, 14786536407040] is not found in dev extent Device extent[1, 11503033909248, 1073741824] didn't find the relative chunk. Device extent[1, 11595375706112, 1073741824] didn't find the relative chunk. Device extent[1, 11596449447936, 1073741824] didn't find the relative chunk. Device extent[1, 11597523189760, 1073741824] didn't find the relative chunk. Device extent[1, 11598596931584, 1073741824] didn't find the relative chunk. Device extent[1, 11599670673408, 1073741824] didn't find the relative chunk. Device extent[1, 11600744415232, 1073741824] didn't find the relative chunk. Device extent[1, 11601818157056, 1073741824] didn't find the relative chunk. Device extent[1, 11611481833472, 1073741824] didn't find the relative chunk. Device extent[1, 11612555575296, 1073741824] didn't find the relative chunk. Device extent[1, 11613629317120, 1073741824] didn't find the relative chunk. (...)
Device extent[1, 11422503272448, 1073741824] didn't find the relative chunk. Device extent[1, 10616123162624, 1073741824] didn't find the relative chunk.
Quoted 3 lines
I'm going to have to fix check to fix these problems, I'll let you know when I have something. Thanks,
Sorry, kids coming down with COVID. I've pushed a fix for check to delete these things, you can run btrfs check --repair and it should do the right thing. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 1 line · Josef Bacik
Sorry, kids coming down with COVID. I've pushed a fix for check to
Oh no, sorry to hear. Hopefully they'll be ok.
Quoted 2 lines
delete these things, you can run btrfs check --repair and it should do the right thing. Thanks,
Thanks for not giving up. I'm really surprised by the amount of damage that this filesystem endured in less than 60 seconds, especially when I'm pretty sure I wasn't even writing to it. Although I understand that some extra damage may have been done during the repair attempts.
(...)
checksum verify failed on 11160662736896 wanted 0xc46d6447 found 0x9e6e915e
checksum verify failed on 11651750428672 wanted 0x1a5d3be2 found 0xb0ee91ed
checksum verify failed on 11652259332096 wanted 0x779cd76b found 0xa10261c1
Invalid key type(ROOT_ITEM) found in root(11223)
ignoring invalid key
Invalid key type(ROOT_ITEM) found in root(11223)
ignoring invalid key
Invalid key type(ROOT_ITEM) found in root(11223)
ignoring invalid key
Invalid key type(ROOT_ITEM) found in root(11223)
ignoring invalid key
Invalid key type(ROOT_ITEM) found in root(11223)
ignoring invalid key
checksum verify failed on 15645125918720 wanted 0xa2327e31 found 0xe27a2894
checksum verify failed on 15645131276288 wanted 0x578d8fc7 found 0xc159231d
checksum verify failed on 15645146775552 wanted 0x57d7eafa found 0xac917df2
(...)
Chunk[256, 228, 15357255352320] stripe[1, 14776872730624] is not found in dev extent
Chunk[256, 228, 15358329094144] stripe[1, 14777946472448] is not found in dev extent
Chunk[256, 228, 15359402835968] stripe[1, 14779020214272] is not found in dev extent
Chunk[256, 228, 15360476577792] stripe[1, 14780093956096] is not found in dev extent
Chunk[256, 228, 15361550319616] stripe[1, 14781167697920] is not found in dev extent
Chunk[256, 228, 15362624061440] stripe[1, 14782241439744] is not found in dev extent
Chunk[256, 228, 15363697803264] stripe[1, 14783315181568] is not found in dev extent
Chunk[256, 228, 15364771545088] stripe[1, 14784388923392] is not found in dev extent
Chunk[256, 228, 15365845286912] stripe[1, 14785462665216] is not found in dev extent
Chunk[256, 228, 15366919028736] stripe[1, 14786536407040] is not found in dev extent
Device extent[1, 11503033909248, 1073741824] didn't find the relative chunk.
ERROR: couldn't delete chunk record
incorrect local backref count on 2952871936 parent 13576823652352 owner 0 offset 0 found 0 wanted 1 back 0x55aca7a699d0 backref disk bytenr does not match extent record, bytenr=2952871936, ref bytenr=0
data backref 2952871936 root 11223 owner 258 offset 0 num_refs 0 not found in extent tree
incorrect local backref count on 2952871936 root 11223 owner 258 offset 0 found 1 wanted 0 back 0x55acc87dc040 backpointer mismatch on [2952871936 262144]
ERROR: attempt to start transaction over already running one
failed to repair damaged filesystem, aborting
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 4 lines · Marc MERLIN
Quoted 1 line · Josef Bacik
Sorry, kids coming down with COVID. I've pushed a fix for check to
Quoted 9 lines
Oh no, sorry to hear. Hopefully they'll be ok.
Quoted 2 lines
delete these things, you can run btrfs check --repair and it should do the right thing. Thanks,
Thanks for not giving up. I'm really surprised by the amount of damage that this filesystem endured in less than 60 seconds, especially when I'm pretty sure I wasn't even writing to it. Although I understand that some extra damage may have been done during the repair attempts.
I'm an idiot, wrong root for the dev extents.
What I *think* happened is you essentially lost random blocks from 1 transaction. This isn't particularly harmful, except you had a chunk allocation that happened, so you lost some of the chunk root. I didn't realize this is what was happening until now. If I had I probably could have pieced together these dev extents into chunks, and then all those blocks that we had that didn't map to a chunk probably would have been fine, because they were in the range that we lost.
It's not that you lost a lot of blocks, you just lost a few really, really important blocks, and then I failed to recognize what happened so I threw out more than I should have, plus all the other little wonkiness from experimental recovery tools. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 8 lines · Josef Bacik
What I *think* happened is you essentially lost random blocks from 1 transaction. This isn't particularly harmful, except you had a chunk allocation that happened, so you lost some of the chunk root. I didn't realize this is what was happening until now. If I had I probably could have pieced together these dev extents into chunks, and then all those blocks that we had that didn't map to a chunk probably would have been fine, because they were in the range that we lost.
Quoted 4 lines
It's not that you lost a lot of blocks, you just lost a few really, really important blocks, and then I failed to recognize what happened so I threw out more than I should have, plus all the other little wonkiness from experimental recovery tools. Thanks,
Right, which is totally understandable. I'm still glad I have backups (waiting to restore), but I very much appreciate your work right now as it's fixing the bigger problem of recovering an unmountable filesystem.
Ultimately I don't care as much about how much data is lost, but I very much care about btrfs check repair getting the filesystem back to a mountable state, so I've been more than happy helping you get to that state and I'm very thankful for all the time you spent on this so far. Hopefully we're almost there :)
For extra points, files that have corrupted checksums, I'd love for them to be renamed to file.corrupted, so that someone who cares about partial data, can get some data back, and that you can recover much faster with rsync if it only has to look for missing files, as opposed to running a checksum on all the data on both sides, which would take ages. I know in this case, I may end up with some amount of files silently corrupted since we rebuilt the checksum table, not sure if there is a way to do this like I described or some similar way, in the future.
I see you pushed another change, trying it now.
I have the full output saved if need be.
Device extent[1, 14812306210816, 1073741824] didn't find the relative chunk.
Device extent[1, 9544528822272, 1073741824] didn't find the relative chunk.
Device extent[1, 11231377227776, 1073741824] didn't find the relative chunk.
Device extent[1, 11406397145088, 1073741824] didn't find the relative chunk.
Device extent[1, 11416060821504, 1073741824] didn't find the relative chunk.
Device extent[1, 11422503272448, 1073741824] didn't find the relative chunk.
Device extent[1, 10616123162624, 1073741824] didn't find the relative chunk.
incorrect local backref count on 2952871936 parent 13576823652352 owner 0 offset 0 found 0 wanted 1 back 0x55db601ea230 backref disk bytenr does not match extent record, bytenr=2952871936, ref bytenr=0
data backref 2952871936 root 11223 owner 258 offset 0 num_refs 0 not found in extent tree
incorrect local backref count on 2952871936 root 11223 owner 258 offset 0 found 1 wanted 0 back 0x55db80f5c6a0 backpointer mismatch on [2952871936 262144]
repair deleting extent record: key [2952871936,168,262144]
adding new data backref on 2952871936 root 1 owner 258 offset 0 found 1
adding new data backref on 2952871936 root 11223 owner 258 offset 0 found 1
Repaired extent references for 2952871936
incorrect local backref count on 4156227584 parent 13576823652352 owner 0 offset 0 found 0 wanted 1 back 0x55db607ad1f0 backref disk bytenr does not match extent record, bytenr=4156227584, ref bytenr=0
data backref 4156227584 root 11223 owner 259 offset 0 num_refs 0 not found in extent tree
incorrect local backref count on 4156227584 root 11223 owner 259 offset 0 found 1 wanted 0 back 0x55db80f5c570 backpointer mismatch on [4156227584 262144]
repair deleting extent record: key [4156227584,168,262144]
adding new data backref on 4156227584 root 1 owner 259 offset 0 found 1
adding new data backref on 4156227584 root 11223 owner 259 offset 0 found 1
Repaired extent references for 4156227584
(...)
adding new data backref on 10449820549120 root 1 owner 256 offset 0 found 1
adding new data backref on 10449820549120 root 11223 owner 256 offset 0 found 1
Repaired extent references for 10449820549120
super bytes used 14180042240000 mismatches actual used 14180042256384
Invalid key type(ROOT_ITEM) found in root(11223)
ignoring invalid key
Invalid key type(ROOT_ITEM) found in root(11223)
ignoring invalid key
Invalid key type(ROOT_ITEM) found in root(11223)
ignoring invalid key
Invalid key type(ROOT_ITEM) found in root(11223)
ignoring invalid key
Invalid key type(ROOT_ITEM) found in root(11223)
ignoring invalid key
Block group[4523166793728, 1073741824] (flags = 1) didn't find the relative chunk.
Block group[4524240535552, 1073741824] (flags = 1) didn't find the relative chunk.
Block group[4525314277376, 1073741824] (flags = 1) didn't find the relative chunk.
Block group[4526388019200, 1073741824] (flags = 1) didn't find the relative chunk.
Block group[4527461761024, 1073741824] (flags = 1) didn't find the relative chunk.
(...)
super bytes used 14180042240000 mismatches actual used 14180042272768
(...)
root 159785 inode 74938 errors 1000, some csum missing
root 159785 inode 74945 errors 1000, some csum missing
root 159785 inode 74952 errors 1100, file extent discount, some csum missing
Found file extent holes:
start: 2477785088, len: 934416384
root 159785 inode 74958 errors 1500, file extent discount, nbytes wrong, some csum missing
Found file extent holes:
start: 49020928, len: 1426894848
root 159785 inode 74964 errors 1100, file extent discount, some csum missing
Found file extent holes:
start: 714735616, len: 24973312
root 159785 inode 74966 errors 1500, file extent discount, nbytes wrong, some csum missing
Found file extent holes:
start: 13893632, len: 838578176
root 159785 inode 74967 errors 1100, file extent discount, some csum missing
Found file extent holes:
start: 86638592, len: 357191680root 159785 inode 74977 errors 1000, some csum missing
root 159785 inode 74983 errors 1000, some csum missing
root 159785 inode 74984 errors 1000, some csum missing
(...)
root 159785 inode 75025 errors 1000, some csum missing
root 159785 inode 75034 errors 1500, file extent discount, nbytes wrong, some csum missing Found file extent holes:
start: 132841472, len: 112558080
(...)
root 165299 inode 95692 errors 1000, some csum missing root 165299 inode 95697 errors 1000, some csum missing root 165299 inode 95698 errors 1000, some csum missing root 165299 inode 95699 errors 1000, some csum missing root 165299 inode 95700 errors 1000, some csum missing root 165299 inode 95701 errors 1000, some csum missing root 165299 inode 95702 errors 1000, some csum missing root 165299 inode 95703 errors 1000, some csum missing root 165299 inode 95704 errors 1000, some csum missing root 165299 inode 95705 errors 1000, some csum missing
ERROR: errors found in fs roots
Starting repair.
Opening filesystem to check...
JOSEF: root 9
Checking filesystem on /dev/mapper/dshelf1
UUID: 96539b8c-ccc9-47bf-9e6c-29305890941e
reset devid 1 bytes_used to 14599692746752
No device size related problem found
cache and super generation don't match, space cache will be invalidated found 85080253587456 bytes used, error(s) found
total csum bytes: 0
total tree bytes: 12561334272
total fs tree bytes: 11398840320
total extent tree bytes: 1138114560
btree space waste bytes: 2020110583
file data blocks allocated: 93624650268672
referenced 93708263153664
[1969680.027665] BTRFS info (device dm-1): flagging fs with big metadata feature [1969680.049987] BTRFS warning (device dm-1): 'recovery' is deprecated, use 'rescue=usebackuproot' instead [1969680.049991] BTRFS info (device dm-1): trying to use backup root at mount time [1969680.049992] BTRFS info (device dm-1): disk space caching is enabled [1969680.049993] BTRFS info (device dm-1): has skinny extents [1969681.639536] BTRFS error (device dm-1): logical 4523166793728 len 1073741824 found bg but no related chunk [1969681.670760] BTRFS error (device dm-1): failed to read block groups: -2 [1969681.703366] BTRFS error (device dm-1): open_ctree failed
Marc
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 75 lines · Marc MERLIN
Quoted 8 lines · Josef Bacik
What I *think* happened is you essentially lost random blocks from 1 transaction. This isn't particularly harmful, except you had a chunk allocation that happened, so you lost some of the chunk root. I didn't realize this is what was happening until now. If I had I probably could have pieced together these dev extents into chunks, and then all those blocks that we had that didn't map to a chunk probably would have been fine, because they were in the range that we lost.
Quoted 4 lines
It's not that you lost a lot of blocks, you just lost a few really, really important blocks, and then I failed to recognize what happened so I threw out more than I should have, plus all the other little wonkiness from experimental recovery tools. Thanks,
Right, which is totally understandable. I'm still glad I have backups (waiting to restore), but I very much appreciate your work right now as it's fixing the bigger problem of recovering an unmountable filesystem.
Ultimately I don't care as much about how much data is lost, but I very much care about btrfs check repair getting the filesystem back to a mountable state, so I've been more than happy helping you get to that state and I'm very thankful for all the time you spent on this so far. Hopefully we're almost there :)
For extra points, files that have corrupted checksums, I'd love for them to be renamed to file.corrupted, so that someone who cares about partial data, can get some data back, and that you can recover much faster with rsync if it only has to look for missing files, as opposed to running a checksum on all the data on both sides, which would take ages. I know in this case, I may end up with some amount of files silently corrupted since we rebuilt the checksum table, not sure if there is a way to do this like I described or some similar way, in the future.
I see you pushed another change, trying it now.
I have the full output saved if need be.
Device extent[1, 14812306210816, 1073741824] didn't find the relative chunk.
Device extent[1, 9544528822272, 1073741824] didn't find the relative chunk.
Device extent[1, 11231377227776, 1073741824] didn't find the relative chunk.
Device extent[1, 11406397145088, 1073741824] didn't find the relative chunk.
Device extent[1, 11416060821504, 1073741824] didn't find the relative chunk.
Device extent[1, 11422503272448, 1073741824] didn't find the relative chunk.
Device extent[1, 10616123162624, 1073741824] didn't find the relative chunk.
incorrect local backref count on 2952871936 parent 13576823652352 owner 0 offset 0 found 0 wanted 1 back0x55db601ea230backref disk bytenr does not match extent record, bytenr=2952871936, ref bytenr=0
data backref 2952871936 root 11223 owner 258 offset 0num_refs0 not found in extent tree
incorrect local backref count on 2952871936 root 11223 owner 258 offset 0 found 1 wanted 0 back0x55db80f5c6a0backpointer mismatch on [2952871936 262144]
repair deleting extent record: key [2952871936,168,262144]
adding new data backref on 2952871936 root 1 owner 258 offset 0 found 1
adding new data backref on 2952871936 root 11223 owner 258 offset 0 found 1
Repaired extent references for 2952871936
incorrect local backref count on 4156227584 parent 13576823652352 owner 0 offset 0 found 0 wanted 1 back0x55db607ad1f0backref disk bytenr does not match extent record, bytenr=4156227584, ref bytenr=0
data backref 4156227584 root 11223 owner 259 offset 0num_refs0 not found in extent tree
incorrect local backref count on 4156227584 root 11223 owner 259 offset 0 found 1 wanted 0 back0x55db80f5c570backpointer mismatch on [4156227584 262144]
repair deleting extent record: key [4156227584,168,262144]
adding new data backref on 4156227584 root 1 owner 259 offset 0 found 1
adding new data backref on 4156227584 root 11223 owner 259 offset 0 found 1
Repaired extent references for 4156227584
(...)
adding new data backref on 10449820549120 root 1 owner 256 offset 0 found 1
adding new data backref on 10449820549120 root 11223 owner 256 offset 0 found 1
Repaired extent references for 10449820549120
super bytes used 14180042240000 mismatches actual used 14180042256384
Invalid keytype(ROOT_ITEM)found in root(11223)
ignoring invalid key
Invalid keytype(ROOT_ITEM)found in root(11223)
ignoring invalid key
Invalid keytype(ROOT_ITEM)found in root(11223)
ignoring invalid key
Invalid keytype(ROOT_ITEM)found in root(11223)
Quoted 8 lines
ignoring invalid key
Invalid keytype(ROOT_ITEM)found in root(11223)
ignoring invalid key
Block group[4523166793728, 1073741824] (flags = 1) didn't find the relative chunk. Block group[4524240535552, 1073741824] (flags = 1) didn't find the relative chunk. Block group[4525314277376, 1073741824] (flags = 1) didn't find the relative chunk. Block group[4526388019200, 1073741824] (flags = 1) didn't find the relative chunk. Block group[4527461761024, 1073741824] (flags = 1) didn't find the relative chunk.
Hrm crud, I've fixed this, but you may have to re-run the init's. Start with
btrfs check --repair <device>
and then see if it works. If not do
btrfs rescue init-extent-tree <device>
btrfs rescue init-csum-tree <device>
btrfs check <device>
and then you should be good to go. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 5 lines · Josef Bacik
Hrm crud, I've fixed this, but you may have to re-run the init's. Start with
btrfs check --repair <device>
and then see if it works. If not do
Block group[15360476577792, 1073741824] (flags = 1) didn't find the relative chunk. Block group[15361550319616, 1073741824] (flags = 1) didn't find the relative chunk. Block group[15362624061440, 1073741824] (flags = 1) didn't find the relative chunk. Block group[15363697803264, 1073741824] (flags = 1) didn't find the relative chunk. Block group[15364771545088, 1073741824] (flags = 1) didn't find the relative chunk. Block group[15365845286912, 1073741824] (flags = 1) didn't find the relative chunk. Block group[15366919028736, 1073741824] (flags = 1) didn't find the relative chunk. failed to repair damaged filesystem, aborting
Starting repair.
Opening filesystem to check...
JOSEF: root 9
Checking filesystem on /dev/mapper/dshelf1
UUID: 96539b8c-ccc9-47bf-9e6c-29305890941e
Quoted 1 line
btrfs rescue init-extent-tree <device>
Whatever we did may have caused a bunch of new files to be invalid and have to be deleted.
searching 159785 for bad extents
processed 11304960 of 108429312 possible bytes, 10%
Found an extent we don't have a block group for in the file
file
Deleting [11142, 108, 1020231680] root 6781246029824 path top 6781246029824 top slot 2 leaf 3861741830144 slot 109
searching 159785 for bad extents
processed 11304960 of 108429312 possible bytes, 10%
Found an extent we don't have a block group for in the file
file
Deleting [11142, 108, 1020280832] root 6781246046208 path top 6781246046208 top slot 2 leaf 3861741846528 slot 109
searching 159785 for bad extents
processed 11304960 of 108429312 possible bytes, 10%
Found an extent we don't have a block group for in the file
file
Deleting [11142, 108, 1154498560] root 6781246029824 path top 6781246029824 top slot 2 leaf 3861741830144 slot 109
searching 159785 for bad extents
processed 11304960 of 108429312 possible bytes, 10%
Found an extent we don't have a block group for in the file
file
Deleting [11142, 108, 1288716288] root 6781246046208 path top 6781246046208 top slot 2 leaf 3861741846528 slot 10
Mmmh, it's deleted 2500 files already, I just stopped it
gargamel:~# grep -c Deleting /mnt/btrfs_space/ri1 2507
Safe to continue?
Quoted 2 lines
btrfs rescue init-csum-tree <device>
btrfs check <device>
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 51 lines · Marc MERLIN
Quoted 5 lines · Josef Bacik
Hrm crud, I've fixed this, but you may have to re-run the init's. Start with
btrfs check --repair <device>
and then see if it works. If not do
Block group[15360476577792, 1073741824] (flags = 1) didn't find the relative chunk. Block group[15361550319616, 1073741824] (flags = 1) didn't find the relative chunk. Block group[15362624061440, 1073741824] (flags = 1) didn't find the relative chunk. Block group[15363697803264, 1073741824] (flags = 1) didn't find the relative chunk. Block group[15364771545088, 1073741824] (flags = 1) didn't find the relative chunk. Block group[15365845286912, 1073741824] (flags = 1) didn't find the relative chunk. Block group[15366919028736, 1073741824] (flags = 1) didn't find the relative chunk. failed to repair damaged filesystem, aborting
Starting repair.
Opening filesystem to check...
JOSEF: root 9
Checking filesystem on/dev/mapper/dshelf1
UUID: 96539b8c-ccc9-47bf-9e6c-29305890941eQuoted 1 line
btrfs rescue init-extent-tree <device>
Whatever we did may have caused a bunch of new files to be invalid and have to be deleted.
searching 159785 for bad extents
processed 11304960 of 108429312 possible bytes, 10%
Found an extent we don't have a block group for in the file
file
Deleting [11142, 108, 1020231680] root 6781246029824 path top 6781246029824 top slot 2 leaf 3861741830144 slot 109searching 159785 for bad extents
processed 11304960 of 108429312 possible bytes, 10%
Found an extent we don't have a block group for in the file
file
Deleting [11142, 108, 1020280832] root 6781246046208 path top 6781246046208 top slot 2 leaf 3861741846528 slot 109searching 159785 for bad extents
processed 11304960 of 108429312 possible bytes, 10%
Found an extent we don't have a block group for in the file
file
Deleting [11142, 108, 1154498560] root 6781246029824 path top 6781246029824 top slot 2 leaf 3861741830144 slot 109searching 159785 for bad extents
processed 11304960 of 108429312 possible bytes, 10%
Found an extent we don't have a block group for in the file
file
Deleting [11142, 108, 1288716288] root 6781246046208 path top 6781246046208 top slot 2 leaf 3861741846528 slot 10
Quoted 5 lines
Mmmh, it's deleted 2500 files already, I just stopped it
gargamel:~# grep -c Deleting /mnt/btrfs_space/ri1 2507Safe to continue?
Yes sorry I meant to say that. Because we have these dangling block groups we'll suddenly have a bunch of files that no longer are mappable and we'll need to delete them. Looks to be about 7gib of block groups so you're going to lose that stuff, it's going to be a while but it's expected. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 6 lines · Josef Bacik
Yes sorry I meant to say that. Because we have these dangling block groups we'll suddenly have a bunch of files that no longer are mappable and we'll need to delete them. Looks to be about 7gib of block groups so you're going to lose that stuff, it's going to be a while but it's expected. Thanks,
So, it's definitely deleting a lot
I think I'm at 81%
searching 159785 for bad extents
processed 78446592 of 95879168 possible bytes, 81%
Found an extent we don't have a block group for in the file
Performances/Magic/Diversion 08022019.mkv
Deleting [70879, 108, 10708312064] root 6781246029824 path top 6781246029824 top slot 19 leaf 10678930079744 slot 34
gargamel:~# grep -c Deleting /mnt/btrfs_space/ri1 149583
Ok, that's a lot of files, but let's see if it finishes
Marc
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 17 lines · Marc MERLIN
Quoted 6 lines · Josef Bacik
Yes sorry I meant to say that. Because we have these dangling block groups we'll suddenly have a bunch of files that no longer are mappable and we'll need to delete them. Looks to be about 7gib of block groups so you're going to lose that stuff, it's going to be a while but it's expected. Thanks,
So, it's definitely deleting a lot
I think I'm at 81%
searching 159785 for bad extents
processed 78446592 of 95879168 possible bytes, 81%
Found an extent we don't have a block group for in the file
Performances/Magic/Diversion 08022019.mkv
Deleting [70879, 108, 10708312064] root 6781246029824 path top 6781246029824 top slot 19 leaf 10678930079744 slot 34
Quoted 4 lines
gargamel:~# grep -c Deleting /mnt/btrfs_space/ri1 149583Ok, that's a lot of files, but let's see if it finishes
mmmh, so I'm not sure if it's going to finish soon? still going after 5
days.
searching 162632 for bad extents
processed 78446592 of 99090432 possible bytes, 79%
Found an extent we don't have a block group for in the file
file
Deleting [70879, 108, 9305350144] root 6781246177280 path top 6781246177280 top slot 19 leaf 782788263936 slot 0
searching 162632 for bad extents
processed 78446592 of 99090432 possible bytes, 79%
Found an extent we don't have a block group for in the file
file
Deleting [70879, 108, 9305358336] root 6781246128128 path top 6781246128128 top slot 19 leaf 782788296704 slot 0
searching 162632 for bad extents
processed 78446592 of 99090432 possible bytes, 79%
Found an extent we don't have a block group for in the file
file
Deleting [70879, 108, 9305411584] root 6781246177280 path top 6781246177280 top slot 19 leaf 782788263936 slot 0
gargamel:~# grep -c Deleting /mnt/btrfs_space/ri1 620577
over 600K files deleted, it's still moving forward though.
Marc
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 45 lines · Marc MERLIN
Quoted 17 lines · Marc MERLIN
Quoted 6 lines · Josef Bacik
Yes sorry I meant to say that. Because we have these dangling block groups we'll suddenly have a bunch of files that no longer are mappable and we'll need to delete them. Looks to be about 7gib of block groups so you're going to lose that stuff, it's going to be a while but it's expected. Thanks,
So, it's definitely deleting a lot
I think I'm at 81%
searching 159785 for bad extents
processed 78446592 of 95879168 possible bytes, 81%
Found an extent we don't have a block group for in the file
Performances/Magic/Diversion 08022019.mkv
Deleting [70879, 108, 10708312064] root 6781246029824 path top 6781246029824 top slot 19 leaf 10678930079744 slot 34Quoted 4 lines
gargamel:~# grep -c Deleting /mnt/btrfs_space/ri1 149583Ok, that's a lot of files, but let's see if it finishes
mmmh, so I'm not sure if it's going to finish soon? still going after 5
days.
searching 162632 for bad extents
processed 78446592 of 99090432 possible bytes, 79%
Found an extent we don't have a block group for in the file
file
Deleting [70879, 108, 9305350144] root 6781246177280 path top 6781246177280 top slot 19 leaf 782788263936 slot 0searching 162632 for bad extents
processed 78446592 of 99090432 possible bytes, 79%
Found an extent we don't have a block group for in the file
file
Deleting [70879, 108, 9305358336] root 6781246128128 path top 6781246128128 top slot 19 leaf 782788296704 slot 0searching 162632 for bad extents
processed 78446592 of 99090432 possible bytes, 79%
Found an extent we don't have a block group for in the file
file
Deleting [70879, 108, 9305411584] root 6781246177280 path top 6781246177280 top slot 19 leaf 782788263936 slot 0
Quoted 4 lines
gargamel:~# grep -c Deleting /mnt/btrfs_space/ri1 620577over 600K files deleted, it's still moving forward though.
So it's 600k extents, not files. Here you have the same file, just different offsets
Deleting [70879, 108, 9305350144] root 6781246177280 path top 6781246177280 top slot 19 leaf 782788263936 slot 0 Deleting [70879, 108, 9305411584] root 6781246177280 path top 6781246177280 top slot 19 leaf 782788263936 slot 0
I'm really wishing I had noticed this earlier, it would have been faster to put together the old block groups than to wait for this, sorry about that.
Right now I feel like absolute crap, my kids gave me COVID so I've been fluctuating between dying and feeling ok. Tomorrow if I'm feeling better I'll take a look at the chunk restore code and see if I can't just put the tree back the way it was easily. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 2 lines · Josef Bacik
So it's 600k extents, not files. Here you have the same file, just different offsets
True.
Quoted 2 lines
Right now I feel like absolute crap, my kids gave me COVID so I've been fluctuating between dying and feeling ok. Tomorrow if I'm
Sorry :( hope you get better soon
Quoted 2 lines
feeling better I'll take a look at the chunk restore code and see if I can't just put the tree back the way it was easily. Thanks,
As long as it's not deleting stuff it shouldn't delete, I'll keep it running for now, or should I stop it?
Thanks,
Marc
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 10 lines · Marc MERLIN
Quoted 2 lines · Josef Bacik
So it's 600k extents, not files. Here you have the same file, just different offsets
True.
Quoted 2 lines
Right now I feel like absolute crap, my kids gave me COVID so I've been fluctuating between dying and feeling ok. Tomorrow if I'm
Quoted 8 lines
Sorry :( hope you get better soon
Quoted 2 lines
feeling better I'll take a look at the chunk restore code and see if I can't just put the tree back the way it was easily. Thanks,
As long as it's not deleting stuff it shouldn't delete, I'll keep it running for now, or should I stop it?
At this point let's stop it and try and get the missing chunks back. Looking at the chunk rescue code it looks like it should do the correct thing, can you do
btrfs rescue chunk-recover <device>
and let me know what that does? Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 3 lines · Josef Bacik
At this point let's stop it and try and get the missing chunks back. Looking at the chunk rescue code it looks like it should do the correct thing, can you do
I stopped it here, can't tell how far it was after almost a week of running:
searching 163316 for bad extents
processed 74514432 of 108576768 possible bytes, 68%
Found an extent we don't have a block group for in the file History/JeanMerlin_Picts/VACANCES/0320-052633.jpg
Deleting [58726, 108, 0] root 6781246275584 path top 6781246275584 top slot 18 leaf 11160503386112 slot 80
searching 163316 for bad extents
processed 74514432 of 108576768 possible bytes, 68%
Found an extent we don't have a block group for in the file History/JeanMerlin_Picts/VACANCES/0320-052720.jpg
Deleting [58727, 108, 0] root 6781246226432 path top 6781246226432 top slot 18 leaf 11160503353344 slot 82
searching 163316 for bad extents
processed 74514432 of 108576768 possible bytes, 68%
Found an extent we don't have a block group for in the file History/JeanMerlin_Picts/VACANCES/0320-053405.jpg
Deleting [58728, 108, 0] root 6781246275584 path top 6781246275584 top slot 18 leaf 11160503386112 slot 84
searching 163316 for bad extents
processed ^Z515008 of 108576768 possible bytes, 67%
Quoted 1 line
btrfs rescue chunk-recover <device>
Took close to a day to run, and now I have this:
./btrfs rescue chunk-recover /dev/mapper/dshelf1
Scanning: DONE in dev0
JOSEF: root 9
Couldn't find the last root for 8
We are going to rebuild the chunk tree on disk, it might destroy the old metadata on the disk, Are you sure? [y/N]:
Do I say 'y' ?
Marc
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 33 lines · Marc MERLIN
Quoted 3 lines · Josef Bacik
At this point let's stop it and try and get the missing chunks back. Looking at the chunk rescue code it looks like it should do the correct thing, can you do
I stopped it here, can't tell how far it was after almost a week of running:
searching 163316 for bad extents
processed 74514432 of 108576768 possible bytes, 68%
Found an extent we don't have a block group for in the file History/JeanMerlin_Picts/VACANCES/0320-052633.jpg
Deleting [58726, 108, 0] root 6781246275584 path top 6781246275584 top slot 18 leaf 11160503386112 slot 80searching 163316 for bad extents
processed 74514432 of 108576768 possible bytes, 68%
Found an extent we don't have a block group for in the file History/JeanMerlin_Picts/VACANCES/0320-052720.jpg
Deleting [58727, 108, 0] root 6781246226432 path top 6781246226432 top slot 18 leaf 11160503353344 slot 82searching 163316 for bad extents
processed 74514432 of 108576768 possible bytes, 68%
Found an extent we don't have a block group for in the file History/JeanMerlin_Picts/VACANCES/0320-053405.jpg
Deleting [58728, 108, 0] root 6781246275584 path top 6781246275584 top slot 18 leaf 11160503386112 slot 84searching 163316 for bad extents
processed ^Z515008 of 108576768 possible bytes, 67%Quoted 1 line
btrfs rescue chunk-recover <device>
Took close to a day to run, and now I have this:
Quoted 8 lines
./btrfs rescue chunk-recover
/dev/mapper/dshelf1
Scanning: DONE in dev0
JOSEF: root 9
Couldn't find the last root for 8
We are going to rebuild the chunk tree on disk, it might destroy the old metadata on the disk, Are you sure? [y/N]:Do I say 'y' ?
Yup it should have found all the best chunks, lets let it do its thing. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 9 lines · Josef Bacik
Quoted 7 lines
./btrfs rescue chunk-recover
/dev/mapper/dshelf1
Scanning: DONE in dev0
JOSEF: root 9
Couldn't find the last root for 8
We are going to rebuild the chunk tree on disk, it might destroy the old metadata on the disk, Are you sure? [y/N]:Do I say 'y' ?
Yup it should have found all the best chunks, lets let it do its thing. Thanks,
Done.
what next?
gargamel:/var/local/src/btrfs-progs-josefbacik# fg ./btrfs rescue chunk-recover /dev/mapper/dshelf1 Scanning: DONE in dev0 JOSEF: root 9 Couldn't find the last root for 8 We are going to rebuild the chunk tree on disk, it might destroy the old metadata on the disk, Are you sure? [y/N]: y Chunk tree recovered successfully gargamel:/var/local/src/btrfs-progs-josefbacik#
I still have this that ran almost a week:
gargamel:/var/local/src/btrfs-progs-josefbacik# jobs [1]+ Stopped ./btrfs rescue init-extent-tree /dev/mapper/dshelf1 2>&1 | tee /mnt/btrfs_space/ri1
I assume it's invalidated and I should kill it?
If so, do I start the same thing again?
Marc
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 26 lines · Marc MERLIN
Quoted 9 lines · Josef Bacik
Quoted 7 lines
./btrfs rescue chunk-recover
/dev/mapper/dshelf1
Scanning: DONE in dev0
JOSEF: root 9
Couldn't find the last root for 8
We are going to rebuild the chunk tree on disk, it might destroy the old metadata on the disk, Are you sure? [y/N]:Do I say 'y' ?
Yup it should have found all the best chunks, lets let it do its thing. Thanks,
Done.
what next?
gargamel:/var/local/src/btrfs-progs-josefbacik# fg ./btrfs rescue chunk-recover /dev/mapper/dshelf1 Scanning: DONE in dev0 JOSEF: root 9 Couldn't find the last root for 8 We are going to rebuild the chunk tree on disk, it might destroy the old metadata on the disk, Are you sure? [y/N]: y Chunk tree recovered successfully gargamel:/var/local/src/btrfs-progs-josefbacik#
Quoted 7 lines
I still have this that ran almost a week:
gargamel:/var/local/src/btrfs-progs-josefbacik# jobs [1]+ Stopped ./btrfs rescue init-extent-tree /dev/mapper/dshelf1 2>&1 | tee /mnt/btrfs_space/ri1I assume it's invalidated and I should kill it?
If so, do I start the same thing again?
Kill it and start it again, hopefully this time we have all the chunks and the init should be quick like it was before. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 10 lines · Josef Bacik
Quoted 7 lines
I still have this that ran almost a week:
gargamel:/var/local/src/btrfs-progs-josefbacik# jobs [1]+ Stopped ./btrfs rescue init-extent-tree /dev/mapper/dshelf1 2>&1 | tee /mnt/btrfs_space/ri1I assume it's invalidated and I should kill it?
If so, do I start the same thing again?Kill it and start it again, hopefully this time we have all the chunks and the init should be quick like it was before. Thanks,
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue init-extent-tree /dev/mapper/dshelf1 2>&1 | tee /mnt/btrfs_space/ri1 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 Csum didn't match ERROR: cannot read chunk root WTF??? ERROR: open ctree failed, try btrfs rescue tree-recover Init extent tree failed
Do I do
./btrfs rescue tree-recover --init-extent-tree /dev/mapper/dshelf1 or
./btrfs rescue tree-recover /dev/mapper/dshelf1
Thanks,
Marc
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 23 lines · Marc MERLIN
Quoted 10 lines · Josef Bacik
Quoted 7 lines
I still have this that ran almost a week:
gargamel:/var/local/src/btrfs-progs-josefbacik# jobs [1]+ Stopped ./btrfs rescue init-extent-tree /dev/mapper/dshelf1 2>&1 | tee /mnt/btrfs_space/ri1I assume it's invalidated and I should kill it?
If so, do I start the same thing again?Kill it and start it again, hopefully this time we have all the chunks and the init should be quick like it was before. Thanks,
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue init-extent-tree /dev/mapper/dshelf1 2>&1 | tee /mnt/btrfs_space/ri1 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 Csum didn't match ERROR: cannot read chunk root WTF??? ERROR: open ctree failed, try btrfs rescue tree-recover Init extent tree failed
Quoted 4 lines
Do I do
./btrfs rescue tree-recover --init-extent-tree/dev/mapper/dshelf1or
./btrfs rescue tree-recover/dev/mapper/dshelf1
Tree-recover first, lord I'm tired of our tools randomly not updating root pointers. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 7 lines · Josef Bacik
Quoted 4 lines
Do I do
./btrfs rescue tree-recover --init-extent-tree/dev/mapper/dshelf1or
./btrfs rescue tree-recover/dev/mapper/dshelf1Tree-recover first, lord I'm tired of our tools randomly not updating root pointers. Thanks,
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue tree-recover /dev/mapper/dshelf1 ERROR: cannot read chunk root WTF??? ERROR: open ctree failed Tree recover failed
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 7 lines · Marc MERLIN
Quoted 5 lines · Josef Bacik
Quoted 4 lines
Do I do
./btrfs rescue tree-recover --init-extent-tree/dev/mapper/dshelf1or
./btrfs rescue tree-recover/dev/mapper/dshelf1
Quoted 8 lines
Quoted 2 lines
Tree-recover first, lord I'm tired of our tools randomly not updating root pointers. Thanks,
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue tree-recover /dev/mapper/dshelf1 ERROR: cannot read chunk root WTF??? ERROR: open ctree failed Tree recover failed
Sigh, I've pushed new code, build and run
./btrfs-find-root -o 3 <device>
and let me know what it says. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 17 lines · Josef Bacik
Quoted 7 lines · Marc MERLIN
Quoted 5 lines · Josef Bacik
Quoted 4 lines
Do I do
./btrfs rescue tree-recover --init-extent-tree/dev/mapper/dshelf1or
./btrfs rescue tree-recover/dev/mapper/dshelf1Quoted 8 lines
Quoted 2 lines
Tree-recover first, lord I'm tired of our tools randomly not updating root pointers. Thanks,
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue tree-recover /dev/mapper/dshelf1 ERROR: cannot read chunk root WTF??? ERROR: open ctree failed Tree recover failed
Quoted 5 lines
Sigh, I've pushed new code, build and run
./btrfs-find-root -o 3 <device>
and let me know what it says. Thanks,
I thought we were getting so close, but it seems we'e made a few steps back :-/
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs-find-root -o 3 /dev/mapper/dshelf1 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 Csum didn't match ERROR: cannot read chunk root WTF??? ERROR: open ctree failed
At some point, if the FS is starting to look like it was trashed to start with, or kind of trashed now after some of the recovery attempts, let me know and I'll wipe and restore.
That said, if there is still data useful to improving your tools, I'm game for a bit more, although if we hit the 2 months mark since it went down, I'll have to eventuallly recover :)
Thanks,
Marc
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 37 lines · Marc MERLIN
Quoted 17 lines · Josef Bacik
Quoted 7 lines · Marc MERLIN
Quoted 5 lines · Josef Bacik
Quoted 4 lines
Do I do
./btrfs rescue tree-recover --init-extent-tree/dev/mapper/dshelf1or
./btrfs rescue tree-recover/dev/mapper/dshelf1Quoted 8 lines
Quoted 2 lines
Tree-recover first, lord I'm tired of our tools randomly not updating root pointers. Thanks,
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue tree-recover /dev/mapper/dshelf1 ERROR: cannot read chunk root WTF??? ERROR: open ctree failed Tree recover failedQuoted 5 lines
Sigh, I've pushed new code, build and run
./btrfs-find-root -o 3 <device>
and let me know what it says. Thanks,
I thought we were getting so close, but it seems we'e made a few steps back :-/
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs-find-root -o 3 /dev/mapper/dshelf1 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 Csum didn't match ERROR: cannot read chunk root WTF??? ERROR: open ctree failed
Quoted 7 lines
At some point, if the FS is starting to look like it was trashed to start with, or kind of trashed now after some of the recovery attempts, let me know and I'll wipe and restore.
That said, if there is still data useful to improving your tools, I'm game for a bit more, although if we hit the 2 months mark since it went down, I'll have to eventuallly recover :)
This is approaching insanity a little bit, but we're relatively close. I fixed the flags, hopefully it'll work this time. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
In reply to Marc MERLINQuoted 12 lines · Marc MERLIN
I thought we were getting so close, but it seems we'e made a few steps back :-/
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs-find-root -o 3 /dev/mapper/dshelf1 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 Csum didn't match ERROR: cannot read chunk root WTF??? ERROR: open ctree failed
Quoted 6 lines
At some point, if the FS is starting to look like it was trashed to start with, or kind of trashed now after some of the recovery attempts, let me know and I'll wipe and restore.
That said, if there is still data useful to improving your tools, I'm game for a bit more, although if we hit the 2 months mark since it went down, I'll have to eventuallly recover :)
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs-find-root -o 3 /dev/mapper/dshelf1 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 Csum didn't match WARNING: cannot read chunk root, continue anyway Superblock thinks the generation is 1739781 Superblock thinks the level is 1 Well block 22593536(gen: 1590219 level: 0) seems good, AND HAS NO BAD ITEMS but generation/level doesn't match, want gen: 1739781 level: 1 Well block 22560768(gen: 1590217 level: 0) seems good, AND HAS NO BAD ITEMS but generation/level doesn't match, want gen: 1739781 level: 1 Well block 22577152(gen: 1586277 level: 0) seems good, AND HAS NO BAD ITEMS but generation/level doesn't match, want gen: 1739781 level: 1 Well block 22495232(gen: 1572124 level: 0) seems good, AND HAS NO BAD ITEMS but generation/level doesn't match, want gen: 1739781 level: 1 Well block 22528000(gen: 1572115 level: 0) seems good, AND HAS NO BAD ITEMS but generation/level doesn't match, want gen: 1739781 level: 1 Well block 22446080(gen: 1571791 level: 0) seems good, AND HAS NO BAD ITEMS but generation/level doesn't match, want gen: 1739781 level: 1 Well block 22478848(gen: 1561557 level: 0) seems good, AND HAS NO BAD ITEMS but generation/level doesn't match, want gen: 1739781 level: 1 Well block 22544384(gen: 1556078 level: 0) seems good, AND HAS NO BAD ITEMS but generation/level doesn't match, want gen: 1739781 level: 1 Well block 22511616(gen: 1555799 level: 0) seems good, AND HAS NO BAD ITEMS but generation/level doesn't match, want gen: 1739781 level: 1 Well block 22609920(gen: 1551635 level: 0) seems good, AND HAS NO BAD ITEMS but generation/level doesn't match, want gen: 1739781 level: 1 Well block 22462464(gen: 1479229 level: 0) seems good, AND HAS NO BAD ITEMS but generation/level doesn't match, want gen: 1739781 level: 1 gargamel:/var/local/src/btrfs-progs-josefbacik#
Is that good?
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 42 lines · Marc MERLIN
Quoted 12 lines · Marc MERLIN
I thought we were getting so close, but it seems we'e made a few steps back :-/
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs-find-root -o 3 /dev/mapper/dshelf1 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 Csum didn't match ERROR: cannot read chunk root WTF??? ERROR: open ctree failedQuoted 6 lines
At some point, if the FS is starting to look like it was trashed to start with, or kind of trashed now after some of the recovery attempts, let me know and I'll wipe and restore.
That said, if there is still data useful to improving your tools, I'm game for a bit more, although if we hit the 2 months mark since it went down, I'll have to eventuallly recover :)gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs-find-root -o 3 /dev/mapper/dshelf1 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 Csum didn't match WARNING: cannot read chunk root, continue anyway Superblock thinks the generation is 1739781 Superblock thinks the level is 1 Well block 22593536(gen: 1590219 level: 0) seems good, AND HAS NO BAD ITEMS but generation/level doesn't match, want gen: 1739781 level: 1 Well block 22560768(gen: 1590217 level: 0) seems good, AND HAS NO BAD ITEMS but generation/level doesn't match, want gen: 1739781 level: 1 Well block 22577152(gen: 1586277 level: 0) seems good, AND HAS NO BAD ITEMS but generation/level doesn't match, want gen: 1739781 level: 1 Well block 22495232(gen: 1572124 level: 0) seems good, AND HAS NO BAD ITEMS but generation/level doesn't match, want gen: 1739781 level: 1 Well block 22528000(gen: 1572115 level: 0) seems good, AND HAS NO BAD ITEMS but generation/level doesn't match, want gen: 1739781 level: 1 Well block 22446080(gen: 1571791 level: 0) seems good, AND HAS NO BAD ITEMS but generation/level doesn't match, want gen: 1739781 level: 1 Well block 22478848(gen: 1561557 level: 0) seems good, AND HAS NO BAD ITEMS but generation/level doesn't match, want gen: 1739781 level: 1 Well block 22544384(gen: 1556078 level: 0) seems good, AND HAS NO BAD ITEMS but generation/level doesn't match, want gen: 1739781 level: 1 Well block 22511616(gen: 1555799 level: 0) seems good, AND HAS NO BAD ITEMS but generation/level doesn't match, want gen: 1739781 level: 1 Well block 22609920(gen: 1551635 level: 0) seems good, AND HAS NO BAD ITEMS but generation/level doesn't match, want gen: 1739781 level: 1 Well block 22462464(gen: 1479229 level: 0) seems good, AND HAS NO BAD ITEMS but generation/level doesn't match, want gen: 1739781 level: 1 gargamel:/var/local/src/btrfs-progs-josefbacik#
Quoted 1 line
Is that good?
I'm augmenting my tree-recover tool to go and find any missing chunks and add them in, which is what the chunk recover thing was supposed to do. This is going to take a bit, but should be the last piece. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 3 lines · Josef Bacik
I'm augmenting my tree-recover tool to go and find any missing chunks and add them in, which is what the chunk recover thing was supposed to do. This is going to take a bit, but should be the last piece.
And by that you mean you're working on it and will tell me when it's ready to pull, or did you forget git push?
Thanks,
Marc
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 9 lines · Marc MERLIN
Quoted 3 lines · Josef Bacik
I'm augmenting my tree-recover tool to go and find any missing chunks and add them in, which is what the chunk recover thing was supposed to do. This is going to take a bit, but should be the last piece.
And by that you mean you're working on it and will tell me when it's ready to pull, or did you forget git push?
Still typing, just didn't want you to think I'd disappeared. I'll let you know when you can pull. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 8 lines · Josef Bacik
Quoted 6 lines · Marc MERLIN
Quoted 3 lines · Josef Bacik
I'm augmenting my tree-recover tool to go and find any missing chunks and add them in, which is what the chunk recover thing was supposed to do. This is going to take a bit, but should be the last piece.
Quoted 7 lines
Quoted 3 lines
And by that you mean you're working on it and will tell me when it's ready to pull, or did you forget git push?
Still typing, just didn't want you to think I'd disappeared. I'll let you know when you can pull. Thanks,
Sorry my ability to think isn't doing so great right now. I've wired up the detection stuff, but it won't actually fix anything yet. I want to make sure I've got detection part right before I go messing with the file system. If you can pull and build and then run
btrfs rescue recover-chunks <device>
and capture the output that would be great. Hopefully this shows the missing block groups and I can just copy them into place. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 9 lines · Josef Bacik
Sorry my ability to think isn't doing so great right now. I've wired up the detection stuff, but it won't actually fix anything yet. I want to make sure I've got detection part right before I go messing with the file system. If you can pull and build and then run
btrfs rescue recover-chunks <device>
and capture the output that would be great. Hopefully this shows the missing block groups and I can just copy them into place. Thanks,
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue recover-chunks /dev/mapper/dshelf1 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 Csum didn't match ERROR: cannot read chunk root WTF??? ERROR: open ctree failed, try btrfs rescue tree-recover Recover chunks tree failed gargamel:/var/local/src/btrfs-progs-josefbacik#
So, should I do what it says?
Marc
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 23 lines · Marc MERLIN
Quoted 9 lines · Josef Bacik
Sorry my ability to think isn't doing so great right now. I've wired up the detection stuff, but it won't actually fix anything yet. I want to make sure I've got detection part right before I go messing with the file system. If you can pull and build and then run
btrfs rescue recover-chunks <device>
and capture the output that would be great. Hopefully this shows the missing block groups and I can just copy them into place. Thanks,
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue recover-chunks /dev/mapper/dshelf1 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 Csum didn't match ERROR: cannot read chunk root WTF??? ERROR: open ctree failed, try btrfs rescue tree-recover Recover chunks tree failed gargamel:/var/local/src/btrfs-progs-josefbacik#
Quoted 1 line
So, should I do what it says?
Oh yeah duh sorry, I was adding it to tree-recover but decided it was a bad place for it. Go ahead and run tree-recover and then do the recover-chunks. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 24 lines · Josef Bacik
Quoted 23 lines · Marc MERLIN
Quoted 9 lines · Josef Bacik
Sorry my ability to think isn't doing so great right now. I've wired up the detection stuff, but it won't actually fix anything yet. I want to make sure I've got detection part right before I go messing with the file system. If you can pull and build and then run
btrfs rescue recover-chunks <device>
and capture the output that would be great. Hopefully this shows the missing block groups and I can just copy them into place. Thanks,
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue recover-chunks /dev/mapper/dshelf1 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 Csum didn't match ERROR: cannot read chunk root WTF??? ERROR: open ctree failed, try btrfs rescue tree-recover Recover chunks tree failed gargamel:/var/local/src/btrfs-progs-josefbacik#
Quoted 5 lines
Quoted 1 line
So, should I do what it says?
Oh yeah duh sorry, I was adding it to tree-recover but decided it was a bad place for it. Go ahead and run tree-recover and then do the recover-chunks. Thanks,
:(
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue tree-recover /dev/mapper/dshelf1 ERROR: cannot read chunk root WTF??? ERROR: open ctree failed Tree recover failed
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue recover-chunks /dev/mapper/dshelf1 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 Csum didn't match ERROR: cannot read chunk root WTF??? ERROR: open ctree failed, try btrfs rescue tree-recover Recover chunks tree failed gargamel:/var/local/src/btrfs-progs-josefbacik#
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 32 lines · Marc MERLIN
Quoted 24 lines · Josef Bacik
Quoted 23 lines · Marc MERLIN
Quoted 9 lines · Josef Bacik
Sorry my ability to think isn't doing so great right now. I've wired up the detection stuff, but it won't actually fix anything yet. I want to make sure I've got detection part right before I go messing with the file system. If you can pull and build and then run
btrfs rescue recover-chunks <device>
and capture the output that would be great. Hopefully this shows the missing block groups and I can just copy them into place. Thanks,
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue recover-chunks /dev/mapper/dshelf1 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 Csum didn't match ERROR: cannot read chunk root WTF??? ERROR: open ctree failed, try btrfs rescue tree-recover Recover chunks tree failed gargamel:/var/local/src/btrfs-progs-josefbacik#Quoted 5 lines
Quoted 1 line
So, should I do what it says?
Oh yeah duh sorry, I was adding it to tree-recover but decided it was a bad place for it. Go ahead and run tree-recover and then do the recover-chunks. Thanks,
Quoted 7 lines
:(
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue tree-recover /dev/mapper/dshelf1 ERROR: cannot read chunk root WTF??? ERROR: open ctree failed Tree recover failed
Sorry, thought I fixed this before pushing yesterday, try again please. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 7 lines · Josef Bacik
Quoted 5 lines
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue tree-recover /dev/mapper/dshelf1 ERROR: cannot read chunk root WTF??? ERROR: open ctree failed Tree recover failedSorry, thought I fixed this before pushing yesterday, try again please. Thanks,
Resynced but it's the same:
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue tree-recover /dev/mapper/dshelf1 WARNING: cannot read chunk root, continue anyway ERROR: Failed to read root block Tree recover failed gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue recover-chunks /dev/mapper/dshelf1 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 Csum didn't match ERROR: cannot read chunk root WTF??? ERROR: open ctree failed, try btrfs rescue tree-recover Recover chunks tree failed gargamel:/var/local/src/btrfs-progs-josefbacik#
Marc
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 8 lines · Marc MERLIN
Quoted 6 lines · Josef Bacik
Quoted 5 lines
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue tree-recover /dev/mapper/dshelf1 ERROR: cannot read chunk root WTF??? ERROR: open ctree failed Tree recover failed
Quoted 8 lines
Quoted 1 line
Sorry, thought I fixed this before pushing yesterday, try again please. Thanks,
Resynced but it's the same:
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue tree-recover /dev/mapper/dshelf1 WARNING: cannot read chunk root, continue anyway ERROR: Failed to read root block Tree recover failed
Oh huh, apparently I only scan for a root if we didn't find a good fit in the beginning, not if I couldn't read any roots. Fixed that up, please try again. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 13 lines · Josef Bacik
Quoted 12 lines · Marc MERLIN
Quoted 7 lines · Josef Bacik
Quoted 5 lines
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue tree-recover /dev/mapper/dshelf1 ERROR: cannot read chunk root WTF??? ERROR: open ctree failed Tree recover failedSorry, thought I fixed this before pushing yesterday, try again please. Thanks,
Resynced but it's the same:
Quoted 8 lines
Quoted 4 lines
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue tree-recover /dev/mapper/dshelf1 WARNING: cannot read chunk root, continue anyway ERROR: Failed to read root block Tree recover failedOh huh, apparently I only scan for a root if we didn't find a good fit in the beginning, not if I couldn't read any roots. Fixed that up, please try again. Thanks,
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue tree-recover /dev/mapper/dshelf1 WARNING: cannot read chunk root, continue anyway none of our backups was sufficient, scanning for a root ERROR: Couldn't find a valid root block for 3, we're going to clear it and hope for the best Tree recover failed
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 24 lines · Marc MERLIN
Quoted 13 lines · Josef Bacik
Quoted 12 lines · Marc MERLIN
Quoted 7 lines · Josef Bacik
Quoted 5 lines
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue tree-recover /dev/mapper/dshelf1 ERROR: cannot read chunk root WTF??? ERROR: open ctree failed Tree recover failedSorry, thought I fixed this before pushing yesterday, try again please. Thanks,
Resynced but it's the same:
Quoted 8 lines
Quoted 4 lines
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue tree-recover /dev/mapper/dshelf1 WARNING: cannot read chunk root, continue anyway ERROR: Failed to read root block Tree recover failedOh huh, apparently I only scan for a root if we didn't find a good fit in the beginning, not if I couldn't read any roots. Fixed that up, please try again. Thanks,
Quoted 6 lines
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue tree-recover /dev/mapper/dshelf1 WARNING: cannot read chunk root, continue anyway none of our backups was sufficient, scanning for a root ERROR: Couldn't find a valid root block for 3, we're going to clear it and hope for the best Tree recover failed
Well if anything tree-recover will be rock solid by the end of this. Try again please. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 8 lines · Josef Bacik
Quoted 5 lines
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue tree-recover /dev/mapper/dshelf1 WARNING: cannot read chunk root, continue anyway none of our backups was sufficient, scanning for a root ERROR: Couldn't find a valid root block for 3, we're going to clear it and hope for the best Tree recover failedWell if anything tree-recover will be rock solid by the end of this. Try again please. Thanks,
Sorry :(
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue tree-recover /dev/mapper/dshelf1 WARNING: cannot read chunk root, continue anyway none of our backups was sufficient, scanning for a root ERROR: Couldn't find a valid root block for 3, we're going to clear it and hope for the best Tree recover failed gargamel:/var/local/src/btrfs-progs-josefbacik# git pull Already up-to-date. gargamel:/var/local/src/btrfs-progs-josefbacik#
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 11 lines · Marc MERLIN
Quoted 8 lines · Josef Bacik
Quoted 5 lines
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue tree-recover /dev/mapper/dshelf1 WARNING: cannot read chunk root, continue anyway none of our backups was sufficient, scanning for a root ERROR: Couldn't find a valid root block for 3, we're going to clear it and hope for the best Tree recover failedWell if anything tree-recover will be rock solid by the end of this. Try again please. Thanks,
Quoted 7 lines
Sorry :(
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue tree-recover /dev/mapper/dshelf1 WARNING: cannot read chunk root, continue anyway none of our backups was sufficient, scanning for a root ERROR: Couldn't find a valid root block for 3, we're going to clear it and hope for the best Tree recover failed
Lord alright, lets try some debugging. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 7 lines · Josef Bacik
Quoted 5 lines
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue tree-recover /dev/mapper/dshelf1 WARNING: cannot read chunk root, continue anyway none of our backups was sufficient, scanning for a root ERROR: Couldn't find a valid root block for 3, we're going to clear it and hope for the best Tree recover failedLord alright, lets try some debugging. Thanks,
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue tree-recover /dev/mapper/dshelf1 WARNING: cannot read chunk root, continue anyway none of our backups was sufficient, scanning for a root scanning, best has 0 found 1 bad ERROR: Couldn't find a valid root block for 3, we're going to clear it and hope for the best Tree recover failed gargamel:/var/local/src/btrfs-progs-josefbacik#
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 10 lines · Marc MERLIN
Quoted 7 lines · Josef Bacik
Quoted 5 lines
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue tree-recover /dev/mapper/dshelf1 WARNING: cannot read chunk root, continue anyway none of our backups was sufficient, scanning for a root ERROR: Couldn't find a valid root block for 3, we're going to clear it and hope for the best Tree recover failedLord alright, lets try some debugging. Thanks,
Quoted 7 lines
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue tree-recover /dev/mapper/dshelf1 WARNING: cannot read chunk root, continue anyway none of our backups was sufficient, scanning for a root scanning, best has 0 found 1 bad ERROR: Couldn't find a valid root block for 3, we're going to clear it and hope for the best Tree recover failed gargamel:/var/local/src/btrfs-progs-josefbacik#
Hmm, the sys array should be fine, try again, hopefully that'll clear things up. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 19 lines · Josef Bacik
Quoted 10 lines · Marc MERLIN
Quoted 7 lines · Josef Bacik
Quoted 5 lines
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue tree-recover /dev/mapper/dshelf1 WARNING: cannot read chunk root, continue anyway none of our backups was sufficient, scanning for a root ERROR: Couldn't find a valid root block for 3, we're going to clear it and hope for the best Tree recover failedLord alright, lets try some debugging. Thanks,
Quoted 7 lines
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue tree-recover /dev/mapper/dshelf1 WARNING: cannot read chunk root, continue anyway none of our backups was sufficient, scanning for a root scanning, best has 0 found 1 bad ERROR: Couldn't find a valid root block for 3, we're going to clear it and hope for the best Tree recover failed gargamel:/var/local/src/btrfs-progs-josefbacik#
Quoted 2 lines
Hmm, the sys array should be fine, try again, hopefully that'll clear things up. Thanks,
It went farther this time
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue tree-recover /dev/mapper/dshelf1 WARNING: cannot read chunk root, continue anyway none of our backups was sufficient, scanning for a root scanning, best has 0 found 1 bad ret is 0 offset 20971520 len 8388608 ret is -2 offset 20971520 len 8388608 checking block 22495232 generation 1572124 fs info generation 0 checking block 22462464 generation 1479229 fs info generation 0 checking block 22528000 generation 1572115 fs info generation 0 checking block 22446080 generation 1571791 fs info generation 0 checking block 22544384 generation 1556078 fs info generation 0 checking block 22511616 generation 1555799 fs info generation 0 checking block 22577152 generation 1586277 fs info generation 0 checking block 22478848 generation 1561557 fs info generation 0 checking block 22593536 generation 1590219 fs info generation 0 checking block 22609920 generation 1551635 fs info generation 0 checking block 22560768 generation 1590217 fs info generation 0 ERROR: Couldn't find a valid root block for 3, we're going to clear it and hope for the best Tree recover failed
Marc
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 37 lines · Marc MERLIN
Quoted 19 lines · Josef Bacik
Quoted 10 lines · Marc MERLIN
Quoted 7 lines · Josef Bacik
Quoted 5 lines
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue tree-recover /dev/mapper/dshelf1 WARNING: cannot read chunk root, continue anyway none of our backups was sufficient, scanning for a root ERROR: Couldn't find a valid root block for 3, we're going to clear it and hope for the best Tree recover failedLord alright, lets try some debugging. Thanks,
Quoted 7 lines
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue tree-recover /dev/mapper/dshelf1 WARNING: cannot read chunk root, continue anyway none of our backups was sufficient, scanning for a root scanning, best has 0 found 1 bad ERROR: Couldn't find a valid root block for 3, we're going to clear it and hope for the best Tree recover failed gargamel:/var/local/src/btrfs-progs-josefbacik#Quoted 2 lines
Hmm, the sys array should be fine, try again, hopefully that'll clear things up. Thanks,
It went farther this time
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue tree-recover /dev/mapper/dshelf1 WARNING: cannot read chunk root, continue anyway none of our backups was sufficient, scanning for a root scanning, best has 0 found 1 bad ret is 0 offset 20971520 len 8388608 ret is -2 offset 20971520 len 8388608 checking block 22495232 generation 1572124 fs info generation 0 checking block 22462464 generation 1479229 fs info generation 0 checking block 22528000 generation 1572115 fs info generation 0 checking block 22446080 generation 1571791 fs info generation 0 checking block 22544384 generation 1556078 fs info generation 0
Quoted 9 lines
checking block 22511616 generation 1555799 fs info generation 0 checking block 22577152 generation 1586277 fs info generation 0 checking block 22478848 generation 1561557 fs info generation 0 checking block 22593536 generation 1590219 fs info generation 0 checking block 22609920 generation 1551635 fs info generation 0 checking block 22560768 generation 1590217 fs info generation 0 ERROR: Couldn't find a valid root block for 3, we're going to clear it and hope for the best Tree recover failed
Ah ok that makes sense, fixed it, sorry about that. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 1 line · Josef Bacik
Ah ok that makes sense, fixed it, sorry about that. Thanks,
Same?
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue tree-recover /dev/mapper/dshelf1 WARNING: cannot read chunk root, continue anyway none of our backups was sufficient, scanning for a root scanning, best has 0 found 1 bad ret is 0 offset 20971520 len 8388608 ret is -2 offset 20971520 len 8388608 checking block 22495232 generation 1572124 fs info generation 0 checking block 22462464 generation 1479229 fs info generation 0 checking block 22528000 generation 1572115 fs info generation 0 checking block 22446080 generation 1571791 fs info generation 0 checking block 22544384 generation 1556078 fs info generation 0 checking block 22511616 generation 1555799 fs info generation 0 checking block 22577152 generation 1586277 fs info generation 0 checking block 22478848 generation 1561557 fs info generation 0 checking block 22593536 generation 1590219 fs info generation 0 checking block 22609920 generation 1551635 fs info generation 0 checking block 22560768 generation 1590217 fs info generation 0 ERROR: Couldn't find a valid root block for 3, we're going to clear it and hope for the best Tree recover failed gargamel:/var/local/src/btrfs-progs-josefbacik# git pull Already up-to-date.
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 5 lines · Marc MERLIN
Quoted 1 line · Josef Bacik
Ah ok that makes sense, fixed it, sorry about that. Thanks,
Same?
Bah my bad, we fail earlier than I realized, should work now. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 8 lines · Josef Bacik
Quoted 5 lines · Marc MERLIN
Quoted 1 line · Josef Bacik
Ah ok that makes sense, fixed it, sorry about that. Thanks,
Same?
Bah my bad, we fail earlier than I realized, should work now. Thanks,
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue tree-recover /dev/mapper/dshelf1 WARNING: cannot read chunk root, continue anyway none of our backups was sufficient, scanning for a root scanning, best has 0 found 1 bad ret is 0 offset 20971520 len 8388608 ret is -2 offset 20971520 len 8388608 checking block 22495232 generation 1572124 fs info generation 2582703 trying bytenr 22495232 got 1 blocks 0 bad checking block 22462464 generation 1479229 fs info generation 2582703 trying bytenr 22462464 got 1 blocks 0 bad checking block 22528000 generation 1572115 fs info generation 2582703 trying bytenr 22528000 got 1 blocks 0 bad checking block 22446080 generation 1571791 fs info generation 2582703 trying bytenr 22446080 got 1 blocks 0 bad checking block 22544384 generation 1556078 fs info generation 2582703 trying bytenr 22544384 got 1 blocks 0 bad checking block 22511616 generation 1555799 fs info generation 2582703 trying bytenr 22511616 got 1 blocks 0 bad checking block 22577152 generation 1586277 fs info generation 2582703 trying bytenr 22577152 got 1 blocks 0 bad checking block 22478848 generation 1561557 fs info generation 2582703 trying bytenr 22478848 got 1 blocks 0 bad checking block 22593536 generation 1590219 fs info generation 2582703 trying bytenr 22593536 got 1 blocks 0 bad checking block 22609920 generation 1551635 fs info generation 2582703 trying bytenr 22609920 got 1 blocks 0 bad checking block 22560768 generation 1590217 fs info generation 2582703 trying bytenr 22560768 got 1 blocks 0 bad No mapping for 15645202989056-15645203005440 Couldn't map the block 15645202989056 Couldn't map the block 15645202989056 No mapping for 15645202907136-15645202923520 Couldn't map the block 15645202907136 Couldn't map the block 15645202907136 No mapping for 15645202989056-15645203005440 Couldn't map the block 15645202989056 Couldn't map the block 15645202989056 No mapping for 15645202989056-15645203005440 Couldn't map the block 15645202989056 Couldn't map the block 15645202989056 No mapping for 15645202907136-15645202923520 Couldn't map the block 15645202907136 Couldn't map the block 15645202907136 none of our backups was sufficient, scanning for a root scanning, best has 0 found 1 bad ERROR: Couldn't find a valid root block for 1, we're going to clear it and hope for the best Tree recover failed
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 50 lines · Marc MERLIN
Quoted 8 lines · Josef Bacik
Quoted 5 lines · Marc MERLIN
Quoted 1 line · Josef Bacik
Ah ok that makes sense, fixed it, sorry about that. Thanks,
Same?
Bah my bad, we fail earlier than I realized, should work now. Thanks,
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue tree-recover /dev/mapper/dshelf1 WARNING: cannot read chunk root, continue anyway none of our backups was sufficient, scanning for a root scanning, best has 0 found 1 bad ret is 0 offset 20971520 len 8388608 ret is -2 offset 20971520 len 8388608 checking block 22495232 generation 1572124 fs info generation 2582703 trying bytenr 22495232 got 1 blocks 0 bad checking block 22462464 generation 1479229 fs info generation 2582703 trying bytenr 22462464 got 1 blocks 0 bad checking block 22528000 generation 1572115 fs info generation 2582703 trying bytenr 22528000 got 1 blocks 0 bad checking block 22446080 generation 1571791 fs info generation 2582703 trying bytenr 22446080 got 1 blocks 0 bad checking block 22544384 generation 1556078 fs info generation 2582703 trying bytenr 22544384 got 1 blocks 0 bad checking block 22511616 generation 1555799 fs info generation 2582703 trying bytenr 22511616 got 1 blocks 0 bad checking block 22577152 generation 1586277 fs info generation 2582703 trying bytenr 22577152 got 1 blocks 0 bad checking block 22478848 generation 1561557 fs info generation 2582703 trying bytenr 22478848 got 1 blocks 0 bad checking block 22593536 generation 1590219 fs info generation 2582703 trying bytenr 22593536 got 1 blocks 0 bad checking block 22609920 generation 1551635 fs info generation 2582703 trying bytenr 22609920 got 1 blocks 0 bad checking block 22560768 generation 1590217 fs info generation 2582703 trying bytenr 22560768 got 1 blocks 0 bad No mapping for 15645202989056-15645203005440 Couldn't map the block 15645202989056 Couldn't map the block 15645202989056 No mapping for 15645202907136-15645202923520 Couldn't map the block 15645202907136 Couldn't map the block 15645202907136 No mapping for 15645202989056-15645203005440 Couldn't map the block 15645202989056 Couldn't map the block 15645202989056 No mapping for 15645202989056-15645203005440 Couldn't map the block 15645202989056
Quoted 8 lines
Couldn't map the block 15645202989056 No mapping for 15645202907136-15645202923520 Couldn't map the block 15645202907136 Couldn't map the block 15645202907136 none of our backups was sufficient, scanning for a root scanning, best has 0 found 1 bad ERROR: Couldn't find a valid root block for 1, we're going to clear it and hope for the best Tree recover failed
I hate myself so much. It looks like it recovered the chunk tree, so you should be able to run
btrfs rescue recover-chunks <device>
to see if it can find the mapping's we're missing. If it does then I'll wire up the code to insert them, and then we can go about finding the other roots and getting this thing fixed. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 8 lines · Josef Bacik
I hate myself so much. It looks like it recovered the chunk tree, so you should be able to run
btrfs rescue recover-chunks <device>
to see if it can find the mapping's we're missing. If it does then I'll wire up the code to insert them, and then we can go about finding the other roots and getting this thing fixed. Thanks,
gargamel:/var/local/src/btrfs-progs-josefbacik# git pull Already up-to-date.
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue recover-chunks /dev/mapper/dshelf1 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 Csum didn't match ERROR: cannot read chunk root WTF??? ERROR: open ctree failed, try btrfs rescue tree-recover Recover chunks tree failed
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue tree-recover /dev/mapper/dshelf1 WARNING: cannot read chunk root, continue anyway none of our backups was sufficient, scanning for a root scanning, best has 0 found 1 bad ret is 0 offset 20971520 len 8388608 ret is -2 offset 20971520 len 8388608 checking block 22495232 generation 1572124 fs info generation 2582703 trying bytenr 22495232 got 1 blocks 0 bad checking block 22462464 generation 1479229 fs info generation 2582703 trying bytenr 22462464 got 1 blocks 0 bad checking block 22528000 generation 1572115 fs info generation 2582703 trying bytenr 22528000 got 1 blocks 0 bad checking block 22446080 generation 1571791 fs info generation 2582703 trying bytenr 22446080 got 1 blocks 0 bad checking block 22544384 generation 1556078 fs info generation 2582703 trying bytenr 22544384 got 1 blocks 0 bad checking block 22511616 generation 1555799 fs info generation 2582703 trying bytenr 22511616 got 1 blocks 0 bad checking block 22577152 generation 1586277 fs info generation 2582703 trying bytenr 22577152 got 1 blocks 0 bad checking block 22478848 generation 1561557 fs info generation 2582703 trying bytenr 22478848 got 1 blocks 0 bad checking block 22593536 generation 1590219 fs info generation 2582703 trying bytenr 22593536 got 1 blocks 0 bad checking block 22609920 generation 1551635 fs info generation 2582703 trying bytenr 22609920 got 1 blocks 0 bad checking block 22560768 generation 1590217 fs info generation 2582703 trying bytenr 22560768 got 1 blocks 0 bad No mapping for 15645202989056-15645203005440 Couldn't map the block 15645202989056 Couldn't map the block 15645202989056 No mapping for 15645202907136-15645202923520 Couldn't map the block 15645202907136 Couldn't map the block 15645202907136 No mapping for 15645202989056-15645203005440 Couldn't map the block 15645202989056 Couldn't map the block 15645202989056 No mapping for 15645202989056-15645203005440 Couldn't map the block 15645202989056 Couldn't map the block 15645202989056 No mapping for 15645202907136-15645202923520 Couldn't map the block 15645202907136 Couldn't map the block 15645202907136 none of our backups was sufficient, scanning for a root scanning, best has 0 found 1 bad ERROR: Couldn't find a valid root block for 1, we're going to clear it and hope for the best Tree recover failed
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 5 lines · Marc MERLIN
Quoted 3 lines · Josef Bacik
I hate myself so much. It looks like it recovered the chunk tree, so you should be able to run
Quoted 9 lines
Quoted 5 lines
btrfs rescue recover-chunks <device>
to see if it can find the mapping's we're missing. If it does then I'll wire up the code to insert them, and then we can go about finding the other roots and getting this thing fixed. Thanks,
gargamel:/var/local/src/btrfs-progs-josefbacik# git pull Already up-to-date.
Wtf, we're clearly writing the chunk root properly because I have to re-open it to recover the tree root, and that's where it fails, but then the chunk restore can't open the root, despite it being correctly read in the tree recover. I've pushed new code, try tree-recover and then recover-chunks again and capture the output please. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 5 lines · Josef Bacik
Wtf, we're clearly writing the chunk root properly because I have to re-open it to recover the tree root, and that's where it fails, but then the chunk restore can't open the root, despite it being correctly read in the tree recover. I've pushed new code, try tree-recover and then recover-chunks again and capture the output please. Thanks,
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue recover-chunks /dev/mapper/dshelf1 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 Csum didn't match ERROR: cannot read chunk root 21135360 WTF??? ERROR: open ctree failed, try btrfs rescue tree-recover Recover chunks tree failed gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue tree-recover /dev/mapper/dshelf1 WARNING: cannot read chunk root, continue anyway none of our backups was sufficient, scanning for a root scanning, best has 0 found 1 bad ret is 0 offset 20971520 len 8388608 ret is -2 offset 20971520 len 8388608 checking block 22495232 generation 1572124 fs info generation 2582703 trying bytenr 22495232 got 1 blocks 0 bad checking block 22462464 generation 1479229 fs info generation 2582703 trying bytenr 22462464 got 1 blocks 0 bad checking block 22528000 generation 1572115 fs info generation 2582703 trying bytenr 22528000 got 1 blocks 0 bad checking block 22446080 generation 1571791 fs info generation 2582703 trying bytenr 22446080 got 1 blocks 0 bad checking block 22544384 generation 1556078 fs info generation 2582703 trying bytenr 22544384 got 1 blocks 0 bad checking block 22511616 generation 1555799 fs info generation 2582703 trying bytenr 22511616 got 1 blocks 0 bad checking block 22577152 generation 1586277 fs info generation 2582703 trying bytenr 22577152 got 1 blocks 0 bad checking block 22478848 generation 1561557 fs info generation 2582703 trying bytenr 22478848 got 1 blocks 0 bad checking block 22593536 generation 1590219 fs info generation 2582703 trying bytenr 22593536 got 1 blocks 0 bad checking block 22609920 generation 1551635 fs info generation 2582703 trying bytenr 22609920 got 1 blocks 0 bad checking block 22560768 generation 1590217 fs info generation 2582703 trying bytenr 22560768 got 1 blocks 0 bad No mapping for 15645202989056-15645203005440 Couldn't map the block 15645202989056 Couldn't map the block 15645202989056 No mapping for 15645202907136-15645202923520 Couldn't map the block 15645202907136 Couldn't map the block 15645202907136 No mapping for 15645202989056-15645203005440 Couldn't map the block 15645202989056 Couldn't map the block 15645202989056 No mapping for 15645202989056-15645203005440 Couldn't map the block 15645202989056 Couldn't map the block 15645202989056 No mapping for 15645202907136-15645202923520 Couldn't map the block 15645202907136 Couldn't map the block 15645202907136 none of our backups was sufficient, scanning for a root scanning, best has 0 found 1 bad ERROR: Couldn't find a valid root block for 1, we're going to clear it and hope for the best Tree recover failed gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue recover-chunks /dev/mapper/dshelf1 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 Csum didn't match ERROR: cannot read chunk root 21135360 WTF??? ERROR: open ctree failed, try btrfs rescue tree-recover Recover chunks tree failed
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 8 lines · Marc MERLIN
Quoted 5 lines · Josef Bacik
Wtf, we're clearly writing the chunk root properly because I have to re-open it to recover the tree root, and that's where it fails, but then the chunk restore can't open the root, despite it being correctly read in the tree recover. I've pushed new code, try tree-recover and then recover-chunks again and capture the output please. Thanks,
Quoted 4 lines
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue recover-chunks /dev/mapper/dshelf1 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5
Ah ok, I wasn't actually updating the pointer, fixed that, lets try the same sequence again. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 9 lines · Josef Bacik
Quoted 8 lines · Marc MERLIN
Quoted 5 lines · Josef Bacik
Wtf, we're clearly writing the chunk root properly because I have to re-open it to recover the tree root, and that's where it fails, but then the chunk restore can't open the root, despite it being correctly read in the tree recover. I've pushed new code, try tree-recover and then recover-chunks again and capture the output please. Thanks,
Quoted 7 lines
Quoted 4 lines
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue recover-chunks /dev/mapper/dshelf1 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5Ah ok, I wasn't actually updating the pointer, fixed that, lets try the same sequence again. Thanks,
gargamel:/var/local/src/btrfs-progs-josefbacik# gdb ./btrfs rescue tree-recover /dev/mapper/dshelf1 Excess command line arguments ignored. (tree-recover ...) GNU gdb (Debian 7.12-6+b2) 7.12.0.20161007-git Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from ./btrfs...done. /var/local/src/btrfs-progs-josefbacik/rescue: No such file or directory. (gdb) rn rescue tree-recover /dev/mapper/dshelf1 Target exec does not support this command. (gdb) run rescue tree-recover /dev/mapper/dshelf1 Starting program: /var/local/src/btrfs-progs-josefbacik/btrfs rescue tree-recover /dev/mapper/dshelf1 [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". WARNING: cannot read chunk root, continue anyway none of our backups was sufficient, scanning for a root scanning, best has 0 found 1 bad ret is 0 offset 20971520 len 8388608 ret is -2 offset 20971520 len 8388608 checking block 22495232 generation 1572124 fs info generation 2582703 trying bytenr 22495232 got 1 blocks 0 bad checking block 22462464 generation 1479229 fs info generation 2582703 trying bytenr 22462464 got 1 blocks 0 bad checking block 22528000 generation 1572115 fs info generation 2582703 trying bytenr 22528000 got 1 blocks 0 bad checking block 22446080 generation 1571791 fs info generation 2582703 trying bytenr 22446080 got 1 blocks 0 bad checking block 22544384 generation 1556078 fs info generation 2582703 trying bytenr 22544384 got 1 blocks 0 bad checking block 22511616 generation 1555799 fs info generation 2582703 trying bytenr 22511616 got 1 blocks 0 bad checking block 22577152 generation 1586277 fs info generation 2582703 trying bytenr 22577152 got 1 blocks 0 bad checking block 22478848 generation 1561557 fs info generation 2582703 trying bytenr 22478848 got 1 blocks 0 bad checking block 22593536 generation 1590219 fs info generation 2582703 trying bytenr 22593536 got 1 blocks 0 bad checking block 22609920 generation 1551635 fs info generation 2582703 trying bytenr 22609920 got 1 blocks 0 bad checking block 22560768 generation 1590217 fs info generation 2582703 trying bytenr 22560768 got 1 blocks 0 bad ret is 0 offset 20971520 len 8388608 ret is -2 offset 20971520 len 8388608 setting chunk root to 22593536
Program received signal SIGSEGV, Segmentation fault.0x000055555557b352 in backup_super_roots (info=0x55555564fbc0) at ./kernel-shared/ctree.h:2270
2270 BTRFS_SETGET_STACK_FUNCS(backup_tree_root_gen, struct btrfs_root_backup,
(gdb) bt
#0 0x000055555557b352 in backup_super_roots (info=0x55555564fbc0) at ./kernel-shared/ctree.h:2270
#1 write_all_supers (fs_info=fs_info@entry=0x55555564fbc0) at kernel-shared/disk-io.c:2102
#2 0x00005555555df49e in repair_super_root (fs_info_ptr=fs_info_ptr@entry=0x7fffffffdce8, ocf=ocf@entry=0x7fffffffdcc0,
objectid=objectid@entry=3) at cmds/rescue-tree-recover.c:958
#3 0x00005555555df62c in btrfs_recover_trees (path=path@entry=0x7fffffffe1ce "/dev/mapper/dshelf1")
at cmds/rescue-tree-recover.c:1194
#4 0x00005555555d808e in cmd_rescue_tree_recover (cmd=<optimized out>, argc=<optimized out>, argv=<optimized out>)
at cmds/rescue.c:176
#5 0x000055555556c17b in cmd_execute (argv=0x7fffffffdeb8, argc=2, cmd=0x555555645c20 <cmd_struct_rescue_tree_recover>)
at cmds/commands.h:125
#6 handle_command_group (cmd=<optimized out>, argc=2, argv=0x7fffffffdeb8) at btrfs.c:152
#7 0x000055555556c275 in cmd_execute (argv=0x7fffffffdeb0, argc=3, cmd=0x555555646cc0 <cmd_struct_rescue>) at cmds/commands.h:125
#8 main (argc=3, argv=0x7fffffffdeb0) at btrfs.c:405Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 11 lines · Marc MERLIN
Quoted 9 lines · Josef Bacik
Quoted 8 lines · Marc MERLIN
Quoted 5 lines · Josef Bacik
Wtf, we're clearly writing the chunk root properly because I have to re-open it to recover the tree root, and that's where it fails, but then the chunk restore can't open the root, despite it being correctly read in the tree recover. I've pushed new code, try tree-recover and then recover-chunks again and capture the output please. Thanks,
Quoted 8 lines
Quoted 7 lines
Quoted 4 lines
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue recover-chunks /dev/mapper/dshelf1 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5Ah ok, I wasn't actually updating the pointer, fixed that, lets try the same sequence again. Thanks,
Ok backup roots don't work if we didn't read them, try again please. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 17 lines · Josef Bacik
Quoted 16 lines · Marc MERLIN
Quoted 14 lines · Josef Bacik
Quoted 12 lines · Marc MERLIN
Quoted 5 lines · Josef Bacik
Wtf, we're clearly writing the chunk root properly because I have to re-open it to recover the tree root, and that's where it fails, but then the chunk restore can't open the root, despite it being correctly read in the tree recover. I've pushed new code, try tree-recover and then recover-chunks again and capture the output please. Thanks,
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue recover-chunks /dev/mapper/dshelf1 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5
Quoted 5 lines
Quoted 3 lines
Quoted 2 lines
Ah ok, I wasn't actually updating the pointer, fixed that, lets try the same sequence again. Thanks,
Ok backup roots don't work if we didn't read them, try again please. Thanks,
gargamel:/var/local/src/btrfs-progs-josefbacik# git pull Already up-to-date. gargamel:/var/local/src/btrfs-progs-josefbacik# gdb ./btrfs rescue tree-recover /dev/mapper/dshelf1 Excess command line arguments ignored. (tree-recover ...) GNU gdb (Debian 7.12-6+b2) 7.12.0.20161007-git Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from ./btrfs...done. /var/local/src/btrfs-progs-josefbacik/rescue: No such file or directory. (gdb) run rescue tree-recover /dev/mapper/dshelf1 Starting program: /var/local/src/btrfs-progs-josefbacik/btrfs rescue tree-recover /dev/mapper/dshelf1 [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". WARNING: cannot read chunk root, continue anyway none of our backups was sufficient, scanning for a root scanning, best has 0 found 1 bad ret is 0 offset 20971520 len 8388608 ret is -2 offset 20971520 len 8388608 checking block 22495232 generation 1572124 fs info generation 2582703 trying bytenr 22495232 got 1 blocks 0 bad checking block 22462464 generation 1479229 fs info generation 2582703 trying bytenr 22462464 got 1 blocks 0 bad checking block 22528000 generation 1572115 fs info generation 2582703 trying bytenr 22528000 got 1 blocks 0 bad checking block 22446080 generation 1571791 fs info generation 2582703 trying bytenr 22446080 got 1 blocks 0 bad checking block 22544384 generation 1556078 fs info generation 2582703 trying bytenr 22544384 got 1 blocks 0 bad checking block 22511616 generation 1555799 fs info generation 2582703 trying bytenr 22511616 got 1 blocks 0 bad checking block 22577152 generation 1586277 fs info generation 2582703 trying bytenr 22577152 got 1 blocks 0 bad checking block 22478848 generation 1561557 fs info generation 2582703 trying bytenr 22478848 got 1 blocks 0 bad checking block 22593536 generation 1590219 fs info generation 2582703 trying bytenr 22593536 got 1 blocks 0 bad checking block 22609920 generation 1551635 fs info generation 2582703 trying bytenr 22609920 got 1 blocks 0 bad checking block 22560768 generation 1590217 fs info generation 2582703 trying bytenr 22560768 got 1 blocks 0 bad ret is 0 offset 20971520 len 8388608 ret is -2 offset 20971520 len 8388608 setting chunk root to 22593536
Program received signal SIGSEGV, Segmentation fault.0x000055555557b328 in backup_super_roots (info=0x55555564fbc0) at kernel-shared/disk-io.c:2027
2027 if (!info->chunk_root->node ||
(gdb) bt
#0 0x000055555557b328 in backup_super_roots (info=0x55555564fbc0) at kernel-shared/disk-io.c:2027
#1 write_all_supers (fs_info=fs_info@entry=0x55555564fbc0) at kernel-shared/disk-io.c:2110
#2 0x00005555555df4ef in repair_super_root (fs_info_ptr=fs_info_ptr@entry=0x7fffffffdce8, ocf=ocf@entry=0x7fffffffdcc0,
objectid=objectid@entry=3) at cmds/rescue-tree-recover.c:958
#3 0x00005555555df67d in btrfs_recover_trees (path=path@entry=0x7fffffffe1ce "/dev/mapper/dshelf1")
at cmds/rescue-tree-recover.c:1194
#4 0x00005555555d80df in cmd_rescue_tree_recover (cmd=<optimized out>, argc=<optimized out>, argv=<optimized out>)
at cmds/rescue.c:176
#5 0x000055555556c17b in cmd_execute (argv=0x7fffffffdeb8, argc=2, cmd=0x555555645c20 <cmd_struct_rescue_tree_recover>)
at cmds/commands.h:125
#6 handle_command_group (cmd=<optimized out>, argc=2, argv=0x7fffffffdeb8) at btrfs.c:152
#7 0x000055555556c275 in cmd_execute (argv=0x7fffffffdeb0, argc=3, cmd=0x555555646cc0 <cmd_struct_rescue>) at cmds/commands.h:125
#8 main (argc=3, argv=0x7fffffffdeb0) at btrfs.c:405Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 71 lines · Marc MERLIN
Quoted 17 lines · Josef Bacik
Quoted 16 lines · Marc MERLIN
Quoted 14 lines · Josef Bacik
Quoted 12 lines · Marc MERLIN
Quoted 5 lines · Josef Bacik
Wtf, we're clearly writing the chunk root properly because I have to re-open it to recover the tree root, and that's where it fails, but then the chunk restore can't open the root, despite it being correctly read in the tree recover. I've pushed new code, try tree-recover and then recover-chunks again and capture the output please. Thanks,
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue recover-chunks /dev/mapper/dshelf1 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5 checksum verify failed on 21135360 wanted 0x00000000 found 0x3533f3b5Quoted 5 lines
Quoted 3 lines
Quoted 2 lines
Ah ok, I wasn't actually updating the pointer, fixed that, lets try the same sequence again. Thanks,
Ok backup roots don't work if we didn't read them, try again please. Thanks,
gargamel:/var/local/src/btrfs-progs-josefbacik# git pull Already up-to-date. gargamel:/var/local/src/btrfs-progs-josefbacik# gdb ./btrfs rescue tree-recover /dev/mapper/dshelf1 Excess command line arguments ignored. (tree-recover ...) GNU gdb (Debian 7.12-6+b2) 7.12.0.20161007-git Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from ./btrfs...done. /var/local/src/btrfs-progs-josefbacik/rescue: No such file or directory. (gdb) run rescue tree-recover /dev/mapper/dshelf1 Starting program: /var/local/src/btrfs-progs-josefbacik/btrfs rescue tree-recover /dev/mapper/dshelf1 [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". WARNING: cannot read chunk root, continue anyway none of our backups was sufficient, scanning for a root scanning, best has 0 found 1 bad ret is 0 offset 20971520 len 8388608 ret is -2 offset 20971520 len 8388608 checking block 22495232 generation 1572124 fs info generation 2582703 trying bytenr 22495232 got 1 blocks 0 bad checking block 22462464 generation 1479229 fs info generation 2582703 trying bytenr 22462464 got 1 blocks 0 bad checking block 22528000 generation 1572115 fs info generation 2582703 trying bytenr 22528000 got 1 blocks 0 bad checking block 22446080 generation 1571791 fs info generation 2582703 trying bytenr 22446080 got 1 blocks 0 bad checking block 22544384 generation 1556078 fs info generation 2582703 trying bytenr 22544384 got 1 blocks 0 bad checking block 22511616 generation 1555799 fs info generation 2582703 trying bytenr 22511616 got 1 blocks 0 bad checking block 22577152 generation 1586277 fs info generation 2582703 trying bytenr 22577152 got 1 blocks 0 bad checking block 22478848 generation 1561557 fs info generation 2582703 trying bytenr 22478848 got 1 blocks 0 bad checking block 22593536 generation 1590219 fs info generation 2582703
Quoted 9 lines
trying bytenr 22593536 got 1 blocks 0 bad checking block 22609920 generation 1551635 fs info generation 2582703 trying bytenr 22609920 got 1 blocks 0 bad checking block 22560768 generation 1590217 fs info generation 2582703 trying bytenr 22560768 got 1 blocks 0 bad ret is 0 offset 20971520 len 8388608 ret is -2 offset 20971520 len 8388608 setting chunk root to 22593536
Sigh, try again please. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 1 line · Josef Bacik
Sigh, try again please. Thanks,
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue tree-recover /dev/mapper/dshelf1 WARNING: cannot read chunk root, continue anyway none of our backups was sufficient, scanning for a root scanning, best has 0 found 1 bad ret is 0 offset 20971520 len 8388608 ret is -2 offset 20971520 len 8388608 checking block 22495232 generation 1572124 fs info generation 2582703 trying bytenr 22495232 got 1 blocks 0 bad checking block 22462464 generation 1479229 fs info generation 2582703 trying bytenr 22462464 got 1 blocks 0 bad checking block 22528000 generation 1572115 fs info generation 2582703 trying bytenr 22528000 got 1 blocks 0 bad checking block 22446080 generation 1571791 fs info generation 2582703 trying bytenr 22446080 got 1 blocks 0 bad checking block 22544384 generation 1556078 fs info generation 2582703 trying bytenr 22544384 got 1 blocks 0 bad checking block 22511616 generation 1555799 fs info generation 2582703 trying bytenr 22511616 got 1 blocks 0 bad checking block 22577152 generation 1586277 fs info generation 2582703 trying bytenr 22577152 got 1 blocks 0 bad checking block 22478848 generation 1561557 fs info generation 2582703 trying bytenr 22478848 got 1 blocks 0 bad checking block 22593536 generation 1590219 fs info generation 2582703 trying bytenr 22593536 got 1 blocks 0 bad checking block 22609920 generation 1551635 fs info generation 2582703 trying bytenr 22609920 got 1 blocks 0 bad checking block 22560768 generation 1590217 fs info generation 2582703 trying bytenr 22560768 got 1 blocks 0 bad ret is 0 offset 20971520 len 8388608 ret is -2 offset 20971520 len 8388608 setting chunk root to 22593536 FS_INFO IS 0x56263385f400 Invalid mapping for 15645202989056-15645203005440, got 15664345513984-15665419255808 Couldn't map the block 15645202989056 Couldn't map the block 15645202989056 Couldn't read tree root FS_INFO AFTER IS 0x56263385f400 Invalid mapping for 15645202989056-15645203005440, got 15664345513984-15665419255808 Couldn't map the block 15645202989056 Couldn't map the block 15645202989056 Invalid mapping for 15645202907136-15645202923520, got 15664345513984-15665419255808 Couldn't map the block 15645202907136 Couldn't map the block 15645202907136 Invalid mapping for 15645202989056-15645203005440, got 15664345513984-15665419255808 Couldn't map the block 15645202989056 Couldn't map the block 15645202989056 Invalid mapping for 15645202989056-15645203005440, got 15664345513984-15665419255808 Couldn't map the block 15645202989056 Couldn't map the block 15645202989056 Invalid mapping for 15645202907136-15645202923520, got 15664345513984-15665419255808 Couldn't map the block 15645202907136 Couldn't map the block 15645202907136 none of our backups was sufficient, scanning for a root scanning, best has 0 found 1 bad ERROR: Couldn't find a valid root block for 1, we're going to clear it and hope for the best Tree recover failed
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 27 lines · Marc MERLIN
Quoted 1 line · Josef Bacik
Sigh, try again please. Thanks,
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue tree-recover /dev/mapper/dshelf1 WARNING: cannot read chunk root, continue anyway none of our backups was sufficient, scanning for a root scanning, best has 0 found 1 bad ret is 0 offset 20971520 len 8388608 ret is -2 offset 20971520 len 8388608 checking block 22495232 generation 1572124 fs info generation 2582703 trying bytenr 22495232 got 1 blocks 0 bad checking block 22462464 generation 1479229 fs info generation 2582703 trying bytenr 22462464 got 1 blocks 0 bad checking block 22528000 generation 1572115 fs info generation 2582703 trying bytenr 22528000 got 1 blocks 0 bad checking block 22446080 generation 1571791 fs info generation 2582703 trying bytenr 22446080 got 1 blocks 0 bad checking block 22544384 generation 1556078 fs info generation 2582703 trying bytenr 22544384 got 1 blocks 0 bad checking block 22511616 generation 1555799 fs info generation 2582703 trying bytenr 22511616 got 1 blocks 0 bad checking block 22577152 generation 1586277 fs info generation 2582703 trying bytenr 22577152 got 1 blocks 0 bad checking block 22478848 generation 1561557 fs info generation 2582703 trying bytenr 22478848 got 1 blocks 0 bad checking block 22593536 generation 1590219 fs info generation 2582703
Quoted 8 lines
trying bytenr 22593536 got 1 blocks 0 bad checking block 22609920 generation 1551635 fs info generation 2582703 trying bytenr 22609920 got 1 blocks 0 bad checking block 22560768 generation 1590217 fs info generation 2582703 trying bytenr 22560768 got 1 blocks 0 bad ret is 0 offset 20971520 len 8388608 ret is -2 offset 20971520 len 8388608 setting chunk root to 22593536
Ok perfect, now try btrfs rescue recover-chunks <device>, thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 1 line · Josef Bacik
Ok perfect, now try btrfs rescue recover-chunks <device>, thanks,
(gdb) run rescue recover-chunks /dev/mapper/dshelf1
Starting program: /var/local/src/btrfs-progs-josefbacik/btrfs rescue recover-chunks /dev/mapper/dshelf1 [Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".FS_INFO IS 0x55555564fbc0
Invalid mapping for 15645202989056-15645203005440, got 15664345513984-15665419255808 Couldn't map the block 15645202989056
Couldn't map the block 15645202989056
bad tree block 15645202989056, bytenr mismatch, want=15645202989056, have=0
Couldn't read tree rootFS_INFO AFTER IS 0x55555564fbc0
Walking all our trees and pinning down the currently accessible blocks
Program received signal SIGSEGV, Segmentation fault.traverse_tree_blocks (tree=tree@entry=0x55555565a130, eb=0x0, tree_root=tree_root@entry=1) at common/repair.c:95
95 struct btrfs_fs_info *fs_info = eb->fs_info;
(gdb) bt
#0 traverse_tree_blocks (tree=tree@entry=0x55555565a130, eb=0x0, tree_root=tree_root@entry=1) at common/repair.c:95 #1 0x000055555559f6d4 in btrfs_mark_used_tree_blocks (fs_info=fs_info@entry=0x55555564fbc0, tree=tree@entry=0x55555565a130)
at common/repair.c:188
#2 0x00005555555e2e18 in btrfs_find_recover_chunks (path=path@entry=0x7fffffffe1ce "/dev/mapper/dshelf1")
at cmds/rescue-recover-chunks.c:262
#3 0x00005555555d7e81 in cmd_rescue_recover_chunks (cmd=<optimized out>, argc=<optimized out>, argv=<optimized out>)
at cmds/rescue.c:65
#4 0x000055555556c17b in cmd_execute (argv=0x7fffffffdeb8, argc=2, cmd=0x555555645d40 <cmd_struct_rescue_recover_chunks>)
at cmds/commands.h:125
#5 handle_command_group (cmd=<optimized out>, argc=2, argv=0x7fffffffdeb8) at btrfs.c:152
#6 0x000055555556c275 in cmd_execute (argv=0x7fffffffdeb0, argc=3, cmd=0x555555646cc0 <cmd_struct_rescue>) at cmds/commands.h:125
#7 main (argc=3, argv=0x7fffffffdeb0) at btrfs.c:405Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 4 lines · Marc MERLIN
Quoted 1 line · Josef Bacik
Ok perfect, now try btrfs rescue recover-chunks <device>, thanks,
Quoted 12 lines
(gdb) run rescue recover-chunks
/dev/mapper/dshelf1
Starting program:/var/local/src/btrfs-progs-josefbacik/btrfsrescue recover-chunks/dev/mapper/dshelf1[Thread debugging usinglibthread_dbenabled]
Using hostlibthread_dblibrary "/lib/x86_64-linux-gnu/libthread_db.so.1".FS_INFOIS0x55555564fbc0
Invalid mapping for 15645202989056-15645203005440, got 15664345513984-15665419255808 Couldn't map the block 15645202989056
Couldn't map the block 15645202989056
bad tree block 15645202989056, bytenr mismatch, want=15645202989056, have=0
Couldn't read tree rootFS_INFOAFTER IS0x55555564fbc0
Walking all our trees and pinning down the currently accessible blocks
Ok you're ready to go. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 18 lines · Josef Bacik
Quoted 4 lines · Marc MERLIN
Quoted 1 line · Josef Bacik
Ok perfect, now try btrfs rescue recover-chunks <device>, thanks,
Quoted 12 lines
(gdb) run rescue recover-chunks
/dev/mapper/dshelf1
Starting program:/var/local/src/btrfs-progs-josefbacik/btrfsrescue recover-chunks/dev/mapper/dshelf1[Thread debugging usinglibthread_dbenabled]
Using hostlibthread_dblibrary "/lib/x86_64-linux-gnu/libthread_db.so.1".FS_INFOIS0x55555564fbc0
Invalid mapping for 15645202989056-15645203005440, got 15664345513984-15665419255808 Couldn't map the block 15645202989056
Couldn't map the block 15645202989056
bad tree block 15645202989056, bytenr mismatch, want=15645202989056, have=0
Couldn't read tree rootFS_INFOAFTER IS0x55555564fbc0
Walking all our trees and pinning down the currently accessible blocks
Quoted 1 line
Ok you're ready to go. Thanks,
Indeed, good job:
FS_INFO IS 0x55555564fbc0
Invalid mapping for 15645202989056-15645203005440, got 15664345513984-15665419255808 Couldn't map the block 15645202989056
Couldn't map the block 15645202989056
bad tree block 15645202989056, bytenr mismatch, want=15645202989056, have=0 Couldn't read tree rootFS_INFO AFTER IS 0x55555564fbc0
Walking all our trees and pinning down the currently accessible blocks we would add a chunk at 14823605665792-14824679407616 type 0
we would add a chunk at 14824679407616-14825753149440 type 0
we would add a chunk at 14825753149440-14826826891264 type 0
(...)
we would add a chunk at 15772793438208-15773867180032 type 0
we would add a chunk at 15773867180032-15774940921856 type 0
we would add a chunk at 15774940921856-15776014663680 type 0
we would add a chunk at 15776014663680-15777088405504 type 0
we would add a chunk at 15777088405504-15778162147328 type 0
doing close???
Recover chunks succeeded, you can run check now
[Inferior 1 (process 696) exited normally]
Which btrfs check do you want me to run?
Marc
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 45 lines · Marc MERLIN
Quoted 18 lines · Josef Bacik
Quoted 4 lines · Marc MERLIN
Quoted 1 line · Josef Bacik
Ok perfect, now try btrfs rescue recover-chunks <device>, thanks,
Quoted 12 lines
(gdb) run rescue recover-chunks
/dev/mapper/dshelf1
Starting program:/var/local/src/btrfs-progs-josefbacik/btrfsrescue recover-chunks/dev/mapper/dshelf1[Thread debugging usinglibthread_dbenabled]
Using hostlibthread_dblibrary "/lib/x86_64-linux-gnu/libthread_db.so.1".FS_INFOIS0x55555564fbc0
Invalid mapping for 15645202989056-15645203005440, got 15664345513984-15665419255808 Couldn't map the block 15645202989056
Couldn't map the block 15645202989056
bad tree block 15645202989056, bytenr mismatch, want=15645202989056, have=0
Couldn't read tree rootFS_INFOAFTER IS0x55555564fbc0
Walking all our trees and pinning down the currently accessible blocksQuoted 1 line
Ok you're ready to go. Thanks,
Indeed, good job:
FS_INFOIS0x55555564fbc0
Invalid mapping for 15645202989056-15645203005440, got 15664345513984-15665419255808 Couldn't map the block 15645202989056
Couldn't map the block 15645202989056
bad tree block 15645202989056, bytenr mismatch, want=15645202989056, have=0 Couldn't read tree rootFS_INFOAFTER IS0x55555564fbc0
Walking all our trees and pinning down the currently accessible blocks we would add a chunk at 14823605665792-14824679407616 type 0
we would add a chunk at 14824679407616-14825753149440 type 0
we would add a chunk at 14825753149440-14826826891264 type 0
(...)
we would add a chunk at 15772793438208-15773867180032 type 0
we would add a chunk at 15773867180032-15774940921856 type 0
we would add a chunk at 15774940921856-15776014663680 type 0
we would add a chunk at 15776014663680-15777088405504 type 0
we would add a chunk at 15777088405504-15778162147328 type 0
doing close???
Recover chunks succeeded, you can run check now
[Inferior 1 (process 696) exited normally]
Quoted 2 lines
Which btrfs check do you want me to run?
Phew ok, I'm finding the right chunks, that's perfect. I'm now going to write the code to fill in the missing chunks, give me a bit to do that. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 47 lines · Josef Bacik
Quoted 45 lines · Marc MERLIN
Quoted 18 lines · Josef Bacik
Quoted 4 lines · Marc MERLIN
Quoted 1 line · Josef Bacik
Ok perfect, now try btrfs rescue recover-chunks <device>, thanks,
Quoted 12 lines
(gdb) run rescue recover-chunks
/dev/mapper/dshelf1
Starting program:/var/local/src/btrfs-progs-josefbacik/btrfsrescue recover-chunks/dev/mapper/dshelf1[Thread debugging usinglibthread_dbenabled]
Using hostlibthread_dblibrary "/lib/x86_64-linux-gnu/libthread_db.so.1".FS_INFOIS0x55555564fbc0
Invalid mapping for 15645202989056-15645203005440, got 15664345513984-15665419255808 Couldn't map the block 15645202989056
Couldn't map the block 15645202989056
bad tree block 15645202989056, bytenr mismatch, want=15645202989056, have=0
Couldn't read tree rootFS_INFOAFTER IS0x55555564fbc0
Walking all our trees and pinning down the currently accessible blocksQuoted 1 line
Ok you're ready to go. Thanks,
Indeed, good job:
FS_INFOIS0x55555564fbc0
Invalid mapping for 15645202989056-15645203005440, got 15664345513984-15665419255808 Couldn't map the block 15645202989056
Couldn't map the block 15645202989056
bad tree block 15645202989056, bytenr mismatch, want=15645202989056, have=0 Couldn't read tree rootFS_INFOAFTER IS0x55555564fbc0
Walking all our trees and pinning down the currently accessible blocks we would add a chunk at 14823605665792-14824679407616 type 0
we would add a chunk at 14824679407616-14825753149440 type 0
we would add a chunk at 14825753149440-14826826891264 type 0
(...)
we would add a chunk at 15772793438208-15773867180032 type 0
we would add a chunk at 15773867180032-15774940921856 type 0
we would add a chunk at 15774940921856-15776014663680 type 0
we would add a chunk at 15776014663680-15777088405504 type 0
we would add a chunk at 15777088405504-15778162147328 type 0
doing close???
Recover chunks succeeded, you can run check now
[Inferior 1 (process 696) exited normally]
Quoted 7 lines
Quoted 2 lines
Which btrfs check do you want me to run?
Phew ok, I'm finding the right chunks, that's perfect. I'm now going to write the code to fill in the missing chunks, give me a bit to do that. Thanks,
Ok I've committed the code, but I forsee all sorts of wonky problems since we don't have a tree root yet, there may be a variety of segfaults I have to run down before it actually works. So go ahead and do
btrfs rescue recover-chunks <device>
if by some miracle it completes, you'll then want to run
btrfs rescue tree-recover <device>
and then we can go from there. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 8 lines · Josef Bacik
Ok I've committed the code, but I forsee all sorts of wonky problems since we don't have a tree root yet, there may be a variety of segfaults I have to run down before it actually works. So go ahead and do
btrfs rescue recover-chunks <device>
if by some miracle it completes, you'll then want to run
Found missing chunk 15483956887552-15485030629376 type 0 Found missing chunk 15485030629376-15486104371200 type 0 Found missing chunk 15486104371200-15487178113024 type 0 Found missing chunk 15487178113024-15488251854848 type 0 Found missing chunk 15488251854848-15489325596672 type 0 Found missing chunk 15671861706752-15672935448576 type 0 Found missing chunk 15672935448576-15674009190400 type 0 Found missing chunk 15772793438208-15773867180032 type 0 Found missing chunk 15773867180032-15774940921856 type 0 Found missing chunk 15774940921856-15776014663680 type 0 Found missing chunk 15776014663680-15777088405504 type 0 Found missing chunk 15777088405504-15778162147328 type 0
ERROR: Corrupted fs, no valid METADATA block group found Inserting chunk 14823605665792wtf transid 2582704
Program received signal SIGSEGV, Segmentation fault.btrfs_print_leaf (eb=0x0, mode=mode@entry=0) at kernel-shared/print-tree.c:1274
1274 u32 leaf_data_size = __BTRFS_LEAF_DATA_SIZE(eb->len);
(gdb) bt
#0 btrfs_print_leaf (eb=0x0, mode=mode@entry=0) at kernel-shared/print-tree.c:1274 #1 0x000055555557730d in btrfs_insert_item (trans=trans@entry=0x555555662000, root=<optimized out>,
cpu_key=cpu_key@entry=0x55555564fb70, data=0x55555565de80, data_size=80) at kernel-shared/ctree.c:2931
#2 0x00005555555e2f88 in restore_missing_chunks (fs_info=0x55555564fbc0) at ./kernel-shared/ctree.h:322
#3 btrfs_find_recover_chunks (path=path@entry=0x7fffffffe1ce "/dev/mapper/dshelf1") at cmds/rescue-recover-chunks.c:424
#4 0x00005555555d7c0f in cmd_rescue_recover_chunks (cmd=<optimized out>, argc=<optimized out>, argv=<optimized out>)
at cmds/rescue.c:65
#5 0x000055555556c17b in cmd_execute (argv=0x7fffffffdeb8, argc=2, cmd=0x555555645d40 <cmd_struct_rescue_recover_chunks>)
at cmds/commands.h:125
#6 handle_command_group (cmd=<optimized out>, argc=2, argv=0x7fffffffdeb8) at btrfs.c:152
#7 0x000055555556c275 in cmd_execute (argv=0x7fffffffdeb0, argc=3, cmd=0x555555646cc0 <cmd_struct_rescue>) at cmds/commands.h:125
#8 main (argc=3, argv=0x7fffffffdeb0) at btrfs.c:405Quoted 6 lines
btrfs rescue tree-recover <device>
and then we can go from there. Thanks,
Josef
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 11 lines · Marc MERLIN
Quoted 8 lines · Josef Bacik
Ok I've committed the code, but I forsee all sorts of wonky problems since we don't have a tree root yet, there may be a variety of segfaults I have to run down before it actually works. So go ahead and do
btrfs rescue recover-chunks <device>
if by some miracle it completes, you'll then want to run
Quoted 15 lines
Found missing chunk 15483956887552-15485030629376 type 0 Found missing chunk 15485030629376-15486104371200 type 0 Found missing chunk 15486104371200-15487178113024 type 0 Found missing chunk 15487178113024-15488251854848 type 0 Found missing chunk 15488251854848-15489325596672 type 0 Found missing chunk 15671861706752-15672935448576 type 0 Found missing chunk 15672935448576-15674009190400 type 0 Found missing chunk 15772793438208-15773867180032 type 0 Found missing chunk 15773867180032-15774940921856 type 0 Found missing chunk 15774940921856-15776014663680 type 0 Found missing chunk 15776014663680-15777088405504 type 0 Found missing chunk 15777088405504-15778162147328 type 0
ERROR: Corrupted fs, no valid METADATA block group found Inserting chunk 14823605665792wtf transid 2582704
Fixed, lets try that again please. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 27 lines · Josef Bacik
Quoted 11 lines · Marc MERLIN
Quoted 8 lines · Josef Bacik
Ok I've committed the code, but I forsee all sorts of wonky problems since we don't have a tree root yet, there may be a variety of segfaults I have to run down before it actually works. So go ahead and do
btrfs rescue recover-chunks <device>
if by some miracle it completes, you'll then want to run
Quoted 14 lines
Found missing chunk 15483956887552-15485030629376 type 0 Found missing chunk 15485030629376-15486104371200 type 0 Found missing chunk 15486104371200-15487178113024 type 0 Found missing chunk 15487178113024-15488251854848 type 0 Found missing chunk 15488251854848-15489325596672 type 0 Found missing chunk 15671861706752-15672935448576 type 0 Found missing chunk 15672935448576-15674009190400 type 0 Found missing chunk 15772793438208-15773867180032 type 0 Found missing chunk 15773867180032-15774940921856 type 0 Found missing chunk 15774940921856-15776014663680 type 0 Found missing chunk 15776014663680-15777088405504 type 0 Found missing chunk 15777088405504-15778162147328 type 0
ERROR: Corrupted fs, no valid METADATA block group found Inserting chunk 14823605665792wtf transid 2582704
Quoted 1 line
Fixed, lets try that again please. Thanks,
Found missing chunk 15672935448576-15674009190400 type 0 Found missing chunk 15772793438208-15773867180032 type 0 Found missing chunk 15773867180032-15774940921856 type 0 Found missing chunk 15774940921856-15776014663680 type 0 Found missing chunk 15776014663680-15777088405504 type 0 Found missing chunk 15777088405504-15778162147328 type 0
Unable to find block group for 0
Unable to find block group for 0
Unable to find block group for 0
Inserting chunk 14823605665792wtf transid 2582704
Program received signal SIGSEGV, Segmentation fault.btrfs_print_leaf (eb=0x0, mode=mode@entry=0) at kernel-shared/print-tree.c:1274
1274 u32 leaf_data_size = __BTRFS_LEAF_DATA_SIZE(eb->len);
(gdb) bt
#0 btrfs_print_leaf (eb=0x0, mode=mode@entry=0) at kernel-shared/print-tree.c:1274 #1 0x000055555557730d in btrfs_insert_item (trans=trans@entry=0x555555662000, root=<optimized out>,
cpu_key=cpu_key@entry=0x55555564fb70, data=0x55555565de80, data_size=80) at kernel-shared/ctree.c:2931
#2 0x00005555555e2fb3 in restore_missing_chunks (fs_info=0x55555564fbc0) at ./kernel-shared/ctree.h:322
#3 btrfs_find_recover_chunks (path=path@entry=0x7fffffffe1ce "/dev/mapper/dshelf1") at cmds/rescue-recover-chunks.c:424
#4 0x00005555555d7c3a in cmd_rescue_recover_chunks (cmd=<optimized out>, argc=<optimized out>, argv=<optimized out>)
at cmds/rescue.c:65
#5 0x000055555556c17b in cmd_execute (argv=0x7fffffffdeb8, argc=2, cmd=0x555555645d40 <cmd_struct_rescue_recover_chunks>)
at cmds/commands.h:125
#6 handle_command_group (cmd=<optimized out>, argc=2, argv=0x7fffffffdeb8) at btrfs.c:152
#7 0x000055555556c275 in cmd_execute (argv=0x7fffffffdeb0, argc=3, cmd=0x555555646cc0 <cmd_struct_rescue>) at cmds/commands.h:125
#8 main (argc=3, argv=0x7fffffffdeb0) at btrfs.c:405Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 31 lines · Marc MERLIN
Quoted 27 lines · Josef Bacik
Quoted 11 lines · Marc MERLIN
Quoted 8 lines · Josef Bacik
Ok I've committed the code, but I forsee all sorts of wonky problems since we don't have a tree root yet, there may be a variety of segfaults I have to run down before it actually works. So go ahead and do
btrfs rescue recover-chunks <device>
if by some miracle it completes, you'll then want to run
Quoted 14 lines
Found missing chunk 15483956887552-15485030629376 type 0 Found missing chunk 15485030629376-15486104371200 type 0 Found missing chunk 15486104371200-15487178113024 type 0 Found missing chunk 15487178113024-15488251854848 type 0 Found missing chunk 15488251854848-15489325596672 type 0 Found missing chunk 15671861706752-15672935448576 type 0 Found missing chunk 15672935448576-15674009190400 type 0 Found missing chunk 15772793438208-15773867180032 type 0 Found missing chunk 15773867180032-15774940921856 type 0 Found missing chunk 15774940921856-15776014663680 type 0 Found missing chunk 15776014663680-15777088405504 type 0 Found missing chunk 15777088405504-15778162147328 type 0
ERROR: Corrupted fs, no valid METADATA block group found Inserting chunk 14823605665792wtf transid 2582704Quoted 1 line
Fixed, lets try that again please. Thanks,
Quoted 11 lines
Found missing chunk 15672935448576-15674009190400 type 0 Found missing chunk 15772793438208-15773867180032 type 0 Found missing chunk 15773867180032-15774940921856 type 0 Found missing chunk 15774940921856-15776014663680 type 0 Found missing chunk 15776014663680-15777088405504 type 0 Found missing chunk 15777088405504-15778162147328 type 0
Unable to find block group for 0
Unable to find block group for 0
Unable to find block group for 0
Inserting chunk 14823605665792wtf transid 2582704
Ah right, I have to mock up free space since we can't read our normal stuff. Fixed, lets go again. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 2 lines · Josef Bacik
Ah right, I have to mock up free space since we can't read our normal stuff. Fixed, lets go again. Thanks,
Found missing chunk 15483956887552-15485030629376 type 0 Found missing chunk 15485030629376-15486104371200 type 0 Found missing chunk 15486104371200-15487178113024 type 0 Found missing chunk 15487178113024-15488251854848 type 0 Found missing chunk 15488251854848-15489325596672 type 0 Found missing chunk 15671861706752-15672935448576 type 0 Found missing chunk 15672935448576-15674009190400 type 0 Found missing chunk 15772793438208-15773867180032 type 0 Found missing chunk 15773867180032-15774940921856 type 0 Found missing chunk 15774940921856-15776014663680 type 0 Found missing chunk 15776014663680-15777088405504 type 0 Found missing chunk 15777088405504-15778162147328 type 0
Program received signal SIGSEGV, Segmentation fault.find_free_extent (profile=2, exclude_nr=0, exclude_start=0, ins=0x7fffffffd760, hint_byte=<optimized out>,
search_end=18446744073709551615, search_start=0, empty_size=0, num_bytes=16384, orig_root=0x0, trans=0x5555556620f0)
at kernel-shared/extent-tree.c:2249
2249 ret = find_search_start(root, &block_group, &search_start,
(gdb) bt
#0 find_free_extent (profile=2, exclude_nr=0, exclude_start=0, ins=0x7fffffffd760, hint_byte=<optimized out>,
search_end=18446744073709551615, search_start=0, empty_size=0, num_bytes=16384, orig_root=0x0, trans=0x5555556620f0)
at kernel-shared/extent-tree.c:2249
#1 btrfs_reserve_extent (trans=trans@entry=0x5555556620f0, root=root@entry=0x555555650030, num_bytes=num_bytes@entry=16384,
empty_size=empty_size@entry=0, hint_byte=hint_byte@entry=0, search_end=search_end@entry=18446744073709551615,
ins=0x7fffffffd760, is_data=false) at kernel-shared/extent-tree.c:2380
#2 0x0000555555582eba in alloc_tree_block (ins=0x7fffffffd760, search_end=18446744073709551615, hint_byte=0, empty_size=0, level=0,
key=0x7fffffffd880, flags=0, generation=<optimized out>, root_objectid=3, num_bytes=16384, root=0x555555650030,
trans=0x5555556620f0) at kernel-shared/extent-tree.c:2515
#3 btrfs_alloc_free_block (trans=trans@entry=0x5555556620f0, root=root@entry=0x555555650030, blocksize=16384, root_objectid=3,
key=key@entry=0x7fffffffd880, level=level@entry=0, hint=0, empty_size=0) at kernel-shared/extent-tree.c:2570
#4 0x000055555557243f in __btrfs_cow_block (trans=trans@entry=0x5555556620f0, root=root@entry=0x555555650030,
buf=buf@entry=0x555555652b90, parent=parent@entry=0x0, parent_slot=parent_slot@entry=0, cow_ret=cow_ret@entry=0x7fffffffdab8,
search_start=0, empty_size=0) at kernel-shared/ctree.c:451
#5 0x0000555555572d2e in btrfs_cow_block (trans=trans@entry=0x5555556620f0, root=root@entry=0x555555650030, buf=0x555555652b90,
parent=0x0, parent_slot=0, cow_ret=cow_ret@entry=0x7fffffffdab8) at kernel-shared/ctree.c:544
#6 0x0000555555575730 in btrfs_search_slot (trans=0x5555556620f0, root=root@entry=0x555555650030, key=key@entry=0x55555565e030,
p=p@entry=0x555555662180, ins_len=ins_len@entry=105, cow=cow@entry=1) at kernel-shared/ctree.c:1377
#7 0x0000555555576e85 in btrfs_insert_empty_items (trans=trans@entry=0x5555556620f0, root=root@entry=0x555555650030,
path=path@entry=0x555555662180, cpu_key=cpu_key@entry=0x55555565e030, data_size=data_size@entry=0x7fffffffdb9c, nr=nr@entry=1)
at kernel-shared/ctree.c:2824
#8 0x0000555555577295 in btrfs_insert_empty_item (data_size=<optimized out>, key=0x55555565e030, path=0x555555662180,
root=0x555555650030, trans=0x5555556620f0) at ./kernel-shared/ctree.h:2780
#9 btrfs_insert_item (trans=trans@entry=0x5555556620f0, root=0x555555650030, cpu_key=cpu_key@entry=0x55555565e030,
data=0x55555565df50, data_size=80) at kernel-shared/ctree.c:2923
#10 0x00005555555e303f in restore_missing_chunks (fs_info=0x55555564fbc0) at ./kernel-shared/ctree.h:322
#11 btrfs_find_recover_chunks (path=path@entry=0x7fffffffe1ce "/dev/mapper/dshelf1") at cmds/rescue-recover-chunks.c:456
#12 0x00005555555d7c2f in cmd_rescue_recover_chunks (cmd=<optimized out>, argc=<optimized out>, argv=<optimized out>)
at cmds/rescue.c:65
#13 0x000055555556c17b in cmd_execute (argv=0x7fffffffdeb8, argc=2, cmd=0x555555645d40 <cmd_struct_rescue_recover_chunks>)
at cmds/commands.h:125#14 handle_command_group (cmd=<optimized out>, argc=2, argv=0x7fffffffdeb8) at btrfs.c:152
#15 0x000055555556c275 in cmd_execute (argv=0x7fffffffdeb0, argc=3, cmd=0x555555646cc0 <cmd_struct_rescue>) at cmds/commands.h:125 #16 main (argc=3, argv=0x7fffffffdeb0) at btrfs.c:405
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 5 lines · Marc MERLIN
Quoted 2 lines · Josef Bacik
Ah right, I have to mock up free space since we can't read our normal stuff. Fixed, lets go again. Thanks,
Quoted 13 lines
Found missing chunk 15483956887552-15485030629376 type 0 Found missing chunk 15485030629376-15486104371200 type 0 Found missing chunk 15486104371200-15487178113024 type 0 Found missing chunk 15487178113024-15488251854848 type 0 Found missing chunk 15488251854848-15489325596672 type 0 Found missing chunk 15671861706752-15672935448576 type 0 Found missing chunk 15672935448576-15674009190400 type 0 Found missing chunk 15772793438208-15773867180032 type 0 Found missing chunk 15773867180032-15774940921856 type 0 Found missing chunk 15774940921856-15776014663680 type 0 Found missing chunk 15776014663680-15777088405504 type 0 Found missing chunk 15777088405504-15778162147328 type 0
I swear there's so much tech-debt here. Try again please. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 20 lines · Josef Bacik
Quoted 5 lines · Marc MERLIN
Quoted 2 lines · Josef Bacik
Ah right, I have to mock up free space since we can't read our normal stuff. Fixed, lets go again. Thanks,
Quoted 13 lines
Found missing chunk 15483956887552-15485030629376 type 0 Found missing chunk 15485030629376-15486104371200 type 0 Found missing chunk 15486104371200-15487178113024 type 0 Found missing chunk 15487178113024-15488251854848 type 0 Found missing chunk 15488251854848-15489325596672 type 0 Found missing chunk 15671861706752-15672935448576 type 0 Found missing chunk 15672935448576-15674009190400 type 0 Found missing chunk 15772793438208-15773867180032 type 0 Found missing chunk 15773867180032-15774940921856 type 0 Found missing chunk 15774940921856-15776014663680 type 0 Found missing chunk 15776014663680-15777088405504 type 0 Found missing chunk 15777088405504-15778162147328 type 0
Quoted 1 line
I swear there's so much tech-debt here. Try again please. Thanks,
Well, hopefully we'll get to the bottom of it all, thanks again for all your efforts on this.
Found missing chunk 15772793438208-15773867180032 type 0 Found missing chunk 15773867180032-15774940921856 type 0 Found missing chunk 15774940921856-15776014663680 type 0 Found missing chunk 15776014663680-15777088405504 type 0 Found missing chunk 15777088405504-15778162147328 type 0
Program received signal SIGSEGV, Segmentation fault.find_free_extent (profile=2, exclude_nr=0, exclude_start=0, ins=0x7fffffffd760, hint_byte=<optimized out>,
search_end=18446744073709551615, search_start=0, empty_size=0, num_bytes=16384, root=0x555555650030, trans=0x5555556620f0)
at kernel-shared/extent-tree.c:2248
2248 ret = find_search_start(root, &block_group, &search_start,
(gdb) bt
#0 find_free_extent (profile=2, exclude_nr=0, exclude_start=0, ins=0x7fffffffd760, hint_byte=<optimized out>,
search_end=18446744073709551615, search_start=0, empty_size=0, num_bytes=16384, root=0x555555650030, trans=0x5555556620f0)
at kernel-shared/extent-tree.c:2248
#1 btrfs_reserve_extent (trans=trans@entry=0x5555556620f0, root=root@entry=0x555555650030, num_bytes=num_bytes@entry=16384,
empty_size=empty_size@entry=0, hint_byte=hint_byte@entry=0, search_end=search_end@entry=18446744073709551615,
ins=0x7fffffffd760, is_data=false) at kernel-shared/extent-tree.c:2379
#2 0x0000555555582eb0 in alloc_tree_block (ins=0x7fffffffd760, search_end=18446744073709551615, hint_byte=0, empty_size=0, level=0,
key=0x7fffffffd880, flags=0, generation=<optimized out>, root_objectid=3, num_bytes=16384, root=0x555555650030,
trans=0x5555556620f0) at kernel-shared/extent-tree.c:2514
#3 btrfs_alloc_free_block (trans=trans@entry=0x5555556620f0, root=root@entry=0x555555650030, blocksize=16384, root_objectid=3,
key=key@entry=0x7fffffffd880, level=level@entry=0, hint=0, empty_size=0) at kernel-shared/extent-tree.c:2569
#4 0x000055555557243f in __btrfs_cow_block (trans=trans@entry=0x5555556620f0, root=root@entry=0x555555650030,
buf=buf@entry=0x555555652b90, parent=parent@entry=0x0, parent_slot=parent_slot@entry=0, cow_ret=cow_ret@entry=0x7fffffffdab8,
search_start=0, empty_size=0) at kernel-shared/ctree.c:451
#5 0x0000555555572d2e in btrfs_cow_block (trans=trans@entry=0x5555556620f0, root=root@entry=0x555555650030, buf=0x555555652b90,
parent=0x0, parent_slot=0, cow_ret=cow_ret@entry=0x7fffffffdab8) at kernel-shared/ctree.c:544
#6 0x0000555555575730 in btrfs_search_slot (trans=0x5555556620f0, root=root@entry=0x555555650030, key=key@entry=0x55555565e030,
p=p@entry=0x555555662180, ins_len=ins_len@entry=105, cow=cow@entry=1) at kernel-shared/ctree.c:1377
#7 0x0000555555576e85 in btrfs_insert_empty_items (trans=trans@entry=0x5555556620f0, root=root@entry=0x555555650030,
path=path@entry=0x555555662180, cpu_key=cpu_key@entry=0x55555565e030, data_size=data_size@entry=0x7fffffffdb9c, nr=nr@entry=1)
at kernel-shared/ctree.c:2824
#8 0x0000555555577295 in btrfs_insert_empty_item (data_size=<optimized out>, key=0x55555565e030, path=0x555555662180,
root=0x555555650030, trans=0x5555556620f0) at ./kernel-shared/ctree.h:2780
#9 btrfs_insert_item (trans=trans@entry=0x5555556620f0, root=0x555555650030, cpu_key=cpu_key@entry=0x55555565e030,
data=0x55555565df50, data_size=80) at kernel-shared/ctree.c:2923
#10 0x00005555555e3058 in restore_missing_chunks (fs_info=0x55555564fbc0) at ./kernel-shared/ctree.h:322
#11 btrfs_find_recover_chunks (path=path@entry=0x7fffffffe1ce "/dev/mapper/dshelf1") at cmds/rescue-recover-chunks.c:457
#12 0x00005555555d7c25 in cmd_rescue_recover_chunks (cmd=<optimized out>, argc=<optimized out>, argv=<optimized out>)
at cmds/rescue.c:65
#13 0x000055555556c17b in cmd_execute (argv=0x7fffffffdeb8, argc=2, cmd=0x555555645d40 <cmd_struct_rescue_recover_chunks>)
at cmds/commands.h:125#14 handle_command_group (cmd=<optimized out>, argc=2, argv=0x7fffffffdeb8) at btrfs.c:152
#15 0x000055555556c275 in cmd_execute (argv=0x7fffffffdeb0, argc=3, cmd=0x555555646cc0 <cmd_struct_rescue>) at cmds/commands.h:125 #16 main (argc=3, argv=0x7fffffffdeb0) at btrfs.c:405
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 24 lines · Marc MERLIN
Quoted 20 lines · Josef Bacik
Quoted 5 lines · Marc MERLIN
Quoted 2 lines · Josef Bacik
Ah right, I have to mock up free space since we can't read our normal stuff. Fixed, lets go again. Thanks,
Quoted 13 lines
Found missing chunk 15483956887552-15485030629376 type 0 Found missing chunk 15485030629376-15486104371200 type 0 Found missing chunk 15486104371200-15487178113024 type 0 Found missing chunk 15487178113024-15488251854848 type 0 Found missing chunk 15488251854848-15489325596672 type 0 Found missing chunk 15671861706752-15672935448576 type 0 Found missing chunk 15672935448576-15674009190400 type 0 Found missing chunk 15772793438208-15773867180032 type 0 Found missing chunk 15773867180032-15774940921856 type 0 Found missing chunk 15774940921856-15776014663680 type 0 Found missing chunk 15776014663680-15777088405504 type 0 Found missing chunk 15777088405504-15778162147328 type 0
Quoted 1 line
I swear there's so much tech-debt here. Try again please. Thanks,
Quoted 9 lines
Well, hopefully we'll get to the bottom of it all, thanks again for all your efforts on this.
Found missing chunk 15772793438208-15773867180032 type 0 Found missing chunk 15773867180032-15774940921856 type 0 Found missing chunk 15774940921856-15776014663680 type 0 Found missing chunk 15776014663680-15777088405504 type 0 Found missing chunk 15777088405504-15778162147328 type 0
This segfault makes no sense, we check to make sure any of this stuff is NULL. I've added some debugging, hopefully that'll shed some light. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 9 lines · Josef Bacik
Quoted 5 lines
Found missing chunk 15772793438208-15773867180032 type 0 Found missing chunk 15773867180032-15774940921856 type 0 Found missing chunk 15774940921856-15776014663680 type 0 Found missing chunk 15776014663680-15777088405504 type 0 Found missing chunk 15777088405504-15778162147328 type 0
This segfault makes no sense, we check to make sure any of this stuff is NULL. I've added some debugging, hopefully that'll shed some light. Thanks,
Found missing chunk 15486104371200-15487178113024 type 0 Found missing chunk 15487178113024-15488251854848 type 0 Found missing chunk 15488251854848-15489325596672 type 0 Found missing chunk 15671861706752-15672935448576 type 0 Found missing chunk 15672935448576-15674009190400 type 0 Found missing chunk 15772793438208-15773867180032 type 0 Found missing chunk 15773867180032-15774940921856 type 0 Found missing chunk 15774940921856-15776014663680 type 0 Found missing chunk 15776014663680-15777088405504 type 0 Found missing chunk 15777088405504-15778162147328 type 0 adding bg for 20971520 8388608
Program received signal SIGSEGV, Segmentation fault.0x00005555555826d5 in cache_block_group (block_group=0x555555662000, root=0x0) at ./kerncompat.h:133
133 abort();
(gdb) bt
#0 0x00005555555826d5 in cache_block_group (block_group=0x555555662000, root=0x0) at ./kerncompat.h:133 #1 find_search_start (profile=2, num=16384, start_ret=<synthetic pointer>, cache_ret=<synthetic pointer>, root=0x555555650030)
at kernel-shared/extent-tree.c:280
#2 find_free_extent (profile=2, exclude_nr=0, exclude_start=0, ins=0x7fffffffd760, hint_byte=<optimized out>,
search_end=18446744073709551615, search_start=0, empty_size=0, num_bytes=16384, root=0x555555650030, trans=0x5555556620e0)
at kernel-shared/extent-tree.c:2254
#3 btrfs_reserve_extent (trans=trans@entry=0x5555556620e0, root=root@entry=0x555555650030, num_bytes=num_bytes@entry=16384,
empty_size=empty_size@entry=0, hint_byte=hint_byte@entry=0, search_end=search_end@entry=18446744073709551615,
ins=0x7fffffffd760, is_data=false) at kernel-shared/extent-tree.c:2385
#4 0x0000555555582f12 in alloc_tree_block (ins=0x7fffffffd760, search_end=18446744073709551615, hint_byte=0, empty_size=0, level=0,
key=0x7fffffffd880, flags=0, generation=<optimized out>, root_objectid=3, num_bytes=16384, root=0x555555650030,
trans=0x5555556620e0) at kernel-shared/extent-tree.c:2520
#5 btrfs_alloc_free_block (trans=trans@entry=0x5555556620e0, root=root@entry=0x555555650030, blocksize=16384, root_objectid=3,
key=key@entry=0x7fffffffd880, level=level@entry=0, hint=0, empty_size=0) at kernel-shared/extent-tree.c:2575
#6 0x000055555557243f in __btrfs_cow_block (trans=trans@entry=0x5555556620e0, root=root@entry=0x555555650030,
buf=buf@entry=0x555555652b90, parent=parent@entry=0x0, parent_slot=parent_slot@entry=0, cow_ret=cow_ret@entry=0x7fffffffdab8,
search_start=0, empty_size=0) at kernel-shared/ctree.c:451
#7 0x0000555555572d2e in btrfs_cow_block (trans=trans@entry=0x5555556620e0, root=root@entry=0x555555650030, buf=0x555555652b90,
parent=0x0, parent_slot=0, cow_ret=cow_ret@entry=0x7fffffffdab8) at kernel-shared/ctree.c:544
#8 0x0000555555575730 in btrfs_search_slot (trans=0x5555556620e0, root=root@entry=0x555555650030, key=key@entry=0x55555564fb70,
p=p@entry=0x555555662170, ins_len=ins_len@entry=105, cow=cow@entry=1) at kernel-shared/ctree.c:1377
#9 0x0000555555576e85 in btrfs_insert_empty_items (trans=trans@entry=0x5555556620e0, root=root@entry=0x555555650030,
path=path@entry=0x555555662170, cpu_key=cpu_key@entry=0x55555564fb70, data_size=data_size@entry=0x7fffffffdb9c, nr=nr@entry=1)
at kernel-shared/ctree.c:2824
#10 0x0000555555577295 in btrfs_insert_empty_item (data_size=<optimized out>, key=0x55555564fb70, path=0x555555662170,
root=0x555555650030, trans=0x5555556620e0) at ./kernel-shared/ctree.h:2780
#11 btrfs_insert_item (trans=trans@entry=0x5555556620e0, root=0x555555650030, cpu_key=cpu_key@entry=0x55555564fb70,
data=0x55555565de80, data_size=80) at kernel-shared/ctree.c:2923
#12 0x00005555555e30dc in restore_missing_chunks (fs_info=0x55555564fbc0) at ./kernel-shared/ctree.h:322
#13 btrfs_find_recover_chunks (path=path@entry=0x7fffffffe1ce "/dev/mapper/dshelf1") at cmds/rescue-recover-chunks.c:458
#14 0x00005555555d7c87 in cmd_rescue_recover_chunks (cmd=<optimized out>, argc=<optimized out>, argv=<optimized out>)
at cmds/rescue.c:65
#15 0x000055555556c17b in cmd_execute (argv=0x7fffffffdeb8, argc=2, cmd=0x555555645d40 <cmd_struct_rescue_recover_chunks>)
at cmds/commands.h:125#16 handle_command_group (cmd=<optimized out>, argc=2, argv=0x7fffffffdeb8) at btrfs.c:152
#17 0x000055555556c275 in cmd_execute (argv=0x7fffffffdeb0, argc=3, cmd=0x555555646cc0 <cmd_struct_rescue>) at cmds/commands.h:125 #18 main (argc=3, argv=0x7fffffffdeb0) at btrfs.c:405
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 12 lines · Marc MERLIN
Quoted 9 lines · Josef Bacik
Quoted 5 lines
Found missing chunk 15772793438208-15773867180032 type 0 Found missing chunk 15773867180032-15774940921856 type 0 Found missing chunk 15774940921856-15776014663680 type 0 Found missing chunk 15776014663680-15777088405504 type 0 Found missing chunk 15777088405504-15778162147328 type 0
This segfault makes no sense, we check to make sure any of this stuff is NULL. I've added some debugging, hopefully that'll shed some light. Thanks,
Quoted 12 lines
Found missing chunk 15486104371200-15487178113024 type 0 Found missing chunk 15487178113024-15488251854848 type 0 Found missing chunk 15488251854848-15489325596672 type 0 Found missing chunk 15671861706752-15672935448576 type 0 Found missing chunk 15672935448576-15674009190400 type 0 Found missing chunk 15772793438208-15773867180032 type 0 Found missing chunk 15773867180032-15774940921856 type 0 Found missing chunk 15774940921856-15776014663680 type 0 Found missing chunk 15776014663680-15777088405504 type 0 Found missing chunk 15777088405504-15778162147328 type 0 adding bg for 20971520 8388608
Ah ok I'm not confused anymore, try that now. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 1 line · Josef Bacik
Ah ok I'm not confused anymore, try that now. Thanks,
Better:
(...)
Found missing chunk 15672935448576-15674009190400 type 0 Found missing chunk 15772793438208-15773867180032 type 0 Found missing chunk 15773867180032-15774940921856 type 0 Found missing chunk 15774940921856-15776014663680 type 0 Found missing chunk 15776014663680-15777088405504 type 0 Found missing chunk 15777088405504-15778162147328 type 0 adding bg for 20971520 8388608
Unable to find block group for 0
Unable to find block group for 0
Unable to find block group for 0
Inserting chunk 14823605665792wtf transid 2582704 ret -28
ERROR: Couldn't insert item
doing close???
ERROR: attempt to start transaction over already running one extent buffer leak: start 22593536 len 16384 Recover chunks tree failed
[Inferior 1 (process 1930) exited with code 0344]
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 6 lines · Marc MERLIN
Quoted 1 line · Josef Bacik
Ah ok I'm not confused anymore, try that now. Thanks,
Better:
Ah right, we don't actually use the normal free space cache. Fixed that up, thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 10 lines · Josef Bacik
Quoted 6 lines · Marc MERLIN
Quoted 1 line · Josef Bacik
Ah ok I'm not confused anymore, try that now. Thanks,
Better:
Ah right, we don't actually use the normal free space cache. Fixed that up, thanks,
ound missing chunk 14400551387136-14401625128960 type 0
Found missing chunk 14401625128960-14402698870784 type 0
Found missing chunk 14402698870784-14403772612608 type 0
Found missing chunk 14403772612608-14404846354432 type 0
Found missing chunk 14404846354432-14405920096256 type 0
Found missing chunk 14405920096256-14406993838080 type 0
ing chunk 11143322009600Inserting chunk 11144395751424Inserting chunk 11145469493248Inserting chunk 11146543235072Inserting chunk 11147616976896Inserting chunk 11148690718720Inserting chunk 11149764460544Inserting chunk 11150838202368Inserting chunk 11151911944192Inserting chunk 11152985686016Inserting chunk 11154059427840Inserting chunk 11155133169664Inserting chunk 11156206911488Inserting chunk 11157280653312Inserting chunk 11159428136960Inserting chunk 11160501878784Inserting chunk 11161038749696Inserting chunk 11162112491520Inserting chunk 11163186233344Inserting chunk (...)
g chunk 15323969355776Inserting chunk 15325043097600Inserting chunk 15326116839424Inserting chunk 15327190581248Inserting chunk 15328264323072Inserting chunk 15329338064896Inserting chunk 15332559290368Inserting chunk 15333633032192Inserting chunk 15334706774016Inserting chunk 15355107868672Inserting chunk 15356181610496Inserting chunk 15357255352320Inserting chunk 15358329094144Inserting chunk 15359402835968Inserting chunk 15360476577792Inserting chunk 15361550319616Inserting chunk 15362624061440Inserting chunk 15363697803264Inserting chunk 15364771545088Inserting chunk 15365845286912Inserting chunk 15366919028736Inserting chunk 15395910057984Inserting chunk 15396983799808Inserting chunk 15400205025280Inserting chunk 15401278767104Inserting chunk 15402352508928Inserting chunk 15405573734400Inserting chunk 15408794959872Inserting chunk 15409868701696Inserting chunk 15410942443520Inserting chunk 15412016185344Inserting chunk 15413089927168Inserting chunk 15414163668992Inserting chunk 15415237410816Inserting chunk 15416311152640Inserting chunk 15417384894464Inserting chunk 15418458636288Inserting chunk 15419532378112Inserting chunk 15420606119936Inserting chunk 15421679861760Inserting chunk 15422753603584Inserting chunk 15423827345408Inserting chunk 15424901087232Inserting chunk 15425974829056Inserting chunk 15427048570880Inserting chunk 15428122312704Inserting chunk 15429196054528Inserting chunk 15430269796352Inserting chunk 15431343538176Inserting chunk 15432417280000Inserting chunk 15433491021824Inserting chunk 15434564763648Inserting chunk 15435638505472Inserting chunk 15436712247296Inserting chunk 15437785989120Inserting chunk 15438859730944Inserting chunk 15439933472768Inserting chunk 15441007214592Inserting chunk 15442080956416Inserting chunk 15443154698240Inserting chunk 15444228440064Inserting chunk 15445302181888Inserting chunk 15446375923712Inserting chunk 15447449665536Inserting chunk 15448523407360Inserting chunk 15449597149184Inserting chunk 15450670891008Inserting chunk 15451744632832Inserting chunk 15452818374656Inserting chunk 15453892116480Inserting chunk 15454965858304Inserting chunk 15456039600128Inserting chunk 15457113341952Inserting chunk 15458187083776Inserting chunk 15459260825600Inserting chunk 15460334567424Inserting chunk 15461408309248Inserting chunk 15462482051072Inserting chunk 15463555792896Inserting chunk 15464629534720Inserting chunk 15465703276544Inserting chunk 15466777018368Inserting chunk 15467850760192Inserting chunk 15468924502016Inserting chunk 15469998243840Inserting chunk 15471071985664Inserting chunk 15472145727488Inserting chunk 15473219469312Inserting chunk 15474293211136Inserting chunk 15475366952960Inserting chkernel-shared/extent-tree.c:2417: alloc_reserved_tree_block: Assertion sinfo failed, value 0 /var/local/src/btrfs-progs-josefbacik/btrfs(+0x2981a)[0x55555557d81a]
/var/local/src/btrfs-progs-josefbacik/btrfs(btrfs_run_delayed_refs+0x531)[0x555555583998]
/var/local/src/btrfs-progs-josefbacik/btrfs(btrfs_commit_transaction+0x3b)[0x5555555928a8]
/var/local/src/btrfs-progs-josefbacik/btrfs(btrfs_find_recover_chunks+0x594)[0x5555555e311d]
/var/local/src/btrfs-progs-josefbacik/btrfs(+0x83c87)[0x5555555d7c87]
/var/local/src/btrfs-progs-josefbacik/btrfs(handle_command_group+0x49)[0x55555556c17b]
/var/local/src/btrfs-progs-josefbacik/btrfs(main+0x94)[0x55555556c275]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xcd)[0x7ffff78617fd]
/var/local/src/btrfs-progs-josefbacik/btrfs(_start+0x2a)[0x55555556be1a]
Program received signal SIGABRT, Aborted. 0x00007ffff78768a1 in raise () from /lib/x86_64-linux-gnu/libc.so.6 (gdb) bt
#0 0x00007ffff78768a1 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00007ffff7860546 in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2 0x000055555558399d in assert_trace (val=0, line=2417, func=<synthetic pointer>,
filename=0x55555560cef2 "kernel-shared/extent-tree.c", assertion=0x55555560d04b "sinfo") at ./kerncompat.h:338
#3 alloc_reserved_tree_block (extent_op=0x555555652ae0, node=0x555555651ab0, trans=0x5555556620e0)
at kernel-shared/extent-tree.c:2417
#4 run_delayed_tree_ref (insert_reserved=<optimized out>, extent_op=0x555555652ae0, node=0x555555651ab0, fs_info=0x55555564fbc0,
trans=0x5555556620e0) at kernel-shared/extent-tree.c:3738
#5 run_one_delayed_ref (insert_reserved=<optimized out>, extent_op=0x555555652ae0, node=0x555555651ab0, fs_info=0x55555564fbc0,
trans=0x5555556620e0) at kernel-shared/extent-tree.c:3761#6 btrfs_run_delayed_refs (trans=trans@entry=0x5555556620e0, nr=nr@entry=18446744073709551615) at kernel-shared/extent-tree.c:3845 #7 0x00005555555928a8 in btrfs_commit_transaction (trans=trans@entry=0x5555556620e0, root=0x555555650030)
at kernel-shared/transaction.c:181
#8 0x00005555555e311d in restore_missing_chunks (fs_info=0x55555564fbc0) at cmds/rescue-recover-chunks.c:405 #9 btrfs_find_recover_chunks (path=path@entry=0x7fffffffe1ce "/dev/mapper/dshelf1") at cmds/rescue-recover-chunks.c:460 #10 0x00005555555d7c87 in cmd_rescue_recover_chunks (cmd=<optimized out>, argc=<optimized out>, argv=<optimized out>)
at cmds/rescue.c:65
#11 0x000055555556c17b in cmd_execute (argv=0x7fffffffdeb8, argc=2, cmd=0x555555645d40 <cmd_struct_rescue_recover_chunks>)
at cmds/commands.h:125#12 handle_command_group (cmd=<optimized out>, argc=2, argv=0x7fffffffdeb8) at btrfs.c:152
#13 0x000055555556c275 in cmd_execute (argv=0x7fffffffdeb0, argc=3, cmd=0x555555646cc0 <cmd_struct_rescue>) at cmds/commands.h:125 #14 main (argc=3, argv=0x7fffffffdeb0) at btrfs.c:405
(gdb)
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 13 lines · Marc MERLIN
Quoted 10 lines · Josef Bacik
Quoted 6 lines · Marc MERLIN
Quoted 1 line · Josef Bacik
Ah ok I'm not confused anymore, try that now. Thanks,
Better:
Ah right, we don't actually use the normal free space cache. Fixed that up, thanks,
Quoted 8 lines
ound missing chunk 14400551387136-14401625128960 type 0
Found missing chunk 14401625128960-14402698870784 type 0
Found missing chunk 14402698870784-14403772612608 type 0
Found missing chunk 14403772612608-14404846354432 type 0
Found missing chunk 14404846354432-14405920096256 type 0
Found missing chunk 14405920096256-14406993838080 type 0
ing chunk 11143322009600Inserting chunk 11144395751424Inserting chunk 11145469493248Inserting chunk 11146543235072Inserting chunk 11147616976896Inserting chunk 11148690718720Inserting chunk 11149764460544Inserting chunk 11150838202368Inserting chunk 11151911944192Inserting chunk 11152985686016Inserting chunk 11154059427840Inserting chunk 11155133169664Inserting chunk 11156206911488Inserting chunk 11157280653312Inserting chunk 11159428136960Inserting chunk 11160501878784Inserting chunk 11161038749696Inserting chunk 11162112491520Inserting chunk 11163186233344Inserting chunk (...)
g chunk 15323969355776Inserting chunk 15325043097600Inserting chunk 15326116839424Inserting chunk 15327190581248Inserting chunk 15328264323072Inserting chunk 15329338064896Inserting chunk 15332559290368Inserting chunk 15333633032192Inserting chunk 15334706774016Inserting chunk 15355107868672Inserting chunk 15356181610496Inserting chunk 15357255352320Inserting chunk 15358329094144Inserting chunk 15359402835968Inserting chunk 15360476577792Inserting chunk 15361550319616Inserting chunk 15362624061440Inserting chunk 15363697803264Inserting chunk 15364771545088Inserting chunk 15365845286912Inserting chunk 15366919028736Inserting chunk 15395910057984Inserting chunk 15396983799808Inserting chunk 15400205025280Inserting chunk 15401278767104Inserting chunk 15402352508928Inserting chunk 15405573734400Inserting chunk 15408794959872Inserting chunk 15409868701696Inserting chunk 15410942443520Inserting chunk 15412016185344Inserting chunk 15413089927168Inserting chunk 15414163668992Inserting chunk 15415237410816Inserting chunk 15416311152640Inserting chunk 15417384894464Inserting chunk 15418458636288Inserting chunk 15419532378112Inserting chunk 15420606119936Inserting chunk 15421679861760Inserting chunk 15422753603584Inserting chunk 15423827345408Inserting chunk 15424901087232Inserting chunk 15425974829056Inserting chunk 15427048570880Inserting chunk 15428122312704Inserting chunk 15429196054528Inserting chunk 15430269796352Inserting chunk 15431343538176Inserting chunk 15432417280000Inserting chunk 15433491021824Inserting chunk 15434564763648Inserting chunk 15435638505472Inserting chunk 15436712247296Inserting chunk 15437785989120Inserting chunk 15438859730944Inserting chunk 15439933472768Inserting chunk 15441007214592Inserting chunk 15442080956416Inserting chunk 15443154698240Inserting chunk 15444228440064Inserting chunk 15445302181888Inserting chunk 15446375923712Inserting chunk 15447449665536Inserting chunk 15448523407360Inserting chunk 15449597149184Inserting chunk 15450670891008Inserting chunk 15451744632832Inserting chunk 15452818374656Inserting chunk 15453892116480Inserting chunk 15454965858304Inserting chunk 15456039600128Inserting chunk 15457113341952Inserting chunk 15458187083776Inserting chunk 15459260825600Inserting chunk 15460334567424Inserting chunk 15461408309248Inserting chunk 15462482051072Inserting chunk 15463555792896Inserting chunk 15464629534720Inserting chunk 15465703276544Inserting chunk 15466777018368Inserting chunk 15467850760192Inserting chunk 15468924502016Inserting chunk 15469998243840Inserting chunk 15471071985664Inserting chunk 15472145727488Inserting chunk 15473219469312Inserting chunk 15474293211136Inserting chunk 15475366952960Inserting
Woo we're in the transaction commit now boys, try again please. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 3 lines · Josef Bacik
Quoted 1 line
g chunk 15323969355776Inserting chunk 15325043097600Inserting chunk 15326116839424Inserting chunk 15327190581248Inserting chunk 15328264323072Inserting chunk 15329338064896Inserting chunk 15332559290368Inserting chunk 15333633032192Inserting chunk 15334706774016Inserting chunk 15355107868672Inserting chunk 15356181610496Inserting chunk 15357255352320Inserting chunk 15358329094144Inserting chunk 15359402835968Inserting chunk 15360476577792Inserting chunk 15361550319616Inserting chunk 15362624061440Inserting chunk 15363697803264Inserting chunk 15364771545088Inserting chunk 15365845286912Inserting chunk 15366919028736Inserting chunk 15395910057984Inserting chunk 15396983799808Inserting chunk 15400205025280Inserting chunk 15401278767104Inserting chunk 15402352508928Inserting chunk 15405573734400Inserting chunk 15408794959872Inserting chunk 15409868701696Inserting chunk 15410942443520Inserting chunk 15412016185344Inserting chunk 15413089927168Inserting chunk 15414163668992Inserting chunk 15415237410816Inserting chunk 15416311152640Inserting chunk 15417384894464Inserting chunk 15418458636288Inserting chunk 15419532378112Inserting chunk 15420606119936Inserting chunk 15421679861760Inserting chunk 15422753603584Inserting chunk 15423827345408Inserting chunk 15424901087232Inserting chunk 15425974829056Inserting chunk 15427048570880Inserting chunk 15428122312704Inserting chunk 15429196054528Inserting chunk 15430269796352Inserting chunk 15431343538176Inserting chunk 15432417280000Inserting chunk 15433491021824Inserting chunk 15434564763648Inserting chunk 15435638505472Inserting chunk 15436712247296Inserting chunk 15437785989120Inserting chunk 15438859730944Inserting chunk 15439933472768Inserting chunk 15441007214592Inserting chunk 15442080956416Inserting chunk 15443154698240Inserting chunk 15444228440064Inserting chunk 15445302181888Inserting chunk 15446375923712Inserting chunk 15447449665536Inserting chunk 15448523407360Inserting chunk 15449597149184Inserting chunk 15450670891008Inserting chunk 15451744632832Inserting chunk 15452818374656Inserting chunk 15453892116480Inserting chunk 15454965858304Inserting chunk 15456039600128Inserting chunk 15457113341952Inserting chunk 15458187083776Inserting chunk 15459260825600Inserting chunk 15460334567424Inserting chunk 15461408309248Inserting chunk 15462482051072Inserting chunk 15463555792896Inserting chunk 15464629534720Inserting chunk 15465703276544Inserting chunk 15466777018368Inserting chunk 15467850760192Inserting chunk 15468924502016Inserting chunk 15469998243840Inserting chunk 15471071985664Inserting chunk 15472145727488Inserting chunk 15473219469312Inserting chunk 15474293211136Inserting chunk 15475366952960Inserting
Woo we're in the transaction commit now boys, try again please. Thanks,
Sure.
Note that you're missing some newlines in the output:
7296Inserting chunk 15437785989120Inserting chunk 15438859730944Inserting chunk 15439933472768Inserting chunk 15441007214592Inserting chunk 15442080956416Inserting chunk 15443154698240Inserting chunk 15444228440064Inserting chunk 15445302181888Inserting chunk 15446375923712Inserting chunk 15447449665536Inserting chunk 15448523407360Inserting chunk 15449597149184Inserting chunk 15450670891008Inserting chunk 15451744632832Inserting chunk 15452818374656Inserting chunk 15453892116480Inserting chunk 15454965858304Inserting chunk 15456039600128Inserting chunk 15457113341952Inserting chunk 15458187083776Inserting chunk 15459260825600Inserting chunk 15460334567424Inserting chunk 15461408309248Inserting chunk 15462482051072Inserting chunk 15463555792896Inserting chunk 15464629534720Inserting chunk 15465703276544Inserting chunk 15466777018368Inserting chunk 15467850760192Inserting chunk 15468924502016Inserting chunk 15469998243840Inserting chunk 15471071985664Inserting chunk 15472145727488Inserting chunk 15473219469312Inserting chunk 15474293211136Inserting chunk 15475366952960Inserting chkernel-shared/extent-tree.c:2417: alloc_reserved_tree_block: Assertion sinfo failed, value 0 /var/local/src/btrfs-progs-josefbacik/btrfs(+0x2981a)[0x55555557d81a]
/var/local/src/btrfs-progs-josefbacik/btrfs(btrfs_run_delayed_refs+0x531)[0x555555583998]
/var/local/src/btrfs-progs-josefbacik/btrfs(btrfs_commit_transaction+0x3b)[0x5555555928a8]
/var/local/src/btrfs-progs-josefbacik/btrfs(btrfs_find_recover_chunks+0x594)[0x5555555e311d]
/var/local/src/btrfs-progs-josefbacik/btrfs(+0x83c87)[0x5555555d7c87]
/var/local/src/btrfs-progs-josefbacik/btrfs(handle_command_group+0x49)[0x55555556c17b]
/var/local/src/btrfs-progs-josefbacik/btrfs(main+0x94)[0x55555556c275]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xcd)[0x7ffff78617fd]
/var/local/src/btrfs-progs-josefbacik/btrfs(_start+0x2a)[0x55555556be1a]
Program received signal SIGABRT, Aborted.
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 10 lines · Marc MERLIN
Quoted 3 lines · Josef Bacik
Quoted 1 line
g chunk 15323969355776Inserting chunk 15325043097600Inserting chunk 15326116839424Inserting chunk 15327190581248Inserting chunk 15328264323072Inserting chunk 15329338064896Inserting chunk 15332559290368Inserting chunk 15333633032192Inserting chunk 15334706774016Inserting chunk 15355107868672Inserting chunk 15356181610496Inserting chunk 15357255352320Inserting chunk 15358329094144Inserting chunk 15359402835968Inserting chunk 15360476577792Inserting chunk 15361550319616Inserting chunk 15362624061440Inserting chunk 15363697803264Inserting chunk 15364771545088Inserting chunk 15365845286912Inserting chunk 15366919028736Inserting chunk 15395910057984Inserting chunk 15396983799808Inserting chunk 15400205025280Inserting chunk 15401278767104Inserting chunk 15402352508928Inserting chunk 15405573734400Inserting chunk 15408794959872Inserting chunk 15409868701696Inserting chunk 15410942443520Inserting chunk 15412016185344Inserting chunk 15413089927168Inserting chunk 15414163668992Inserting chunk 15415237410816Inserting chunk 15416311152640Inserting chunk 15417384894464Inserting chunk 15418458636288Inserting chunk 15419532378112Inserting chunk 15420606119936Inserting chunk 15421679861760Inserting chunk 15422753603584Inserting chunk 15423827345408Inserting chunk 15424901087232Inserting chunk 15425974829056Inserting chunk 15427048570880Inserting chunk 15428122312704Inserting chunk 15429196054528Inserting chunk 15430269796352Inserting chunk 15431343538176Inserting chunk 15432417280000Inserting chunk 15433491021824Inserting chunk 15434564763648Inserting chunk 15435638505472Inserting chunk 15436712247296Inserting chunk 15437785989120Inserting chunk 15438859730944Inserting chunk 15439933472768Inserting chunk 15441007214592Inserting chunk 15442080956416Inserting chunk 15443154698240Inserting chunk 15444228440064Inserting chunk 15445302181888Inserting chunk 15446375923712Inserting chunk 15447449665536Inserting chunk 15448523407360Inserting chunk 15449597149184Inserting chunk 15450670891008Inserting chunk 15451744632832Inserting chunk 15452818374656Inserting chunk 15453892116480Inserting chunk 15454965858304Inserting chunk 15456039600128Inserting chunk 15457113341952Inserting chunk 15458187083776Inserting chunk 15459260825600Inserting chunk 15460334567424Inserting chunk 15461408309248Inserting chunk 15462482051072Inserting chunk 15463555792896Inserting chunk 15464629534720Inserting chunk 15465703276544Inserting chunk 15466777018368Inserting chunk 15467850760192Inserting chunk 15468924502016Inserting chunk 15469998243840Inserting chunk 15471071985664Inserting chunk 15472145727488Inserting chunk 15473219469312Inserting chunk 15474293211136Inserting chunk 15475366952960Inserting
Woo we're in the transaction commit now boys, try again please. Thanks,
Sure.
Note that you're missing some newlines in the output:
Ooops, helps if I use the new flag I added. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 2 lines · Josef Bacik
Ooops, helps if I use the new flag I added. Thanks,
Good news?
Inserting chunk 15486104371200
Inserting chunk 15487178113024
Inserting chunk 15488251854848
Inserting chunk 15671861706752
Inserting chunk 15672935448576
Inserting chunk 15772793438208
Inserting chunk 15773867180032
Inserting chunk 15774940921856
Inserting chunk 15776014663680
Inserting chunk 15777088405504
WARNING: reserved space leaked, transid=2582704 flag=0x2 bytes_reserved=180224
doing close???
WARNING: reserved space leaked, flag=0x2 bytes_reserved=180224 Recover chunks succeeded, you can run check now [Inferior 1 (process 21907) exited normally]
What check do I run now?
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 24 lines · Marc MERLIN
Quoted 2 lines · Josef Bacik
Ooops, helps if I use the new flag I added. Thanks,
Good news?
Inserting chunk 15486104371200
Inserting chunk 15487178113024
Inserting chunk 15488251854848
Inserting chunk 15671861706752
Inserting chunk 15672935448576
Inserting chunk 15772793438208
Inserting chunk 15773867180032
Inserting chunk 15774940921856
Inserting chunk 15776014663680
Inserting chunk 15777088405504
WARNING: reserved space leaked, transid=2582704 flag=0x2 bytes_reserved=180224
doing close???
WARNING: reserved space leaked, flag=0x2 bytes_reserved=180224 Recover chunks succeeded, you can run check now [Inferior 1 (process 21907) exited normally]
Quoted 1 line
What check do I run now?
Now we run
btrfs rescue tree-recover <device>
to restore the roots we lost. After that we run
btrfs rescue init-extent-tree <device>
then
btrfs rescue init-csum-tree <device>
and then finally we run
btrfs check <device>
Now I have to write some code to fix up the device extents for the chunks I just added back, but I need to make sure that's the only thing check complains about. Once we have that worked out I'll write the code to add the device extents for the restored chunks and then theoretically we'll be done. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 3 lines · Josef Bacik
Now we run
btrfs rescue tree-recover <device>
It got pretty far, and then
Invalid mapping for 364837339136-364837355520, got 11106814787584-11107888529408 Couldn't map the block 364837339136
Couldn't map the block 364837339136
deleting slot 0 in block 11160501878784
Invalid mapping for 364837306368-364837322752, got 11106814787584-11107888529408 Couldn't map the block 364837306368
Couldn't map the block 364837306368
deleting slot 0 in block 11160501878784
Invalid mapping for 364746457088-364746473472, got 11106814787584-11107888529408 Couldn't map the block 364746457088
Couldn't map the block 364746457088
deleting slot 0 in block 11160501878784
bad tree block 11160501878784, invalid nr_items: 0 kernel-shared/disk-io.c:553: write_tree_block: BUG_ON 1 triggered, value 1 ./btrfs(+0x25ae7)[0x55c9d8c1bae7] ./btrfs(write_tree_block+0xb8)[0x55c9d8c1dec9] ./btrfs(+0x8aa38)[0x55c9d8c80a38]
./btrfs(+0x8acbe)[0x55c9d8c80cbe]
./btrfs(+0x8adcb)[0x55c9d8c80dcb] ./btrfs(btrfs_recover_trees+0x628)[0x55c9d8c81a3b] ./btrfs(+0x83f1f)[0x55c9d8c79f1f] ./btrfs(handle_command_group+0x49)[0x55c9d8c0e17b] ./btrfs(main+0x94)[0x55c9d8c0e275] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xcd)[0x7fe2988107fd] ./btrfs(_start+0x2a)[0x55c9d8c0de1a]
Aborted
Quoted 20 lines
to restore the roots we lost. After that we run
btrfs rescue init-extent-tree <device>
then
btrfs rescue init-csum-tree <device>
and then finally we run
btrfs check <device>
Now I have to write some code to fix up the device extents for the chunks I just added back, but I need to make sure that's the only thing check complains about. Once we have that worked out I'll write the code to add the device extents for the restored chunks and then theoretically we'll be done. Thanks,
Josef
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 6 lines · Marc MERLIN
Quoted 3 lines · Josef Bacik
Now we run
btrfs rescue tree-recover <device>
Quoted 13 lines
It got pretty far, and then
Invalid mapping for 364837339136-364837355520, got 11106814787584-11107888529408 Couldn't map the block 364837339136
Couldn't map the block 364837339136
deleting slot 0 in block 11160501878784
Invalid mapping for 364837306368-364837322752, got 11106814787584-11107888529408 Couldn't map the block 364837306368
Couldn't map the block 364837306368
deleting slot 0 in block 11160501878784
Invalid mapping for 364746457088-364746473472, got 11106814787584-11107888529408 Couldn't map the block 364746457088
Couldn't map the block 364746457088
deleting slot 0 in block 11160501878784
Was it printing a lot of these messages? I was sort of hoping we found all the chunks so it didn't feel the need to delete a bunch of stuff. Can you re-run
btrfs rescue recover-chunks <device>
and make sure it doesn't find anything new? Maybe there were some system chunks that it found that has the other chunks in it. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 21 lines · Josef Bacik
Quoted 6 lines · Marc MERLIN
Quoted 3 lines · Josef Bacik
Now we run
btrfs rescue tree-recover <device>
Quoted 13 lines
It got pretty far, and then
Invalid mapping for 364837339136-364837355520, got 11106814787584-11107888529408 Couldn't map the block 364837339136
Couldn't map the block 364837339136
deleting slot 0 in block 11160501878784
Invalid mapping for 364837306368-364837322752, got 11106814787584-11107888529408 Couldn't map the block 364837306368
Couldn't map the block 364837306368
deleting slot 0 in block 11160501878784
Invalid mapping for 364746457088-364746473472, got 11106814787584-11107888529408 Couldn't map the block 364746457088
Couldn't map the block 364746457088
deleting slot 0 in block 11160501878784
Quoted 1 line
Was it printing a lot of these messages? I was sort of hoping we
Yes
Quoted 7 lines
found all the chunks so it didn't feel the need to delete a bunch of stuff. Can you re-run
btrfs rescue recover-chunks <device>
and make sure it doesn't find anything new? Maybe there were some system chunks that it found that has the other chunks in it. Thanks,
output is very long. I was able to paste a good part in
https://justpaste.it/5cy5s
last lines:
trying bytenr 15645980491776 got 3 blocks 8 bad
Repairing root 163318 bad_blocks 8 update 1
Invalid mapping for 11822436614144-11822436630528, got 14271702368256-14272776110080 Couldn't map the block 11822436614144
Couldn't map the block 11822436614144
deleting slot 0 in block 15645980491776
Invalid mapping for 365011795968-365011812352, got 11106814787584-11107888529408 Couldn't map the block 365011795968
Couldn't map the block 365011795968
deleting slot 0 in block 15645980491776
Invalid mapping for 365043269632-365043286016, got 11106814787584-11107888529408 Couldn't map the block 365043269632
Couldn't map the block 365043269632
deleting slot 0 in block 15645980491776
Invalid mapping for 365031768064-365031784448, got 11106814787584-11107888529408 Couldn't map the block 365031768064
Couldn't map the block 365031768064
deleting slot 0 in block 15645980491776
Invalid mapping for 365028409344-365028425728, got 11106814787584-11107888529408 Couldn't map the block 365028409344
Couldn't map the block 365028409344
deleting slot 0 in block 15645980491776
Invalid mapping for 365033668608-365033684992, got 11106814787584-11107888529408 Couldn't map the block 365033668608
Couldn't map the block 365033668608
deleting slot 0 in block 15645980491776
deleting slot 0 in block 15645980491776
deleting slot 0 in block 15645980491776
bad tree block 15645980491776, invalid nr_items: 0 kernel-shared/disk-io.c:553: write_tree_block: BUG_ON 1 triggered, value 1 ./btrfs(+0x25ae7)[0x558782bb4ae7] ./btrfs(write_tree_block+0xb8)[0x558782bb6ec9] ./btrfs(+0x8aa38)[0x558782c19a38]
./btrfs(+0x8adcb)[0x558782c19dcb] ./btrfs(btrfs_recover_trees+0x628)[0x558782c1aa3b] ./btrfs(+0x83f1f)[0x558782c12f1f] ./btrfs(handle_command_group+0x49)[0x558782ba717b] ./btrfs(main+0x94)[0x558782ba7275] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xcd)[0x7f06496ad7fd] ./btrfs(_start+0x2a)[0x558782ba6e1a]
Aborted
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 30 lines · Marc MERLIN
Quoted 21 lines · Josef Bacik
Quoted 6 lines · Marc MERLIN
Quoted 3 lines · Josef Bacik
Now we run
btrfs rescue tree-recover <device>
Quoted 13 lines
It got pretty far, and then
Invalid mapping for 364837339136-364837355520, got 11106814787584-11107888529408 Couldn't map the block 364837339136
Couldn't map the block 364837339136
deleting slot 0 in block 11160501878784
Invalid mapping for 364837306368-364837322752, got 11106814787584-11107888529408 Couldn't map the block 364837306368
Couldn't map the block 364837306368
deleting slot 0 in block 11160501878784
Invalid mapping for 364746457088-364746473472, got 11106814787584-11107888529408 Couldn't map the block 364746457088
Couldn't map the block 364746457088
deleting slot 0 in block 11160501878784Quoted 1 line
Was it printing a lot of these messages? I was sort of hoping we
Yes
Quoted 3 lines
found all the chunks so it didn't feel the need to delete a bunch of stuff. Can you re-run
Quoted 8 lines
Quoted 4 lines
btrfs rescue recover-chunks <device>
and make sure it doesn't find anything new? Maybe there were some system chunks that it found that has the other chunks in it. Thanks,
output is very long. I was able to paste a good part in
https://justpaste.it/5cy5s
Ok it seems like we're still missing some chunks, hopefully re-running btrfs rescue recover-chunks <device> will find the remaining, there must have been system chunks that got discovered. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 3 lines · Josef Bacik
Ok it seems like we're still missing some chunks, hopefully re-running btrfs rescue recover-chunks <device> will find the remaining, there must have been system chunks that got discovered. Thanks,
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue recover-chunks /dev/mapper/dshelf1 FS_INFO IS 0x55f3efdd3bc0 Couldn't find the last root for 8 FS_INFO AFTER IS 0x55f3efdd3bc0 Walking all our trees and pinning down the currently accessible blocks Invalid mapping for 11822437826560-11822437842944, got 14271702368256-14272776110080 Couldn't map the block 11822437826560 Couldn't map the block 11822437826560 Error reading root block ERROR: Couldn't pin down excluded extents, if there were errors run btrfs rescue tree-recover doing close??? Recover chunks tree failed
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 6 lines · Marc MERLIN
Quoted 3 lines · Josef Bacik
Ok it seems like we're still missing some chunks, hopefully re-running btrfs rescue recover-chunks <device> will find the remaining, there must have been system chunks that got discovered. Thanks,
Quoted 12 lines
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue recover-chunks /dev/mapper/dshelf1 FS_INFO IS 0x55f3efdd3bc0 Couldn't find the last root for 8 FS_INFO AFTER IS 0x55f3efdd3bc0 Walking all our trees and pinning down the currently accessible blocks Invalid mapping for 11822437826560-11822437842944, got 14271702368256-14272776110080 Couldn't map the block 11822437826560 Couldn't map the block 11822437826560 Error reading root block ERROR: Couldn't pin down excluded extents, if there were errors run btrfs rescue tree-recover doing close??? Recover chunks tree failed
Pushed, try again please. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 20 lines · Josef Bacik
Quoted 6 lines · Marc MERLIN
Quoted 3 lines · Josef Bacik
Ok it seems like we're still missing some chunks, hopefully re-running btrfs rescue recover-chunks <device> will find the remaining, there must have been system chunks that got discovered. Thanks,
Quoted 12 lines
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue recover-chunks /dev/mapper/dshelf1 FS_INFO IS 0x55f3efdd3bc0 Couldn't find the last root for 8 FS_INFO AFTER IS 0x55f3efdd3bc0 Walking all our trees and pinning down the currently accessible blocks Invalid mapping for 11822437826560-11822437842944, got 14271702368256-14272776110080 Couldn't map the block 11822437826560 Couldn't map the block 11822437826560 Error reading root block ERROR: Couldn't pin down excluded extents, if there were errors run btrfs rescue tree-recover doing close??? Recover chunks tree failed
Quoted 1 line
Pushed, try again please. Thanks,
That worked:
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue recover-chunks /dev/mapper/dshelf1 FS_INFO IS 0x5594c8305bc0 Couldn't find the last root for 8 FS_INFO AFTER IS 0x5594c8305bc0 Walking all our trees and pinning down the currently accessible blocks No missing chunks, we're all done doing close??? Recover chunks succeeded, you can run check now
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue tree-recover /dev/mapper/dshelf1 FS_INFO IS 0x564be0ed2bc0 Couldn't find the last root for 8 FS_INFO AFTER IS 0x564be0ed2bc0 Checking root 2 bytenr 15645200318464 Checking root 4 bytenr 15645019078656 Checking root 5 bytenr 15645740302336 Checking root 7 bytenr 15645188767744 Checking root 9 bytenr 15645740367872 Checking root 161197 bytenr 15645190864896 Checking root 161199 bytenr 15645198614528 Checking root 161200 bytenr 15646048272384 Checking root 161889 bytenr 15645940285440 Checking root 162628 bytenr 15645764812800 Checking root 162632 bytenr 15645196845056 Checking root 163298 bytenr 15645124263936 Checking root 163302 bytenr 15645198188544 Checking root 163303 bytenr 15645199499264 Checking root 163316 bytenr 15645199728640 Checking root 163318 bytenr 15645980491776 scanning, best has 0 found 0 bad checking block 15645980491776 generation 1597265 fs info generation 2582703 trying bytenr 15645980491776 got 2 blocks 1 bad Repairing root 163318 bad_blocks 1 update 1 deleting slot 0 in block 15645980491776 bad tree block 15645980491776, invalid nr_items: 0 kernel-shared/disk-io.c:553: write_tree_block: BUG_ON `1` triggered, value 1 ./btrfs(+0x25ae7)[0x564be025eae7] ./btrfs(write_tree_block+0xb8)[0x564be0260ec9] ./btrfs(+0x8aa3d)[0x564be02c3a3d] ./btrfs(+0x8add0)[0x564be02c3dd0] ./btrfs(btrfs_recover_trees+0x628)[0x564be02c4a40] ./btrfs(+0x83f24)[0x564be02bcf24] ./btrfs(handle_command_group+0x49)[0x564be025117b] ./btrfs(main+0x94)[0x564be0251275] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xcd)[0x7f55d1ef47fd] ./btrfs(_start+0x2a)[0x564be0250e1a] Aborted
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 25 lines · Marc MERLIN
Quoted 20 lines · Josef Bacik
Quoted 6 lines · Marc MERLIN
Quoted 3 lines · Josef Bacik
Ok it seems like we're still missing some chunks, hopefully re-running btrfs rescue recover-chunks <device> will find the remaining, there must have been system chunks that got discovered. Thanks,
Quoted 12 lines
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue recover-chunks /dev/mapper/dshelf1 FS_INFO IS 0x55f3efdd3bc0 Couldn't find the last root for 8 FS_INFO AFTER IS 0x55f3efdd3bc0 Walking all our trees and pinning down the currently accessible blocks Invalid mapping for 11822437826560-11822437842944, got 14271702368256-14272776110080 Couldn't map the block 11822437826560 Couldn't map the block 11822437826560 Error reading root block ERROR: Couldn't pin down excluded extents, if there were errors run btrfs rescue tree-recover doing close??? Recover chunks tree failedQuoted 1 line
Pushed, try again please. Thanks,
That worked:
Quoted 11 lines
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue recover-chunks /dev/mapper/dshelf1 FS_INFO IS 0x5594c8305bc0 Couldn't find the last root for 8 FS_INFO AFTER IS 0x5594c8305bc0 Walking all our trees and pinning down the currently accessible blocks No missing chunks, we're all done doing close??? Recover chunks succeeded, you can run check now
Sorry daughters graduation thing took forever, I've updated the code, it should work now. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 2 lines · Josef Bacik
Sorry daughters graduation thing took forever, I've updated the code, it should work now. Thanks,
Not sorry, congrats ;)
It works better but seems to be looping on the same thing now (it has all night):
Repairing root 163318 bad_blocks 1 update 0
deleting slot 0 in block 15645980491776
Repairing root 163318 bad_blocks 1 update 0
deleting slot 0 in block 15645980491776
Repairing root 163318 bad_blocks 1 update 0
deleting slot 0 in block 15645980491776
Repairing root 163318 bad_blocks 1 update 0
deleting slot 0 in block 15645980491776
Repairing root 163318 bad_blocks 1 update 0
deleting slot 0 in block 15645980491776
Repairing root 163318 bad_blocks 1 update 0
deleting slot 0 in block 15645980491776
Repairing root 163318 bad_blocks 1 update 0
deleting slot 0 in block 15645980491776
Repairing root 163318 bad_blocks 1 update 0
deleting slot 0 in block 15645980491776
Repairing root 163318 bad_blocks 1 update 0
Marc
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 9 lines · Marc MERLIN
Quoted 2 lines · Josef Bacik
Sorry daughters graduation thing took forever, I've updated the code, it should work now. Thanks,
Not sorry, congrats ;)
It works better but seems to be looping on the same thing now (it has all night):
Ok I think I know what it is, try again please. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 6 lines · Josef Bacik
Quoted 5 lines · Marc MERLIN
Quoted 2 lines · Josef Bacik
Sorry daughters graduation thing took forever, I've updated the code, it should work now. Thanks,
Quoted 6 lines
Quoted 4 lines
Not sorry, congrats ;)
It works better but seems to be looping on the same thing now (it has all night):
Ok I think I know what it is, try again please. Thanks,
Woohoo, that worked:
Invalid mapping for 365033668608-365033684992, got 11106814787584-11107888529408
Couldn't map the block 365033668608
Couldn't map the block 365033668608
deleting slot 0 in block 15646000562176
deleting slot 0 in block 15646000562176
deleting slot 0 in block 15646000562176
Root 164824 was completely cleared, deleting it
Checking root 164825 bytenr 15646001872896
scanning, best has 0 found 0 bad
ERROR: Couldn't find a valid root block for 164825, we're going to clear it and hope for the best
We thought root 164825 could be found at 18446744073709551615 level 255 but didn't find anything, deleting it. Checking root 164910 bytenr 10194254020608
Invalid mapping for 10194254020608-10194254036992, got 11106814787584-11107888529408
Couldn't map the block 10194254020608
Couldn't map the block 10194254020608
scanning, best has 0 found 0 bad
ERROR: Couldn't find a valid root block for 164910, we're going to clear it and hope for the best
We thought root 164910 could be found at 18446744073709551615 level 255 but didn't find anything, deleting it. Checking root 164911 bytenr 10194440339456
Invalid mapping for 10194440339456-10194440355840, got 11106814787584-11107888529408
Couldn't map the block 10194440339456
Couldn't map the block 10194440339456
scanning, best has 0 found 0 bad
ERROR: Couldn't find a valid root block for 164911, we're going to clear it and hope for the best
We thought root 164911 could be found at 18446744073709551615 level 255 but didn't find anything, deleting it. Checking root 164912 bytenr 10194209554432
Invalid mapping for 10194209554432-10194209570816, got 11106814787584-11107888529408
Couldn't map the block 10194209554432
Couldn't map the block 10194209554432
scanning, best has 0 found 0 bad
ERROR: Couldn't find a valid root block for 164912, we're going to clear it and hope for the best
We thought root 164912 could be found at 18446744073709551615 level 255 but didn't find anything, deleting it. Checking root 164913 bytenr 10194353700864
Invalid mapping for 10194353700864-10194353717248, got 11106814787584-11107888529408
Couldn't map the block 10194353700864
Couldn't map the block 10194353700864
scanning, best has 0 found 0 bad
ERROR: Couldn't find a valid root block for 164913, we're going to clear it and hope for the best
We thought root 164913 could be found at 18446744073709551615 level 255 but didn't find anything, deleting it. Checking root 164914 bytenr 10194543017984
Invalid mapping for 10194543017984-10194543034368, got 11106814787584-11107888529408
Couldn't map the block 10194543017984
Couldn't map the block 10194543017984
scanning, best has 0 found 0 bad
ERROR: Couldn't find a valid root block for 164914, we're going to clear it and hope for the best
We thought root 164914 could be found at 18446744073709551615 level 255 but didn't find anything, deleting it. Checking root 164915 bytenr 10678962552832
Invalid mapping for 10678962552832-10678962569216, got 11106814787584-11107888529408
Couldn't map the block 10678962552832
Couldn't map the block 10678962552832
scanning, best has 0 found 0 bad
ERROR: Couldn't find a valid root block for 164915, we're going to clear it and hope for the best
We thought root 164915 could be found at 18446744073709551615 level 255 but didn't find anything, deleting it. Checking root 164916 bytenr 10679219617792
Invalid mapping for 10679219617792-10679219634176, got 11106814787584-11107888529408
Couldn't map the block 10679219617792
Couldn't map the block 10679219617792
scanning, best has 0 found 0 bad
ERROR: Couldn't find a valid root block for 164916, we're going to clear it and hope for the best
We thought root 164916 could be found at 18446744073709551615 level 255 but didn't find anything, deleting it. Checking root 164917 bytenr 10678998777856
Invalid mapping for 10678998777856-10678998794240, got 11106814787584-11107888529408
Couldn't map the block 10678998777856
Couldn't map the block 10678998777856
scanning, best has 0 found 0 bad
ERROR: Couldn't find a valid root block for 164917, we're going to clear it and hope for the best
We thought root 164917 could be found at 18446744073709551615 level 255 but didn't find anything, deleting it. Checking root 18446744073709551607 bytenr 8733327196160
Invalid mapping for 8733327196160-8733327212544, got 11106814787584-11107888529408
Couldn't map the block 8733327196160
Couldn't map the block 8733327196160
scanning, best has 0 found 0 bad
ERROR: Couldn't find a valid root block for 18446744073709551607, we're going to clear it and hope for the best We thought root 18446744073709551607 could be found at 18446744073709551615 level 255 but didn't find anything, deleting it. Tree recovery finished, you can run check now
gargamel:/var/local/src/btrfs-progs-josefbacik#
Now running the next step:
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue init-extent-tree /dev/mapper/dshelf1 FS_INFO IS 0x55d3c8ad6bc0 Couldn't find the last root for 8 FS_INFO AFTER IS 0x55d3c8ad6bc0 Walking all our trees and pinning down the currently accessible blocks Clearing the extent root and re-init'ing the block groups deleting space cache for 11106814787584 deleting space cache for 11108962271232 deleting space cache for 11110036013056 deleting space cache for 11111109754880 deleting space cache for 11112183496704 deleting space cache for 11113257238528 deleting space cache for 11114330980352 deleting space cache for 11115404722176 deleting space cache for 11116478464000 deleting space cache for 11118625947648 deleting space cache for 11119699689472 deleting space cache for 11120773431296 deleting space cache for 11121847173120 deleting space cache for 11122920914944 deleting space cache for 11123994656768 deleting space cache for 11125068398592 deleting space cache for 11126142140416 deleting space cache for 11127215882240 deleting space cache for 11128289624064 deleting space cache for 11129363365888 deleting space cache for 11130437107712 deleting space cache for 11131510849536 deleting space cache for 11132584591360 deleting space cache for 11133658333184 (...)
searching 1 for bad extents
processed 81920 of 18446744073709518848 possible bytes, 0%
Found an extent we don't have a block group for in the file
Couldn't find any paths for this inode
Deleting [4483, 108, 0] root 15645018226688 path top 15645018226688 top slot 5 leaf 15645018243072 slot 11
searching 1 for bad extents
processed 81920 of 18446744073709518848 possible bytes, 0%
Found an extent we don't have a block group for in the file
Couldn't find any paths for this inode
Deleting [4484, 108, 0] root 15645018161152 path top 15645018161152 top slot 5 leaf 15645018177536 slot 12
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 11 lines · Marc MERLIN
searching 1 for bad extents
processed 81920 of 18446744073709518848 possible bytes, 0%
Found an extent we don't have a block group for in the file
Couldn't find any paths for this inode
Deleting [4483, 108, 0] root 15645018226688 path top 15645018226688 top slot 5 leaf 15645018243072 slot 11searching 1 for bad extents
processed 81920 of 18446744073709518848 possible bytes, 0%
Found an extent we don't have a block group for in the file
Couldn't find any paths for this inode
Deleting [4484, 108, 0] root 15645018161152 path top 15645018161152 top slot 5 leaf 15645018177536 slot 12
finished with
searching 164623 for bad extents
processed 278528 of 63193088 possible bytes, 0%
Found an extent we don't have a block group for in the file
ref to path failed
Couldn't find any paths for this inode
Deleting [72784, 108, 0] root 15645019226112 path top 15645019226112 top slot 17 leaf 11160502550528 slot 12
searching 164623 for bad extents
processed 311296 of 63193088 possible bytes, 0%
searching 164624 for bad extents
Found an extent we don't have a block group for in the file
Couldn't find any paths for this inode
corrupt node: root=164624 block=15645019471872 physical=15053899431936 slot=25, bad key order, current (7819 1 0) next (7819 1 0) Deleting [3740, 108, 267370496] root 15645019176960 path top 15645019176960 top slot 0 leaf 15645019553792 slot 0
searching 164624 for bad extents
Found an extent we don't have a block group for in the file
corrupt node: root=164624 block=15645019471872 physical=15054973173760 slot=25, bad key order, current (7819 1 0) next (7819 1 0) Couldn't find any paths for this inode
corrupt node: root=164624 block=15645019439104 physical=15054973140992 slot=25, bad key order, current (7819 1 0) next (7819 1 0)
ERROR: error searching for key?? -1
wtf
it failed?? -1
ERROR: failed to clear bad extents
doing close???
ERROR: attempt to start transaction over already running one
WARNING: reserved space leaked, flag=0x4 bytes_reserved=32768 extent buffer leak: start 15645019406336 len 16384
extent buffer leak: start 15645019406336 len 16384
WARNING: dirty eb leak (aborted trans): start 15645019406336 len 16384 extent buffer leak: start 15645019439104 len 16384
extent buffer leak: start 15645019439104 len 16384
WARNING: dirty eb leak (aborted trans): start 15645019439104 len 16384 Init extent tree failed
needs further fixing?
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 23 lines · Marc MERLIN
Quoted 11 lines · Marc MERLIN
searching 1 for bad extents
processed 81920 of 18446744073709518848 possible bytes, 0%
Found an extent we don't have a block group for in the file
Couldn't find any paths for this inode
Deleting [4483, 108, 0] root 15645018226688 path top 15645018226688 top slot 5 leaf 15645018243072 slot 11searching 1 for bad extents
processed 81920 of 18446744073709518848 possible bytes, 0%
Found an extent we don't have a block group for in the file
Couldn't find any paths for this inode
Deleting [4484, 108, 0] root 15645018161152 path top 15645018161152 top slot 5 leaf 15645018177536 slot 12finished with
searching 164623 for bad extents
processed 278528 of 63193088 possible bytes, 0%
Found an extent we don't have a block group for in the file
ref to path failed
Couldn't find any paths for this inode
Deleting [72784, 108, 0] root 15645019226112 path top 15645019226112 top slot 17 leaf 11160502550528 slot 12
Quoted 7 lines
searching 164623 for bad extents
processed 311296 of 63193088 possible bytes, 0%
searching 164624 for bad extentsFound an extent we don't have a block group for in the file
Couldn't find any paths for this inode
corrupt node: root=164624 block=15645019471872 physical=15053899431936 slot=25, bad key order, current (7819 1 0) next (7819 1 0)
Hmm tree-recover is supposed to catch this, can you re-run tree-recover and see if it finds this block and gets rid of it? Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 3 lines · Josef Bacik
Hmm tree-recover is supposed to catch this, can you re-run tree-recover and see if it finds this block and gets rid of it? Thanks,
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue tree-recover /dev/mapper/dshelf1 FS_INFO IS 0x55eaff09dbc0 Couldn't find the last root for 8 FS_INFO AFTER IS 0x55eaff09dbc0 Checking root 2 bytenr 15645019570176 Checking root 4 bytenr 15645019078656h Checking root 5 bytenr 15645018161152 Checking root 7 bytenr 15645018275840 Checking root 9 bytenr 15645740367872 Checking root 161197 bytenr 15645018341376 Checking root 161199 bytenr 15645018652672 Checking root 161200 bytenr 15645018750976 Checking root 161889 bytenr 11160502124544 Checking root 162628 bytenr 15645018931200 Checking root 162632 bytenr 15645018210304 Checking root 163298 bytenr 15645019045888 Checking root 163302 bytenr 15645018685440 Checking root 163303 bytenr 15645019095040 Checking root 163316 bytenr 15645018996736 Checking root 163920 bytenr 15645019144192 Checking root 164620 bytenr 15645019275264 Checking root 164623 bytenr 15645019226112 Checking root 164624 bytenr 15645019176960 corrupt node: root=164624 block=15645019471872 physical=15053899431936 slot=25, bad key order, current (7819 1 0) next (7819 1 0) corrupt node: root=164624 block=15645019471872 physical=15054973173760 slot=25, bad key order, current (7819 1 0) next (7819 1 0) corrupt node: root=164624 block=15645019471872 physical=15053899431936 slot=25, bad key order, current (7819 1 0) next (7819 1 0) corrupt node: root=164624 block=15645019471872 physical=15053899431936 slot=25, bad key order, current (7819 1 0) next (7819 1 0) scanning, best has 0 found 0 bad corrupt node: root=164624 block=15645019471872 physical=15053899431936 slot=25, bad key order, current (7819 1 0) next (7819 1 0) corrupt node: root=164624 block=15645019471872 physical=15054973173760 slot=25, bad key order, current (7819 1 0) next (7819 1 0) corrupt node: root=164624 block=15645019471872 physical=15053899431936 slot=25, bad key order, current (7819 1 0) next (7819 1 0) checking block 15645502210048 generation 1601068 fs info generation 2588154 Invalid mapping for 5809703075840-5809703092224, got 11106814787584-11107888529408 Couldn't map the block 5809703075840 Couldn't map the block 5809703075840 Invalid mapping for 4867246325760-4867246342144, got 11106814787584-11107888529408 Couldn't map the block 4867246325760 Couldn't map the block 4867246325760 Invalid mapping for 13577676587008-13577676603392, got 14271702368256-14272776110080 Couldn't map the block 13577676587008 Couldn't map the block 13577676587008 Invalid mapping for 9715195920384-9715195936768, got 11106814787584-11107888529408 Couldn't map the block 9715195920384 Couldn't map the block 9715195920384 Invalid mapping for 9715198033920-9715198050304, got 11106814787584-11107888529408 Couldn't map the block 9715198033920 Couldn't map the block 9715198033920 (...) Invalid mapping for 13577212362752-13577212379136, got 14271702368256-14272776110080 Couldn't map the block 13577212362752 Couldn't map the block 13577212362752 deleting slot 14 in block 15646005067776 Invalid mapping for 13577154658304-13577154674688, got 14271702368256-14272776110080 Couldn't map the block 13577154658304 Couldn't map the block 13577154658304 deleting slot 14 in block 15646005067776 Invalid mapping for 12512115081216-12512115097600, got 14271702368256-14272776110080 Couldn't map the block 12512115081216 Couldn't map the block 12512115081216 deleting slot 14 in block 15646005067776 Invalid mapping for 11651757277184-11651757293568, got 14271702368256-14272776110080 Couldn't map the block 11651757277184 Couldn't map the block 11651757277184 deleting slot 14 in block 15646005067776 Invalid mapping for 11651852124160-11651852140544, got 14271702368256-14272776110080 Couldn't map the block 11651852124160 Couldn't map the block 11651852124160 deleting slot 15 in block 15646005067776 Invalid mapping for 12511596118016-12511596134400, got 14271702368256-14272776110080 Couldn't map the block 12511596118016 Couldn't map the block 12511596118016 deleting slot 15 in block 15646005067776 Invalid mapping for 10678933913600-10678933929984, got 11106814787584-11107888529408 Couldn't map the block 10678933913600 Couldn't map the block 10678933913600 deleting slot 15 in block 15646005067776 Invalid mapping for 11651771924480-11651771940864, got 14271702368256-14272776110080 Couldn't map the block 11651771924480 Couldn't map the block 11651771924480 deleting slot 15 in block 15646005067776 Invalid mapping for 10194218582016-10194218598400, got 11106814787584-11107888529408 Couldn't map the block 10194218582016 Couldn't map the block 10194218582016 deleting slot 15 in block 15646005067776 Invalid mapping for 13577142059008-13577142075392, got 14271702368256-14272776110080 Couldn't map the block 13577142059008 Couldn't map the block 13577142059008 deleting slot 8 in block 15645502210048 Checking root 164629 bytenr 15645485137920 Checking root 164631 bytenr 15645496983552 Checking root 164633 bytenr 15645526884352 Checking root 164823 bytenr 15645999005696 Tree recovery finished, you can run check now
However I still get:
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue init-extent-tree /dev/mapper/dshelf1
inserting block group 15929559744512
inserting block group 15930633486336
inserting block group 15931707228160
inserting block group 15932780969984
inserting block group 15933854711808
ERROR: Error reading data reloc tree -2
ERROR: failed to reinit the data reloc root
searching 1 for bad extents
processed 999424 of 0 possible bytes, 0%
searching 4 for bad extents
processed 163840 of 1064960 possible bytes, 15%
searching 5 for bad extents
processed 65536 of 10960896 possible bytes, 0%
searching 7 for bad extents
processed 16384 of 16570974208 possible bytes, 0%
searching 9 for bad extents
processed 16384 of 16384 possible bytes, 100%
searching 161197 for bad extents
processed 131072 of 108986368 possible bytes, 0%
searching 161199 for bad extents
processed 196608 of 49479680 possible bytes, 0%
searching 161200 for bad extents
processed 180224 of 254214144 possible bytes, 0%
searching 161889 for bad extents
processed 229376 of 49446912 possible bytes, 0%
searching 162628 for bad extents
processed 49152 of 49463296 possible bytes, 0%
searching 162632 for bad extents
processed 147456 of 94633984 possible bytes, 0%
searching 163298 for bad extents
processed 49152 of 49463296 possible bytes, 0%
searching 163302 for bad extents
processed 147456 of 94633984 possible bytes, 0%
searching 163303 for bad extents
processed 131072 of 76333056 possible bytes, 0%
searching 163316 for bad extents
processed 147456 of 108544000 possible bytes, 0%
searching 163920 for bad extents
processed 16384 of 108691456 possible bytes, 0%
searching 164620 for bad extents
processed 49152 of 49463296 possible bytes, 0%
searching 164623 for bad extents
processed 311296 of 63193088 possible bytes, 0%
searching 164624 for bad extents
Found an extent we don't have a block group for in the file
file
Deleting [260, 108, 0] root 15645019684864 path top 15645019684864 top slot 0 leaf 15645019734016 slot 114
searching 164624 for bad extents
Found an extent we don't have a block group for in the file
file
corrupt node: root=164624 block=15645019471872 physical=15054973173760 slot=38, bad key order, current (7819 1 0) next (7819 1 0) Deleting [260, 108, 58146816] root 15645018718208 path top 15645018718208 top slot 0 leaf 15645019553792 slot 114
searching 164624 for bad extents
Found an extent we don't have a block group for in the file
corrupt node: root=164624 block=15645019471872 physical=15054973173760 slot=38, bad key order, current (7819 1 0) next (7819 1 0) Couldn't find any paths for this inode
corrupt node: root=164624 block=15645019684864 physical=15054973386752 slot=38, bad key order, current (7819 1 0) next (7819 1 0)
ERROR: error searching for key?? -1
wtf
it failed?? -1
ERROR: failed to clear bad extents
doing close???
ERROR: attempt to start transaction over already running one
WARNING: reserved space leaked, flag=0x4 bytes_reserved=32768 extent buffer leak: start 15645019504640 len 16384
extent buffer leak: start 15645019504640 len 16384
WARNING: dirty eb leak (aborted trans): start 15645019504640 len 16384 extent buffer leak: start 15645019684864 len 16384
extent buffer leak: start 15645019684864 len 16384
WARNING: dirty eb leak (aborted trans): start 15645019684864 len 16384 Init extent tree failed
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 26 lines · Marc MERLIN
Quoted 3 lines · Josef Bacik
Hmm tree-recover is supposed to catch this, can you re-run tree-recover and see if it finds this block and gets rid of it? Thanks,
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue tree-recover /dev/mapper/dshelf1 FS_INFO IS 0x55eaff09dbc0 Couldn't find the last root for 8 FS_INFO AFTER IS 0x55eaff09dbc0 Checking root 2 bytenr 15645019570176 Checking root 4 bytenr 15645019078656h Checking root 5 bytenr 15645018161152 Checking root 7 bytenr 15645018275840 Checking root 9 bytenr 15645740367872 Checking root 161197 bytenr 15645018341376 Checking root 161199 bytenr 15645018652672 Checking root 161200 bytenr 15645018750976 Checking root 161889 bytenr 11160502124544 Checking root 162628 bytenr 15645018931200 Checking root 162632 bytenr 15645018210304 Checking root 163298 bytenr 15645019045888 Checking root 163302 bytenr 15645018685440 Checking root 163303 bytenr 15645019095040 Checking root 163316 bytenr 15645018996736 Checking root 163920 bytenr 15645019144192
Quoted 8 lines
Checking root 164620 bytenr 15645019275264 Checking root 164623 bytenr 15645019226112 Checking root 164624 bytenr 15645019176960 corrupt node: root=164624 block=15645019471872 physical=15053899431936 slot=25, bad key order, current (7819 1 0) next (7819 1 0) corrupt node: root=164624 block=15645019471872 physical=15054973173760 slot=25, bad key order, current (7819 1 0) next (7819 1 0) corrupt node: root=164624 block=15645019471872 physical=15053899431936 slot=25, bad key order, current (7819 1 0) next (7819 1 0) corrupt node: root=164624 block=15645019471872 physical=15053899431936 slot=25, bad key order, current (7819 1 0) next (7819 1 0) scanning, best has 0 found 0 bad
Ok we're finding the corrupt blocks and scanning, but for some reason we're not getting the updated root?
I've pushed a debug patch, can you re-run tree-recover and capture the output? Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 5 lines · Josef Bacik
Ok we're finding the corrupt blocks and scanning, but for some reason we're not getting the updated root?
I've pushed a debug patch, can you re-run tree-recover and capture the output? Thanks,
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue tree-recover /dev/mapper/dshelf1 FS_INFO IS 0x5570a7eb6bc0 Couldn't find the last root for 8 FS_INFO AFTER IS 0x5570a7eb6bc0 Checking root 2 bytenr 15645019668480 Checking root 4 bytenr 15645019078656 Checking root 5 bytenr 15645018161152 Checking root 7 bytenr 15645019488256 Checking root 9 bytenr 15645740367872 Checking root 161197 bytenr 15645018341376 Checking root 161199 bytenr 15645018652672 Checking root 161200 bytenr 15645018750976 Checking root 161889 bytenr 11160502124544 Checking root 162628 bytenr 15645018931200 Checking root 162632 bytenr 15645018210304 Checking root 163298 bytenr 15645019045888 Checking root 163302 bytenr 15645018685440 Checking root 163303 bytenr 15645019095040 Checking root 163316 bytenr 15645018996736 Checking root 163920 bytenr 15645019144192 Checking root 164620 bytenr 15645019275264 Checking root 164623 bytenr 15645019226112 Checking root 164624 bytenr 15645018718208 corrupt node: root=164624 block=15645019471872 physical=15053899431936 slot=38, bad key order, current (7819 1 0) next (7819 1 0) corrupt node: root=164624 block=15645019471872 physical=15054973173760 slot=38, bad key order, current (7819 1 0) next (7819 1 0) corrupt node: root=164624 block=15645019471872 physical=15053899431936 slot=38, bad key order, current (7819 1 0) next (7819 1 0) corrupt node: root=164624 block=15645019471872 physical=15053899431936 slot=38, bad key order, current (7819 1 0) next (7819 1 0) scanning, best has 0 found 0 bad corrupt node: root=164624 block=15645019471872 physical=15053899431936 slot=38, bad key order, current (7819 1 0) next (7819 1 0) corrupt node: root=164624 block=15645019471872 physical=15054973173760 slot=38, bad key order, current (7819 1 0) next (7819 1 0) corrupt node: root=164624 block=15645019471872 physical=15053899431936 slot=38, bad key order, current (7819 1 0) next (7819 1 0) checking block 15645018718208 generation 2588157 fs info generation 2588157 corrupt node: root=164624 block=15645019471872 physical=15053899431936 slot=38, bad key order, current (7819 1 0) next (7819 1 0) corrupt node: root=164624 block=15645019471872 physical=15054973173760 slot=38, bad key order, current (7819 1 0) next (7819 1 0) corrupt node: root=164624 block=15645019471872 physical=15053899431936 slot=38, bad key order, current (7819 1 0) next (7819 1 0) corrupt node: root=164624 block=15645019471872 physical=15053899431936 slot=38, bad key order, current (7819 1 0) next (7819 1 0) trying bytenr 15645018718208 got 96 blocks 1 bad checking block 15645019684864 generation 2588156 fs info generation 2588157 trying bytenr 15645019684864 got 145 blocks 0 bad checking block 15645502210048 generation 1601068 fs info generation 2588157 trying bytenr 15645502210048 got 146 blocks 0 bad checking block 15645019471872 generation 2588157 fs info generation 2588157 scan for best root 164624 wants to use 15645502210048 as the root bytenr corrupt node: root=164624 block=15645019471872 physical=15053899431936 slot=38, bad key order, current (7819 1 0) next (7819 1 0) corrupt node: root=164624 block=15645019471872 physical=15054973173760 slot=38, bad key order, current (7819 1 0) next (7819 1 0) corrupt node: root=164624 block=15645019471872 physical=15053899431936 slot=38, bad key order, current (7819 1 0) next (7819 1 0) Repairing root 164624 bad_blocks 0 update 1 setting root 164624 to bytenr 15645502210048 Checking root 164629 bytenr 15645485137920 Checking root 164631 bytenr 15645496983552 Checking root 164633 bytenr 15645526884352 Checking root 164823 bytenr 15645999005696 Tree recovery finished, you can run check now
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 48 lines · Marc MERLIN
Quoted 5 lines · Josef Bacik
Ok we're finding the corrupt blocks and scanning, but for some reason we're not getting the updated root?
I've pushed a debug patch, can you re-run tree-recover and capture the output? Thanks,
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue tree-recover /dev/mapper/dshelf1 FS_INFO IS 0x5570a7eb6bc0 Couldn't find the last root for 8 FS_INFO AFTER IS 0x5570a7eb6bc0 Checking root 2 bytenr 15645019668480 Checking root 4 bytenr 15645019078656 Checking root 5 bytenr 15645018161152 Checking root 7 bytenr 15645019488256 Checking root 9 bytenr 15645740367872 Checking root 161197 bytenr 15645018341376 Checking root 161199 bytenr 15645018652672 Checking root 161200 bytenr 15645018750976 Checking root 161889 bytenr 11160502124544 Checking root 162628 bytenr 15645018931200 Checking root 162632 bytenr 15645018210304 Checking root 163298 bytenr 15645019045888 Checking root 163302 bytenr 15645018685440 Checking root 163303 bytenr 15645019095040 Checking root 163316 bytenr 15645018996736 Checking root 163920 bytenr 15645019144192 Checking root 164620 bytenr 15645019275264 Checking root 164623 bytenr 15645019226112 Checking root 164624 bytenr 15645018718208 corrupt node: root=164624 block=15645019471872 physical=15053899431936 slot=38, bad key order, current (7819 1 0) next (7819 1 0) corrupt node: root=164624 block=15645019471872 physical=15054973173760 slot=38, bad key order, current (7819 1 0) next (7819 1 0) corrupt node: root=164624 block=15645019471872 physical=15053899431936 slot=38, bad key order, current (7819 1 0) next (7819 1 0) corrupt node: root=164624 block=15645019471872 physical=15053899431936 slot=38, bad key order, current (7819 1 0) next (7819 1 0) scanning, best has 0 found 0 bad corrupt node: root=164624 block=15645019471872 physical=15053899431936 slot=38, bad key order, current (7819 1 0) next (7819 1 0) corrupt node: root=164624 block=15645019471872 physical=15054973173760 slot=38, bad key order, current (7819 1 0) next (7819 1 0) corrupt node: root=164624 block=15645019471872 physical=15053899431936 slot=38, bad key order, current (7819 1 0) next (7819 1 0) checking block 15645018718208 generation 2588157 fs info generation 2588157 corrupt node: root=164624 block=15645019471872 physical=15053899431936 slot=38, bad key order, current (7819 1 0) next (7819 1 0) corrupt node: root=164624 block=15645019471872 physical=15054973173760 slot=38, bad key order, current (7819 1 0) next (7819 1 0) corrupt node: root=164624 block=15645019471872 physical=15053899431936 slot=38, bad key order, current (7819 1 0) next (7819 1 0) corrupt node: root=164624 block=15645019471872 physical=15053899431936 slot=38, bad key order, current (7819 1 0) next (7819 1 0) trying bytenr 15645018718208 got 96 blocks 1 bad checking block 15645019684864 generation 2588156 fs info generation 2588157 trying bytenr 15645019684864 got 145 blocks 0 bad checking block 15645502210048 generation 1601068 fs info generation 2588157
Quoted 8 lines
trying bytenr 15645502210048 got 146 blocks 0 bad checking block 15645019471872 generation 2588157 fs info generation 2588157 scan for best root 164624 wants to use 15645502210048 as the root bytenr corrupt node: root=164624 block=15645019471872 physical=15053899431936 slot=38, bad key order, current (7819 1 0) next (7819 1 0) corrupt node: root=164624 block=15645019471872 physical=15054973173760 slot=38, bad key order, current (7819 1 0) next (7819 1 0) corrupt node: root=164624 block=15645019471872 physical=15053899431936 slot=38, bad key order, current (7819 1 0) next (7819 1 0) Repairing root 164624 bad_blocks 0 update 1 setting root 164624 to bytenr 15645502210048
Ok this looks like it worked? Can you re-run tree-recover to see if it uses the right bytenr? Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 2 lines · Josef Bacik
Ok this looks like it worked? Can you re-run tree-recover to see if it uses the right bytenr? Thanks,
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue tree-recover /dev/mapper/dshelf1 FS_INFO IS 0x5568318c7bc0 Couldn't find the last root for 8 FS_INFO AFTER IS 0x5568318c7bc0 Checking root 2 bytenr 15645019668480 Checking root 4 bytenr 15645019078656 Checking root 5 bytenr 15645018161152 Checking root 7 bytenr 15645019488256 Checking root 9 bytenr 15645740367872 Checking root 161197 bytenr 15645018341376 Checking root 161199 bytenr 15645018652672 Checking root 161200 bytenr 15645018750976 Checking root 161889 bytenr 11160502124544 Checking root 162628 bytenr 15645018931200 Checking root 162632 bytenr 15645018210304 Checking root 163298 bytenr 15645019045888 Checking root 163302 bytenr 15645018685440 Checking root 163303 bytenr 15645019095040 Checking root 163316 bytenr 15645018996736 Checking root 163920 bytenr 15645019144192 Checking root 164620 bytenr 15645019275264 Checking root 164623 bytenr 15645019226112 Checking root 164624 bytenr 15645502210048 Checking root 164629 bytenr 15645485137920 Checking root 164631 bytenr 15645496983552 Checking root 164633 bytenr 15645526884352 Checking root 164823 bytenr 15645999005696 Tree recovery finished, you can run check now
But
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue init-extent-tree /dev/mapper/dshelf1 (...) nserting block group 15920969809920 inserting block group 15922043551744 inserting block group 15923117293568 inserting block group 15924191035392 inserting block group 15925264777216 inserting block group 15926338519040 inserting block group 15927412260864 inserting block group 15928486002688 inserting block group 15929559744512 inserting block group 15930633486336 inserting block group 15931707228160 inserting block group 15932780969984 inserting block group 15933854711808 ERROR: Error reading data reloc tree -2
ERROR: failed to reinit the data reloc root
searching 1 for bad extents
processed 999424 of 0 possible bytes, 0%
searching 4 for bad extents
processed 163840 of 1064960 possible bytes, 15%
searching 5 for bad extents
processed 65536 of 10960896 possible bytes, 0%
searching 7 for bad extents
processed 16384 of 16570974208 possible bytes, 0%
searching 9 for bad extents
processed 16384 of 16384 possible bytes, 100%
searching 161197 for bad extents
processed 131072 of 108986368 possible bytes, 0%
searching 161199 for bad extents
processed 196608 of 49479680 possible bytes, 0%
searching 161200 for bad extents
processed 180224 of 254214144 possible bytes, 0%
searching 161889 for bad extents
processed 229376 of 49446912 possible bytes, 0%
searching 162628 for bad extents
processed 49152 of 49463296 possible bytes, 0%
searching 162632 for bad extents
processed 147456 of 94633984 possible bytes, 0%
searching 163298 for bad extents
processed 49152 of 49463296 possible bytes, 0%
searching 163302 for bad extents
processed 147456 of 94633984 possible bytes, 0%
searching 163303 for bad extents
processed 131072 of 76333056 possible bytes, 0%
searching 163316 for bad extents
processed 147456 of 108544000 possible bytes, 0%
searching 163920 for bad extents
processed 16384 of 108691456 possible bytes, 0%
searching 164620 for bad extents
processed 49152 of 49463296 possible bytes, 0%
searching 164623 for bad extents
processed 311296 of 63193088 possible bytes, 0%
searching 164624 for bad extents
Found an extent we don't have a block group for in the file
file
Deleting [260, 108, 0] root 15645019553792 path top 15645019553792 top slot 0 leaf 15645019602944 slot 114
searching 164624 for bad extents
Found an extent we don't have a block group for in the file
file
corrupt node: root=164624 block=15645018324992 physical=15054972026880 slot=38, bad key order, current (7819 1 0) next (7819 1 0) Deleting [260, 108, 58146816] root 15645018226688 path top 15645018226688 top slot 0 leaf 15645018718208 slot 114
searching 164624 for bad extents
Found an extent we don't have a block group for in the file
corrupt node: root=164624 block=15645018324992 physical=15054972026880 slot=38, bad key order, current (7819 1 0) next (7819 1 0) Couldn't find any paths for this inode
corrupt node: root=164624 block=15645019553792 physical=15054973255680 slot=38, bad key order, current (7819 1 0) next (7819 1 0)
ERROR: error searching for key?? -1
wtf
it failed?? -1
ERROR: failed to clear bad extents
doing close???
ERROR: attempt to start transaction over already running one
WARNING: reserved space leaked, flag=0x4 bytes_reserved=32768 extent buffer leak: start 15645018374144 len 16384
extent buffer leak: start 15645018374144 len 16384
WARNING: dirty eb leak (aborted trans): start 15645018374144 len 16384 extent buffer leak: start 15645019553792 len 16384
extent buffer leak: start 15645019553792 len 16384
WARNING: dirty eb leak (aborted trans): start 15645019553792 len 16384 Init extent tree failed
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 7 lines · Marc MERLIN
Quoted 2 lines · Josef Bacik
Ok this looks like it worked? Can you re-run tree-recover to see if it uses the right bytenr? Thanks,
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue tree-recover /dev/mapper/dshelf1
Sorry I've been in the mountains with terrible internet. I'm home with a computer and real internet now. I've pushed more debugging, just run the init-extent-tree again, it'll spit out the root info so I can see wtf is going on here. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 7 lines · Josef Bacik
Quoted 6 lines · Marc MERLIN
Quoted 2 lines · Josef Bacik
Ok this looks like it worked? Can you re-run tree-recover to see if it uses the right bytenr? Thanks,
Quoted 6 lines
Quoted 1 line
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue tree-recover /dev/mapper/dshelf1Sorry I've been in the mountains with terrible internet. I'm home with a computer and real internet now. I've pushed more debugging, just run the init-extent-tree again, it'll spit out the root info so I can see wtf is going on here. Thanks,
Starting program: /var/local/src/btrfs-progs-josefbacik/btrfs rescue init-extent-tree /dev/mapper/dshelf1 [Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".FS_INFO IS 0x555555650bc0
Couldn't find the last root for 8FS_INFO AFTER IS 0x555555650bc0
Walking all our trees and pinning down the currently accessible blocks
Program received signal SIGSEGV, Segmentation fault. 0x000055555557103f in generic_err (buf=buf@entry=0x5555557a3bb0, slot=slot@entry=38,
fmt=fmt@entry=0x55555560be80 "bad key order, current (%llu %u %llu) next (%llu %u %llu)") at ./kernel-shared/ctree.h:2135
2135 BTRFS_SETGET_HEADER_FUNCS(header_bytenr, struct btrfs_header, bytenr, 64);
(gdb) bt
#0 0x000055555557103f in generic_err (buf=buf@entry=0x5555557a3bb0, slot=slot@entry=38,
fmt=fmt@entry=0x55555560be80 "bad key order, current (%llu %u %llu) next (%llu %u %llu)") at ./kernel-shared/ctree.h:2135
#1 0x000055555557303e in btrfs_check_node (fs_info=fs_info@entry=0x555555650bc0, parent_key=parent_key@entry=0x0,
node=node@entry=0x5555557a3bb0) at kernel-shared/ctree.c:663
#2 0x000055555557c0db in read_tree_block (fs_info=fs_info@entry=0x555555650bc0, bytenr=<optimized out>,
parent_transid=parent_transid@entry=0) at kernel-shared/disk-io.c:403
#3 0x000055555559f54e in traverse_tree_blocks (tree=tree@entry=0x555555701690, eb=eb@entry=0x55555579fb30,
tree_root=tree_root@entry=0) at common/repair.c:166
#4 0x000055555559f4ca in traverse_tree_blocks (tree=tree@entry=0x555555701690, eb=eb@entry=0x5555557938f0,
tree_root=tree_root@entry=1) at common/repair.c:146
#5 0x000055555559f5b5 in traverse_tree_blocks (tree=tree@entry=0x555555701690, eb=0x5555556a2be0, tree_root=tree_root@entry=1)
at common/repair.c:171
#6 0x000055555559f7e5 in btrfs_mark_used_tree_blocks (fs_info=fs_info@entry=0x555555650bc0, tree=tree@entry=0x555555701690,
chunk_only=chunk_only@entry=false) at common/repair.c:189
#7 0x00005555555e11ed in btrfs_init_extent_tree (path=path@entry=0x7fffffffe1ce "/dev/mapper/dshelf1")
at cmds/rescue-init-extent-tree.c:1211
#8 0x00005555555d7eb4 in cmd_rescue_init_extent_tree (cmd=<optimized out>, argc=<optimized out>, argv=<optimized out>)
at cmds/rescue.c:139
#9 0x000055555556c17b in cmd_execute (argv=0x7fffffffdeb8, argc=2, cmd=0x555555646c80 <cmd_struct_rescue_init_extent_tree>)
at cmds/commands.h:125#10 handle_command_group (cmd=<optimized out>, argc=2, argv=0x7fffffffdeb8) at btrfs.c:152
#11 0x000055555556c275 in cmd_execute (argv=0x7fffffffdeb0, argc=3, cmd=0x555555647cc0 <cmd_struct_rescue>) at cmds/commands.h:125 #12 main (argc=3, argv=0x7fffffffdeb0) at btrfs.c:405
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 24 lines · Marc MERLIN
Quoted 7 lines · Josef Bacik
Quoted 6 lines · Marc MERLIN
Quoted 2 lines · Josef Bacik
Ok this looks like it worked? Can you re-run tree-recover to see if it uses the right bytenr? Thanks,
Quoted 6 lines
Quoted 1 line
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue tree-recover /dev/mapper/dshelf1Sorry I've been in the mountains with terrible internet. I'm home with a computer and real internet now. I've pushed more debugging, just run the init-extent-tree again, it'll spit out the root info so I can see wtf is going on here. Thanks,
Starting program:
/var/local/src/btrfs-progs-josefbacik/btrfsrescue init-extent-tree/dev/mapper/dshelf1[Thread debugging usinglibthread_dbenabled]
Using hostlibthread_dblibrary "/lib/x86_64-linux-gnu/libthread_db.so.1".FS_INFOIS0x555555650bc0
Couldn't find the last root for 8FS_INFOAFTER IS0x555555650bc0
Walking all our trees and pinning down the currently accessible blocks
Quoted 5 lines
Program received signal SIGSEGV, Segmentation fault.
0x000055555557103fingeneric_err(buf=buf@entry=0x5555557a3bb0, slot=slot@entry=38,fmt=fmt@entry=0x55555560be80 "bad key order, current (%llu %u %llu) next (%llu %u %llu)") at ./kernel-shared/ctree.h:21352135
BTRFS_SETGET_HEADER_FUNCS(header_bytenr, struct btrfs_header, bytenr, 64);
(gdb) bt
Sigh try again please. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 2 lines · Josef Bacik
Sigh try again please. Thanks,
Same
FS_INFO IS 0x555555650bc0
Couldn't find the last root for 8FS_INFO AFTER IS 0x555555650bc0
Walking all our trees and pinning down the currently accessible blocks
Program received signal SIGSEGV, Segmentation fault. generic_err (buf=buf@entry=0x5555557a3bb0, slot=slot@entry=38,
fmt=fmt@entry=0x55555560be80 "bad key order, current (%llu %u %llu) next (%llu %u %llu)") at kernel-shared/ctree.c:605
605 start = root->node ? root->node->start : 0;
(gdb) bt
#0 generic_err (buf=buf@entry=0x5555557a3bb0, slot=slot@entry=38,
fmt=fmt@entry=0x55555560be80 "bad key order, current (%llu %u %llu) next (%llu %u %llu)") at kernel-shared/ctree.c:605
#1 0x0000555555573065 in btrfs_check_node (fs_info=fs_info@entry=0x555555650bc0, parent_key=parent_key@entry=0x0,
node=node@entry=0x5555557a3bb0) at kernel-shared/ctree.c:673
#2 0x000055555557c102 in read_tree_block (fs_info=fs_info@entry=0x555555650bc0, bytenr=<optimized out>,
parent_transid=parent_transid@entry=0) at kernel-shared/disk-io.c:403
#3 0x000055555559f575 in traverse_tree_blocks (tree=tree@entry=0x555555701690, eb=eb@entry=0x55555579fb30,
tree_root=tree_root@entry=0) at common/repair.c:166
#4 0x000055555559f4f1 in traverse_tree_blocks (tree=tree@entry=0x555555701690, eb=eb@entry=0x5555557938f0,
tree_root=tree_root@entry=1) at common/repair.c:146
#5 0x000055555559f5dc in traverse_tree_blocks (tree=tree@entry=0x555555701690, eb=0x5555556a2be0, tree_root=tree_root@entry=1)
at common/repair.c:171
#6 0x000055555559f80c in btrfs_mark_used_tree_blocks (fs_info=fs_info@entry=0x555555650bc0, tree=tree@entry=0x555555701690,
chunk_only=chunk_only@entry=false) at common/repair.c:189
#7 0x00005555555e1214 in btrfs_init_extent_tree (path=path@entry=0x7fffffffe1ce "/dev/mapper/dshelf1")
at cmds/rescue-init-extent-tree.c:1211
#8 0x00005555555d7edb in cmd_rescue_init_extent_tree (cmd=<optimized out>, argc=<optimized out>, argv=<optimized out>)
at cmds/rescue.c:139
#9 0x000055555556c17b in cmd_execute (argv=0x7fffffffdeb8, argc=2, cmd=0x555555646c80 <cmd_struct_rescue_init_extent_tree>)
at cmds/commands.h:125#10 handle_command_group (cmd=<optimized out>, argc=2, argv=0x7fffffffdeb8) at btrfs.c:152
#11 0x000055555556c275 in cmd_execute (argv=0x7fffffffdeb0, argc=3, cmd=0x555555647cc0 <cmd_struct_rescue>) at cmds/commands.h:125 #12 main (argc=3, argv=0x7fffffffdeb0) at btrfs.c:405
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 7 lines · Marc MERLIN
Quoted 2 lines · Josef Bacik
Sigh try again please. Thanks,
Same
Sorry, this one should work. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 9 lines · Josef Bacik
Quoted 6 lines · Marc MERLIN
Quoted 2 lines · Josef Bacik
Sigh try again please. Thanks,
Same
Sorry, this one should work. Thanks,
FS_INFO IS 0x555555650bc0
Couldn't find the last root for 8FS_INFO AFTER IS 0x555555650bc0
Walking all our trees and pinning down the currently accessible blocks
corrupt node: root=164624 root bytenr 1 commit bytenr 0 block=15645018324992 physical=15053898285056 slot=38, bad key order, current (7819 1 0) next (7819 1 0) corrupt node: root=164624 root bytenr 1 commit bytenr 0 block=15645018324992 physical=15054972026880 slot=38, bad key order, current (7819 1 0) next (7819 1 0) corrupt node: root=164624 root bytenr 1 commit bytenr 0 block=15645018324992 physical=15053898285056 slot=38, bad key order, current (7819 1 0) next (7819 1 0) Clearing the extent root and re-init'ing the block groups
deleting space cache for 11106814787584
deleting space cache for 11108962271232
deleting space cache for 11110036013056
deleting space cache for 11111109754880
deleting space cache for 11112183496704
(...)
inserting block group 15929559744512
inserting block group 15930633486336
inserting block group 15931707228160
inserting block group 15932780969984
inserting block group 15933854711808
ERROR: Error reading data reloc tree -2
ERROR: failed to reinit the data reloc root
searching 1 for bad extents
processed 999424 of 0 possible bytes, 0%
searching 4 for bad extents
processed 163840 of 1064960 possible bytes, 15%
searching 5 for bad extents
processed 65536 of 10960896 possible bytes, 0%
searching 7 for bad extents
processed 16384 of 16570974208 possible bytes, 0%
searching 9 for bad extents
processed 16384 of 16384 possible bytes, 100%
searching 161197 for bad extents
processed 131072 of 108986368 possible bytes, 0%
searching 161199 for bad extents
processed 196608 of 49479680 possible bytes, 0%
searching 161200 for bad extents
processed 180224 of 254214144 possible bytes, 0%
searching 161889 for bad extents
processed 229376 of 49446912 possible bytes, 0%
searching 162628 for bad extents
processed 49152 of 49463296 possible bytes, 0%
searching 162632 for bad extents
processed 147456 of 94633984 possible bytes, 0%
searching 163298 for bad extents
processed 49152 of 49463296 possible bytes, 0%
searching 163302 for bad extents
processed 147456 of 94633984 possible bytes, 0%
searching 163303 for bad extents
processed 131072 of 76333056 possible bytes, 0%
searching 163316 for bad extents
processed 147456 of 108544000 possible bytes, 0%
searching 163920 for bad extents
processed 16384 of 108691456 possible bytes, 0%
searching 164620 for bad extents
processed 49152 of 49463296 possible bytes, 0%
searching 164623 for bad extents
processed 311296 of 63193088 possible bytes, 0%
searching 164624 for bad extents
Found an extent we don't have a block group for in the file
corrupt node: root=164624 root bytenr 15645018226688 commit bytenr 0 block=15645018324992 physical=15053898285056 slot=38, bad key order, current (7819 1 0) next (7819 1 0) Couldn't find any paths for this inode
corrupt node: root=164624 root bytenr 15645019652096 commit bytenr 15645018226688 block=15645019668480 physical=18446744073709551615 slot=38, bad key order, current (7819 1 0) next (7819 1 0)
ERROR: error searching for key?? -1 root 164624 node 15645019652096 commit 15645018226688
wtf
it failed?? -1
ERROR: failed to clear bad extents
doing close???
ERROR: attempt to start transaction over already running one
WARNING: reserved space leaked, flag=0x4 bytes_reserved=32768 extent buffer leak: start 15645019652096 len 16384
extent buffer leak: start 15645019652096 len 16384
WARNING: dirty eb leak (aborted trans): start 15645019652096 len 16384 extent buffer leak: start 15645019668480 len 16384
extent buffer leak: start 15645019668480 len 16384
WARNING: dirty eb leak (aborted trans): start 15645019668480 len 16384 Init extent tree failed
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 72 lines · Marc MERLIN
Quoted 9 lines · Josef Bacik
Quoted 6 lines · Marc MERLIN
Quoted 2 lines · Josef Bacik
Sigh try again please. Thanks,
Same
Sorry, this one should work. Thanks,
FS_INFOIS0x555555650bc0
Couldn't find the last root for 8FS_INFOAFTER IS0x555555650bc0
Walking all our trees and pinning down the currently accessible blocks
corrupt node: root=164624 root bytenr 1 commit bytenr 0 block=15645018324992 physical=15053898285056 slot=38, bad key order, current (7819 1 0) next (7819 1 0) corrupt node: root=164624 root bytenr 1 commit bytenr 0 block=15645018324992 physical=15054972026880 slot=38, bad key order, current (7819 1 0) next (7819 1 0) corrupt node: root=164624 root bytenr 1 commit bytenr 0 block=15645018324992 physical=15053898285056 slot=38, bad key order, current (7819 1 0) next (7819 1 0) Clearing the extent root and re-init'ing the block groups
deleting space cache for 11106814787584
deleting space cache for 11108962271232
deleting space cache for 11110036013056
deleting space cache for 11111109754880
deleting space cache for 11112183496704
(...)
inserting block group 15929559744512
inserting block group 15930633486336
inserting block group 15931707228160
inserting block group 15932780969984
inserting block group 15933854711808
ERROR: Error reading data reloc tree -2ERROR: failed to reinit the data reloc root
searching 1 for bad extents
processed 999424 of 0 possible bytes, 0%
searching 4 for bad extents
processed 163840 of 1064960 possible bytes, 15%
searching 5 for bad extents
processed 65536 of 10960896 possible bytes, 0%
searching 7 for bad extents
processed 16384 of 16570974208 possible bytes, 0%
searching 9 for bad extents
processed 16384 of 16384 possible bytes, 100%
searching 161197 for bad extents
processed 131072 of 108986368 possible bytes, 0%
searching 161199 for bad extents
processed 196608 of 49479680 possible bytes, 0%
searching 161200 for bad extents
processed 180224 of 254214144 possible bytes, 0%
searching 161889 for bad extents
processed 229376 of 49446912 possible bytes, 0%
searching 162628 for bad extents
processed 49152 of 49463296 possible bytes, 0%
searching 162632 for bad extents
processed 147456 of 94633984 possible bytes, 0%
searching 163298 for bad extents
processed 49152 of 49463296 possible bytes, 0%
searching 163302 for bad extents
processed 147456 of 94633984 possible bytes, 0%
searching 163303 for bad extents
processed 131072 of 76333056 possible bytes, 0%
searching 163316 for bad extents
processed 147456 of 108544000 possible bytes, 0%
searching 163920 for bad extents
processed 16384 of 108691456 possible bytes, 0%
searching 164620 for bad extents
processed 49152 of 49463296 possible bytes, 0%
searching 164623 for bad extents
processed 311296 of 63193088 possible bytes, 0%
searching 164624 for bad extents
Quoted 6 lines
Found an extent we don't have a block group for in the file
corrupt node: root=164624 root bytenr 15645018226688 commit bytenr 0 block=15645018324992 physical=15053898285056 slot=38, bad key order, current (7819 1 0) next (7819 1 0) Couldn't find any paths for this inode
corrupt node: root=164624 root bytenr 15645019652096 commit bytenr 15645018226688 block=15645019668480 physical=18446744073709551615 slot=38, bad key order, current (7819 1 0) next (7819 1 0)
ERROR: error searching for key?? -1 root 164624 node 15645019652096 commit 15645018226688
I wonder if our delete thing is corrupting stuff. Can you re-run tree-recover, and then once that's done run init-extent-tree? I put some stuff to check block all the time to see if we're introducing the problem. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 4 lines · Josef Bacik
I wonder if our delete thing is corrupting stuff. Can you re-run tree-recover, and then once that's done run init-extent-tree? I put some stuff to check block all the time to see if we're introducing the problem. Thanks,
gargamel:/var/local/src/btrfs-progs-josefbacik# gdb./btrfs rescue tree-recover /dev/mapper/dshelf1 FS_INFO IS 0x5637d77f4bc0 Couldn't find the last root for 8 FS_INFO AFTER IS 0x5637d77f4bc0 Checking root 2 bytenr 15645019471872 Checking root 4 bytenr 15645019078656 Checking root 5 bytenr 15645018161152 Checking root 7 bytenr 15645018587136 Checking root 9 bytenr 15645740367872 Checking root 161197 bytenr 15645018341376 Checking root 161199 bytenr 15645018652672 Checking root 161200 bytenr 15645018750976 Checking root 161889 bytenr 11160502124544 Checking root 162628 bytenr 15645018931200 Checking root 162632 bytenr 15645018210304 Checking root 163298 bytenr 15645019045888 Checking root 163302 bytenr 15645018685440 Checking root 163303 bytenr 15645019095040 Checking root 163316 bytenr 15645018996736 Checking root 163920 bytenr 15645019144192 Checking root 164620 bytenr 15645019275264 Checking root 164623 bytenr 15645019226112 Checking root 164624 bytenr 15645018226688 corrupt node: root=164624 root bytenr 1 commit bytenr 0 block=15645018324992 physical=15053898285056 slot=38, bad key order, current (7819 1 0) next (7819 1 0) corrupt node: root=164624 root bytenr 1 commit bytenr 0 block=15645018324992 physical=15054972026880 slot=38, bad key order, current (7819 1 0) next (7819 1 0) corrupt node: root=164624 root bytenr 1 commit bytenr 0 block=15645018324992 physical=15053898285056 slot=38, bad key order, current (7819 1 0) next (7819 1 0) corrupt node: root=164624 root bytenr 1 commit bytenr 0 block=15645018324992 physical=15053898285056 slot=38, bad key order, current (7819 1 0) next (7819 1 0) scanning, best has 0 found 0 bad corrupt node: root=164624 root bytenr 1 commit bytenr 0 block=15645018324992 physical=15053898285056 slot=38, bad key order, current (7819 1 0) next (7819 1 0) corrupt node: root=164624 root bytenr 1 commit bytenr 0 block=15645018324992 physical=15054972026880 slot=38, bad key order, current (7819 1 0) next (7819 1 0) corrupt node: root=164624 root bytenr 1 commit bytenr 0 block=15645018324992 physical=15053898285056 slot=38, bad key order, current (7819 1 0) next (7819 1 0) trying bytenr 15645018226688 got 96 blocks 1 bad checking block 15645502210048 generation 1601068 fs info generation 2588162 trying bytenr 15645502210048 got 146 blocks 0 bad checking block 15645018324992 generation 2588160 fs info generation 2588162 scan for best root 164624 wants to use 15645502210048 as the root bytenr corrupt node: root=164624 root bytenr 1 commit bytenr 0 block=15645018324992 physical=15053898285056 slot=38, bad key order, current (7819 1 0) next (7819 1 0) corrupt node: root=164624 root bytenr 1 commit bytenr 0 block=15645018324992 physical=15054972026880 slot=38, bad key order, current (7819 1 0) next (7819 1 0) corrupt node: root=164624 root bytenr 1 commit bytenr 0 block=15645018324992 physical=15053898285056 slot=38, bad key order, current (7819 1 0) next (7819 1 0) Repairing root 164624 bad_blocks 0 update 1 setting root 164624 to bytenr 15645502210048 Checking root 164629 bytenr 15645485137920 Checking root 164631 bytenr 15645496983552 Checking root 164633 bytenr 15645526884352 Checking root 164823 bytenr 15645999005696 Tree recovery finished, you can run check now
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue init-extent-tree /dev/mapper/dshelf1 FS_INFO IS 0x55d4f966dbc0 Couldn't find the last root for 8 FS_INFO AFTER IS 0x55d4f966dbc0 Walking all our trees and pinning down the currently accessible blocks Clearing the extent root and re-init'ing the block groups deleting space cache for 11106814787584 deleting space cache for 11108962271232 deleting space cache for 11110036013056 deleting space cache for 11111109754880 deleting space cache for 11112183496704 deleting space cache for 11113257238528 deleting space cache for 11114330980352 deleting space cache for 11115404722176 deleting space cache for 11116478464000 (...) inserting block group 15931707228160 inserting block group 15932780969984 inserting block group 15933854711808 ERROR: Error reading data reloc tree -2
ERROR: failed to reinit the data reloc root
searching 1 for bad extents
processed 999424 of 0 possible bytes, 0%
searching 4 for bad extents
processed 163840 of 1064960 possible bytes, 15%
searching 5 for bad extents
processed 65536 of 10960896 possible bytes, 0%
searching 7 for bad extents
processed 16384 of 16570974208 possible bytes, 0%
searching 9 for bad extents
processed 16384 of 16384 possible bytes, 100%
searching 161197 for bad extents
processed 131072 of 108986368 possible bytes, 0%
searching 161199 for bad extents
processed 196608 of 49479680 possible bytes, 0%
searching 161200 for bad extents
processed 180224 of 254214144 possible bytes, 0%
searching 161889 for bad extents
processed 229376 of 49446912 possible bytes, 0%
searching 162628 for bad extents
processed 49152 of 49463296 possible bytes, 0%
searching 162632 for bad extents
processed 147456 of 94633984 possible bytes, 0%
searching 163298 for bad extents
processed 49152 of 49463296 possible bytes, 0%
searching 163302 for bad extents
processed 147456 of 94633984 possible bytes, 0%
searching 163303 for bad extents
processed 131072 of 76333056 possible bytes, 0%
searching 163316 for bad extents
processed 147456 of 108544000 possible bytes, 0%
searching 163920 for bad extents
processed 16384 of 108691456 possible bytes, 0%
searching 164620 for bad extents
processed 49152 of 49463296 possible bytes, 0%
searching 164623 for bad extents
processed 311296 of 63193088 possible bytes, 0%
searching 164624 for bad extents
Found an extent we don't have a block group for in the file
file
Deleting [260, 108, 0] root 15645019602944 path top 15645019602944 top slot 0 leaf 15645019701248 slot 114
searching 164624 for bad extents
Found an extent we don't have a block group for in the file
file
corrupt node: root=164624 root bytenr 15645018226688 commit bytenr 15645019602944 block=15645019176960 physical=15054972878848 slot=38, bad key order, current (7819 1 0) next (7819 1 0) Deleting [260, 108, 58146816] root 15645018226688 path top 15645018226688 top slot 0 leaf 15645019537408 slot 114
corrupt node: root=164624 root bytenr 15645018226688 commit bytenr 15645019602944 block=15645019176960 physical=15054972878848 slot=38, bad key order, current (7819 1 0) next (7819 1 0) kernel-shared/ctree.c:118: btrfs_release_path: BUG_ON ret triggered, value -5
./btrfs(btrfs_release_path+0x62)[0x55d4f7cd950d]
./btrfs(+0x8c751)[0x55d4f7d46751]
./btrfs(+0x8c3c1)[0x55d4f7d463c1]
./btrfs(+0x8c3c1)[0x55d4f7d463c1]
./btrfs(+0x8c8fc)[0x55d4f7d468fc]
./btrfs(+0x8c1cb)[0x55d4f7d461cb]
./btrfs(btrfs_init_extent_tree+0xc83)[0x55d4f7d47e94]
./btrfs(+0x83f6a)[0x55d4f7d3df6a]
./btrfs(handle_command_group+0x49)[0x55d4f7cd217b]
./btrfs(main+0x94)[0x55d4f7cd2275]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xcd)[0x7f7d302a07fd]
./btrfs(_start+0x2a)[0x55d4f7cd1e1a]
Aborted
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 10 lines · Marc MERLIN
Quoted 4 lines · Josef Bacik
I wonder if our delete thing is corrupting stuff. Can you re-run tree-recover, and then once that's done run init-extent-tree? I put some stuff to check block all the time to see if we're introducing the problem. Thanks,
gargamel:/var/local/src/btrfs-progs-josefbacik# gdb./btrfs rescue tree-recover /dev/mapper/dshelf1
Ok more targeted debugging to figure out where the problem is coming from specifically, but hooray I was right. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 10 lines · Josef Bacik
Quoted 9 lines · Marc MERLIN
Quoted 4 lines · Josef Bacik
I wonder if our delete thing is corrupting stuff. Can you re-run tree-recover, and then once that's done run init-extent-tree? I put some stuff to check block all the time to see if we're introducing the problem. Thanks,
Quoted 4 lines
Quoted 1 line
gargamel:/var/local/src/btrfs-progs-josefbacik# gdb./btrfs rescue tree-recover /dev/mapper/dshelf1Ok more targeted debugging to figure out where the problem is coming from specifically, but hooray I was right. Thanks,
searching 164623 for bad extents
processed 311296 of 63193088 possible bytes, 0%
searching 164624 for bad extents
Found an extent we don't have a block group for in the file
file
corrupt node: root=164624 root bytenr 15645019570176 commit bytenr 15645019602944 block=15645019586560 physical=18446744073709551615 slot=38, bad key order, current (7819 1 0) next (7819 1 0) corrupt node: root=164624 root bytenr 15645019570176 commit bytenr 15645019602944 block=15645019586560 physical=18446744073709551615 slot=38, bad key order, current (7819 1 0) next (7819 1 0) cmds/rescue-init-extent-tree.c:197: delete_item: BUG_ON check_path(&path) triggered, value -5
./btrfs(+0x8cb28)[0x556144725b28]
./btrfs(+0x8c63d)[0x55614472563d]
./btrfs(+0x8c63d)[0x55614472563d]
./btrfs(+0x8cc2c)[0x556144725c2c]
./btrfs(+0x8c437)[0x556144725437]
./btrfs(btrfs_init_extent_tree+0xc83)[0x5561447271c4]
./btrfs(+0x841d6)[0x55614471d1d6]
./btrfs(handle_command_group+0x49)[0x5561446b117b]
./btrfs(main+0x94)[0x5561446b1275]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xcd)[0x7fea50bb37fd]
./btrfs(_start+0x2a)[0x5561446b0e1a]
Aborted
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 21 lines · Marc MERLIN
Quoted 10 lines · Josef Bacik
Quoted 9 lines · Marc MERLIN
Quoted 4 lines · Josef Bacik
I wonder if our delete thing is corrupting stuff. Can you re-run tree-recover, and then once that's done run init-extent-tree? I put some stuff to check block all the time to see if we're introducing the problem. Thanks,
Quoted 4 lines
Quoted 1 line
gargamel:/var/local/src/btrfs-progs-josefbacik# gdb./btrfs rescue tree-recover /dev/mapper/dshelf1Ok more targeted debugging to figure out where the problem is coming from specifically, but hooray I was right. Thanks,
searching 164623 for bad extents
processed 311296 of 63193088 possible bytes, 0%
searching 164624 for bad extents
Quoted 5 lines
Found an extent we don't have a block group for in the file
file
corrupt node: root=164624 root bytenr 15645019570176 commit bytenr 15645019602944 block=15645019586560 physical=18446744073709551615 slot=38, bad key order, current (7819 1 0) next (7819 1 0) corrupt node: root=164624 root bytenr 15645019570176 commit bytenr 15645019602944 block=15645019586560 physical=18446744073709551615 slot=38, bad key order, current (7819 1 0) next (7819 1 0)cmds/rescue-init-extent-tree.c:197:delete_item:BUG_ONcheck_path(&path)triggered, value -5
Cool, must be in balance, lets try this again. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 22 lines · Josef Bacik
Quoted 21 lines · Marc MERLIN
Quoted 10 lines · Josef Bacik
Quoted 9 lines · Marc MERLIN
Quoted 4 lines · Josef Bacik
I wonder if our delete thing is corrupting stuff. Can you re-run tree-recover, and then once that's done run init-extent-tree? I put some stuff to check block all the time to see if we're introducing the problem. Thanks,
Quoted 4 lines
Quoted 1 line
gargamel:/var/local/src/btrfs-progs-josefbacik# gdb./btrfs rescue tree-recover /dev/mapper/dshelf1Ok more targeted debugging to figure out where the problem is coming from specifically, but hooray I was right. Thanks,
searching 164623 for bad extents
processed 311296 of 63193088 possible bytes, 0%
searching 164624 for bad extents
Quoted 7 lines
Quoted 5 lines
Found an extent we don't have a block group for in the file
file
corrupt node: root=164624 root bytenr 15645019570176 commit bytenr 15645019602944 block=15645019586560 physical=18446744073709551615 slot=38, bad key order, current (7819 1 0) next (7819 1 0) corrupt node: root=164624 root bytenr 15645019570176 commit bytenr 15645019602944 block=15645019586560 physical=18446744073709551615 slot=38, bad key order, current (7819 1 0) next (7819 1 0)cmds/rescue-init-extent-tree.c:197:delete_item:BUG_ONcheck_path(&path)triggered, value -5Cool, must be in balance, lets try this again. Thanks,
Same?
inserting block group 15930633486336
inserting block group 15931707228160
inserting block group 15932780969984
inserting block group 15933854711808
ERROR: Error reading data reloc tree -2
ERROR: failed to reinit the data reloc root
searching 1 for bad extents
processed 999424 of 0 possible bytes, 0%
searching 4 for bad extents
processed 163840 of 1064960 possible bytes, 15%
searching 5 for bad extents
processed 65536 of 10960896 possible bytes, 0%
searching 7 for bad extents
processed 16384 of 16570974208 possible bytes, 0%
searching 9 for bad extents
processed 16384 of 16384 possible bytes, 100%
searching 161197 for bad extents
processed 131072 of 108986368 possible bytes, 0%
searching 161199 for bad extents
processed 196608 of 49479680 possible bytes, 0%
searching 161200 for bad extents
processed 180224 of 254214144 possible bytes, 0%
searching 161889 for bad extents
processed 229376 of 49446912 possible bytes, 0%
searching 162628 for bad extents
processed 49152 of 49463296 possible bytes, 0%
searching 162632 for bad extents
processed 147456 of 94633984 possible bytes, 0%
searching 163298 for bad extents
processed 49152 of 49463296 possible bytes, 0%
searching 163302 for bad extents
processed 147456 of 94633984 possible bytes, 0%
searching 163303 for bad extents
processed 131072 of 76333056 possible bytes, 0%
searching 163316 for bad extents
processed 147456 of 108544000 possible bytes, 0%
searching 163920 for bad extents
processed 16384 of 108691456 possible bytes, 0%
searching 164620 for bad extents
processed 49152 of 49463296 possible bytes, 0%
searching 164623 for bad extents
processed 311296 of 63193088 possible bytes, 0%
searching 164624 for bad extents
Found an extent we don't have a block group for in the file
file
corrupt node: root=164624 root bytenr 15645019684864 commit bytenr 15645019602944 block=15645019717632 physical=18446744073709551615 slot=38, bad key order, current (7819 1 0) next (7819 1 0) kernel-shared/ctree.c:1100: balance_level: BUG_ON check_path(path) triggered, value -5
./btrfs(+0x1cf51)[0x564087a36f51]
./btrfs(btrfs_search_slot+0x11cd)[0x564087a3ca10]
./btrfs(+0x8caa5)[0x564087aa6aa5]
./btrfs(+0x8c7d4)[0x564087aa67d4]
./btrfs(+0x8c7d4)[0x564087aa67d4]
./btrfs(+0x8cdc3)[0x564087aa6dc3]
./btrfs(+0x8c5ce)[0x564087aa65ce]
./btrfs(btrfs_init_extent_tree+0xc83)[0x564087aa835b]
./btrfs(+0x8436d)[0x564087a9e36d]
./btrfs(handle_command_group+0x49)[0x564087a3217b]
./btrfs(main+0x94)[0x564087a32275]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xcd)[0x7fb85b01c7fd]
./btrfs(_start+0x2a)[0x564087a31e1a]
Aborted
gargamel:/var/local/src/btrfs-progs-josefbacik# git pull Already up-to-date.
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 30 lines · Marc MERLIN
Quoted 28 lines · Josef Bacik
Quoted 26 lines · Marc MERLIN
Quoted 10 lines · Josef Bacik
Quoted 9 lines · Marc MERLIN
Quoted 4 lines · Josef Bacik
I wonder if our delete thing is corrupting stuff. Can you re-run tree-recover, and then once that's done run init-extent-tree? I put some stuff to check block all the time to see if we're introducing the problem. Thanks,
Quoted 4 lines
Quoted 1 line
gargamel:/var/local/src/btrfs-progs-josefbacik# gdb./btrfs rescue tree-recover /dev/mapper/dshelf1Ok more targeted debugging to figure out where the problem is coming from specifically, but hooray I was right. Thanks,
searching 164623 for bad extents
processed 311296 of 63193088 possible bytes, 0%
searching 164624 for bad extentsFound an extent we don't have a block group for in the file
file
corrupt node: root=164624 root bytenr 15645019570176 commit bytenr 15645019602944 block=15645019586560 physical=18446744073709551615 slot=38, bad key order, current (7819 1 0) next (7819 1 0) corrupt node: root=164624 root bytenr 15645019570176 commit bytenr 15645019602944 block=15645019586560 physical=18446744073709551615 slot=38, bad key order, current (7819 1 0) next (7819 1 0)cmds/rescue-init-extent-tree.c:197:delete_item:BUG_ONcheck_path(&path)triggered, value -5
Quoted 4 lines
Quoted 1 line
Cool, must be in balance, lets try this again. Thanks,
Same?
Nope different spot, I added some more printf's to narrow down which path is messing up the key order. Thanks,
josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 2 lines · Josef Bacik
Nope different spot, I added some more printf's to narrow down which path is messing up the key order. Thanks,
processed 49152 of 49463296 possible bytes, 0%
searching 164623 for bad extents
processed 311296 of 63193088 possible bytes, 0%
searching 164624 for bad extents
Found an extent we don't have a block group for in the file
Flying/Flying Wild Alaska/Flying Wild Alaska - 02x04 Era Alaska Rises Again - 624x352 - 1012kbps - xvid.avi
push node left from right mid nritems 48 right nritems 0
setting parent slot 0 to [256 1 0]
corrupt node: root=164624 root bytenr 15645019684864 commit bytenr 15645019602944 block=15645019717632 physical=18446744073709551615 slot=38, bad key order, current (7819 1 0) next (7819 1 0) kernel-shared/ctree.c:1110: balance_level: BUG_ON check_path(path) triggered, value -5
./btrfs(+0x1cf51)[0x557391728f51]
./btrfs(btrfs_search_slot+0x12bc)[0x55739172eaff]
./btrfs(+0x8cb9c)[0x557391798b9c]
./btrfs(+0x8c8cb)[0x5573917988cb]
./btrfs(+0x8c8cb)[0x5573917988cb]
./btrfs(+0x8ceba)[0x557391798eba]
./btrfs(+0x8c6c5)[0x5573917986c5]
./btrfs(btrfs_init_extent_tree+0xc83)[0x55739179a452]
./btrfs(+0x84464)[0x557391790464]
./btrfs(handle_command_group+0x49)[0x55739172417b]
./btrfs(main+0x94)[0x557391724275]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xcd)[0x7f669efba7fd]
./btrfs(_start+0x2a)[0x557391723e1a]
Aborted
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 10 lines · Marc MERLIN
Quoted 2 lines · Josef Bacik
Nope different spot, I added some more printf's to narrow down which path is messing up the key order. Thanks,
processed 49152 of 49463296 possible bytes, 0%
searching 164623 for bad extents
processed 311296 of 63193088 possible bytes, 0%
searching 164624 for bad extents
Quoted 5 lines
Found an extent we don't have a block group for in the file
Flying/Flying Wild Alaska/Flying Wild Alaska - 02x04 Era Alaska Rises Again - 624x352 - 1012kbps - xvid.avi
push node left from right mid nritems 48 right nritems 0
setting parent slot 0 to [256 1 0]
corrupt node: root=164624 root bytenr 15645019684864 commit bytenr 15645019602944 block=15645019717632 physical=18446744073709551615 slot=38, bad key order, current (7819 1 0) next (7819 1 0)
Hmm, this sounds like we're not adjusting nritems, but the code definitely is, so I'm sort of nervous about what's going to be uncovered here. Added some more information,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 17 lines · Josef Bacik
Quoted 10 lines · Marc MERLIN
Quoted 2 lines · Josef Bacik
Nope different spot, I added some more printf's to narrow down which path is messing up the key order. Thanks,
processed 49152 of 49463296 possible bytes, 0% searching 164623 for bad extents
processed 311296 of 63193088 possible bytes, 0% searching 164624 for bad extentsQuoted 5 lines
Found an extent we don't have a block group for in the file
file
push node left from right mid nritems 48 right nritems 0
setting parent slot 0 to [256 1 0]
corrupt node: root=164624 root bytenr 15645019684864 commit bytenr 15645019602944 block=15645019717632 physical=18446744073709551615 slot=38, bad key order, current (7819 1 0) next (7819 1 0)
Quoted 3 lines
Hmm, this sounds like we're not adjusting nritems, but the code definitely is, so I'm sort of nervous about what's going to be uncovered here. Added some more information,
processed 49152 of 49463296 possible bytes, 0%
searching 164623 for bad extents
processed 311296 of 63193088 possible bytes, 0%
searching 164624 for bad extents
Found an extent we don't have a block group for in the file
file
push node left from right mid nritems 48 right nritems 0 parent 15645019684864 parent nritems 7
parent nritems is now 6
corrupt node: root=164624 root bytenr 15645019684864 commit bytenr 15645019602944 block=15645019717632 physical=18446744073709551615 slot=38, bad key order, current (7819 1 0) next (7819 1 0) kernel-shared/ctree.c:1042: balance_level: BUG_ON check_path(path) triggered, value -5
./btrfs(+0x1cf51)[0x557f0d136f51]
./btrfs(btrfs_search_slot+0x102a)[0x557f0d13c86d]
./btrfs(+0x8cc50)[0x557f0d1a6c50]
./btrfs(+0x8c97f)[0x557f0d1a697f]
./btrfs(+0x8c97f)[0x557f0d1a697f]
./btrfs(+0x8cf6e)[0x557f0d1a6f6e]
./btrfs(+0x8c779)[0x557f0d1a6779]
./btrfs(btrfs_init_extent_tree+0xc83)[0x557f0d1a8506]
./btrfs(+0x84518)[0x557f0d19e518]
./btrfs(handle_command_group+0x49)[0x557f0d13217b]
./btrfs(main+0x94)[0x557f0d132275]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xcd)[0x7f54f44bb7fd]
./btrfs(_start+0x2a)[0x557f0d131e1a]
Aborted
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 28 lines · Marc MERLIN
Quoted 17 lines · Josef Bacik
Quoted 10 lines · Marc MERLIN
Quoted 2 lines · Josef Bacik
Nope different spot, I added some more printf's to narrow down which path is messing up the key order. Thanks,
processed 49152 of 49463296 possible bytes, 0% searching 164623 for bad extents
processed 311296 of 63193088 possible bytes, 0% searching 164624 for bad extentsQuoted 5 lines
Found an extent we don't have a block group for in the file
file
push node left from right mid nritems 48 right nritems 0
setting parent slot 0 to [256 1 0]
corrupt node: root=164624 root bytenr 15645019684864 commit bytenr 15645019602944 block=15645019717632 physical=18446744073709551615 slot=38, bad key order, current (7819 1 0) next (7819 1 0)Quoted 3 lines
Hmm, this sounds like we're not adjusting nritems, but the code definitely is, so I'm sort of nervous about what's going to be uncovered here. Added some more information,
processed 49152 of 49463296 possible bytes, 0%
searching 164623 for bad extents
processed 311296 of 63193088 possible bytes, 0%
searching 164624 for bad extents
Quoted 6 lines
Found an extent we don't have a block group for in the file
file
push node left from right mid nritems 48 right nritems 0 parent 15645019684864 parent nritems 7
parent nritems is now 6
corrupt node: root=164624 root bytenr 15645019684864 commit bytenr 15645019602944 block=15645019717632 physical=18446744073709551615 slot=38, bad key order, current (7819 1 0) next (7819 1 0)kernel-shared/ctree.c:1042:balance_level:BUG_ONcheck_path(path)triggered, value -5
Hmm ok this may just be a new thing I have to check for in tree-recover. Give this a shot please, thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 9 lines · Josef Bacik
Quoted 6 lines
Found an extent we don't have a block group for in the file
file
push node left from right mid nritems 48 right nritems 0 parent 15645019684864 parent nritems 7
parent nritems is now 6
corrupt node: root=164624 root bytenr 15645019684864 commit bytenr 15645019602944 block=15645019717632 physical=18446744073709551615 slot=38, bad key order, current (7819 1 0) next (7819 1 0)kernel-shared/ctree.c:1042:balance_level:BUG_ONcheck_path(path)triggered, value -5Hmm ok this may just be a new thing I have to check for in tree-recover. Give this a shot please, thanks,
searching 164623 for bad extents
processed 311296 of 63193088 possible bytes, 0%
searching 164624 for bad extents
Found an extent we don't have a block group for in the file
filekernel-shared/ctree.c:1718: push_node_left: BUG_ON check_sibling_keys(dst, src) triggered, value 1 ./btrfs(+0x1cf51)[0x5597970f2f51]
./btrfs(+0x1ef96)[0x5597970f4f96]
./btrfs(btrfs_search_slot+0xee4)[0x5597970f8881]
./btrfs(+0x8cdb6)[0x559797162db6]
./btrfs(+0x8cae5)[0x559797162ae5]
./btrfs(+0x8cae5)[0x559797162ae5]
./btrfs(+0x8d0d4)[0x5597971630d4]
./btrfs(+0x8c8df)[0x5597971628df] ./btrfs(btrfs_init_extent_tree+0xc83)[0x55979716466c] ./btrfs(+0x8467e)[0x55979715a67e]
./btrfs(handle_command_group+0x49)[0x5597970ee17b] ./btrfs(main+0x94)[0x5597970ee275] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xcd)[0x7f6b6f4567fd] ./btrfs(_start+0x2a)[0x5597970ede1a]
Aborted
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 12 lines · Marc MERLIN
Quoted 9 lines · Josef Bacik
Quoted 6 lines
Found an extent we don't have a block group for in the file
file
push node left from right mid nritems 48 right nritems 0 parent 15645019684864 parent nritems 7
parent nritems is now 6
corrupt node: root=164624 root bytenr 15645019684864 commit bytenr 15645019602944 block=15645019717632 physical=18446744073709551615 slot=38, bad key order, current (7819 1 0) next (7819 1 0)kernel-shared/ctree.c:1042:balance_level:BUG_ONcheck_path(path)triggered, value -5Hmm ok this may just be a new thing I have to check for in tree-recover. Give this a shot please, thanks,
Quoted 6 lines
searching 164623 for bad extents
processed 311296 of 63193088 possible bytes, 0%
searching 164624 for bad extentsFound an extent we don't have a block group for in the file file
Ok I thought I caught this particular problem but I don't, so I fixed tree-recover to handle unordered keys in different nodes. Pull and build, run tree-recover. It's going to start deleting slots for unordered keys, picking whichever node is newer as the source of truth. You should only see this happen on 164624, if you see it fire a bunch right away stop it and send me the output so I can make sure I didn't screw anything up. I went over the code and diff a few times to make sure I didn't mess anything up, but I could have missed something. If that runs and fixes stuff, run it again just to make sure it doesn't find anything the second time. It shouldn't since I re-start the loop if we adjust things, but just in case. I assume this will blow up, but if it doesn't you can try running init-extent-tree again and see how that goes. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 5 lines · Josef Bacik
Ok I thought I caught this particular problem but I don't, so I fixed tree-recover to handle unordered keys in different nodes. Pull and build, run tree-recover. It's going to start deleting slots for unordered keys, picking whichever node is newer as the source of truth. You should only see this happen on 164624, if you see it fire
Quoted 8 lines
a bunch right away stop it and send me the output so I can make sure I didn't screw anything up. I went over the code and diff a few times to make sure I didn't mess anything up, but I could have missed something. If that runs and fixes stuff, run it again just to make sure it doesn't find anything the second time. It shouldn't since I re-start the loop if we adjust things, but just in case. I assume this will blow up, but if it doesn't you can try running init-extent-tree again and see how that goes. Thanks,
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue tree-recover /dev/mapper/dshelf1 FS_INFO IS 0x557d47c7ebc0 Couldn't find the last root for 8 FS_INFO AFTER IS 0x557d47c7ebc0 Checking root 2 bytenr 15645018587136 Checking root 4 bytenr 15645019078656 Checking root 5 bytenr 15645018161152 Checking root 7 bytenr 15645018570752 Checking root 9 bytenr 15645740367872 Checking root 161197 bytenr 15645018341376 Checking root 161199 bytenr 15645018652672 Checking root 161200 bytenr 15645018750976 Checking root 161889 bytenr 11160502124544 Checking root 162628 bytenr 15645018931200 Checking root 162632 bytenr 15645018210304 Checking root 163298 bytenr 15645019045888 Checking root 163302 bytenr 15645018685440 Checking root 163303 bytenr 15645019095040 Checking root 163316 bytenr 15645018996736 Checking root 163920 bytenr 15645019144192 Checking root 164620 bytenr 15645019275264 Checking root 164623 bytenr 15645019226112 Checking root 164624 bytenr 15645019602944 Checking root 164629 bytenr 15645485137920 Checking root 164631 bytenr 15645496983552 Checking root 164633 bytenr 15645526884352 Checking root 164823 bytenr 15645999005696 Tree recovery finished, you can run check now
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue init-extent-tree /dev/mapper/dshelf1 FS_INFO IS 0x564088b52bc0 Couldn't find the last root for 8 FS_INFO AFTER IS 0x564088b52bc0 Walking all our trees and pinning down the currently accessible blocks Clearing the extent root and re-init'ing the block groups deleting space cache for 11106814787584 (...) inserting block group 15932780969984 inserting block group 15933854711808 ERROR: Error reading data reloc tree -2
ERROR: failed to reinit the data reloc root
searching 1 for bad extents
processed 999424 of 0 possible bytes, 0%
searching 4 for bad extents
processed 163840 of 1064960 possible bytes, 15%
searching 5 for bad extents
processed 65536 of 10960896 possible bytes, 0%
searching 7 for bad extents
processed 16384 of 16570974208 possible bytes, 0%
searching 9 for bad extents
processed 16384 of 16384 possible bytes, 100%
searching 161197 for bad extents
processed 131072 of 108986368 possible bytes, 0%
searching 161199 for bad extents
processed 196608 of 49479680 possible bytes, 0%
searching 161200 for bad extents
processed 180224 of 254214144 possible bytes, 0%
searching 161889 for bad extents
processed 229376 of 49446912 possible bytes, 0%
searching 162628 for bad extents
processed 49152 of 49463296 possible bytes, 0%
searching 162632 for bad extents
processed 147456 of 94633984 possible bytes, 0%
searching 163298 for bad extents
processed 49152 of 49463296 possible bytes, 0%
searching 163302 for bad extents
processed 147456 of 94633984 possible bytes, 0%
searching 163303 for bad extents
processed 131072 of 76333056 possible bytes, 0%
searching 163316 for bad extents
processed 147456 of 108544000 possible bytes, 0%
searching 163920 for bad extents
processed 16384 of 108691456 possible bytes, 0%
searching 164620 for bad extents
processed 49152 of 49463296 possible bytes, 0%
searching 164623 for bad extents
processed 311296 of 63193088 possible bytes, 0%
searching 164624 for bad extents
Found an extent we don't have a block group for in the file
filekernel-shared/ctree.c:1718: push_node_left: BUG_ON check_sibling_keys(dst, src) triggered, value 1 ./btrfs(+0x1cf51)[0x56090b357f51]
./btrfs(+0x1ef96)[0x56090b359f96]
./btrfs(btrfs_search_slot+0xee4)[0x56090b35d881]
./btrfs(+0x8d592)[0x56090b3c8592]
./btrfs(+0x8d2c1)[0x56090b3c82c1]
./btrfs(+0x8d2c1)[0x56090b3c82c1]
./btrfs(+0x8d8b0)[0x56090b3c88b0]
./btrfs(+0x8d0bb)[0x56090b3c80bb] ./btrfs(btrfs_init_extent_tree+0xc83)[0x56090b3c9e48] ./btrfs(+0x8467e)[0x56090b3bf67e]
./btrfs(handle_command_group+0x49)[0x56090b35317b] ./btrfs(main+0x94)[0x56090b353275] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xcd)[0x7f37ada9c7fd] ./btrfs(_start+0x2a)[0x56090b352e1a]
Aborted
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 36 lines · Marc MERLIN
Quoted 5 lines · Josef Bacik
Ok I thought I caught this particular problem but I don't, so I fixed tree-recover to handle unordered keys in different nodes. Pull and build, run tree-recover. It's going to start deleting slots for unordered keys, picking whichever node is newer as the source of truth. You should only see this happen on 164624, if you see it fire
Quoted 8 lines
a bunch right away stop it and send me the output so I can make sure I didn't screw anything up. I went over the code and diff a few times to make sure I didn't mess anything up, but I could have missed something. If that runs and fixes stuff, run it again just to make sure it doesn't find anything the second time. It shouldn't since I re-start the loop if we adjust things, but just in case. I assume this will blow up, but if it doesn't you can try running init-extent-tree again and see how that goes. Thanks,
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue tree-recover /dev/mapper/dshelf1 FS_INFO IS 0x557d47c7ebc0 Couldn't find the last root for 8 FS_INFO AFTER IS 0x557d47c7ebc0 Checking root 2 bytenr 15645018587136 Checking root 4 bytenr 15645019078656 Checking root 5 bytenr 15645018161152 Checking root 7 bytenr 15645018570752 Checking root 9 bytenr 15645740367872 Checking root 161197 bytenr 15645018341376 Checking root 161199 bytenr 15645018652672 Checking root 161200 bytenr 15645018750976 Checking root 161889 bytenr 11160502124544 Checking root 162628 bytenr 15645018931200 Checking root 162632 bytenr 15645018210304 Checking root 163298 bytenr 15645019045888 Checking root 163302 bytenr 15645018685440 Checking root 163303 bytenr 15645019095040 Checking root 163316 bytenr 15645018996736 Checking root 163920 bytenr 15645019144192
Quoted 9 lines
Checking root 164620 bytenr 15645019275264 Checking root 164623 bytenr 15645019226112 Checking root 164624 bytenr 15645019602944 Checking root 164629 bytenr 15645485137920 Checking root 164631 bytenr 15645496983552 Checking root 164633 bytenr 15645526884352 Checking root 164823 bytenr 15645999005696 Tree recovery finished, you can run check now
Ah my bad, added all the repair code but not the code to notice it was broken, try again please. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 2 lines · Josef Bacik
Ah my bad, added all the repair code but not the code to notice it was broken, try again please. Thanks,
FS_INFO IS 0x5641505c3bc0
Couldn't find the last root for 8FS_INFO AFTER IS 0x5641505c3bc0
Checking root 2 bytenr 15645019553792
Checking root 4 bytenr 15645019078656
Checking root 5 bytenr 15645018161152
Checking root 7 bytenr 15645019521024
Checking root 9 bytenr 15645740367872
Checking root 161197 bytenr 15645018341376
Checking root 161199 bytenr 15645018652672
Checking root 161200 bytenr 15645018750976
Checking root 161889 bytenr 11160502124544
Checking root 162628 bytenr 15645018931200
Checking root 162632 bytenr 15645018210304
Checking root 163298 bytenr 15645019045888
Checking root 163302 bytenr 15645018685440
Checking root 163303 bytenr 15645019095040
Checking root 163316 bytenr 15645018996736
Checking root 163920 bytenr 15645019144192
Checking root 164620 bytenr 15645019275264
Checking root 164623 bytenr 15645019226112
Checking root 164624 bytenr 15645019602944
scanning, best has 0 found 0 bad
checking block 15645019602944 generation 2588164 fs info generation 2588170 trying bytenr 15645019602944 got 145 blocks 1 bad
checking block 15645502210048 generation 1601068 fs info generation 2588170 trying bytenr 15645502210048 got 146 blocks 1 bad
checking block 15645022208000 generation 1739020 fs info generation 2588170 scan for best root 164624 wants to use 15645502210048 as the root bytenr Repairing root 164624 bad_blocks 1 update 1
Segmentation fault
again, under gdb
scanning, best has 0 found 0 bad
checking block 15645019602944 generation 2588164 fs info generation 2588170 trying bytenr 15645019602944 got 145 blocks 1 bad
checking block 15645502210048 generation 1601068 fs info generation 2588170 trying bytenr 15645502210048 got 122 blocks 0 bad
checking block 15645022208000 generation 1739020 fs info generation 2588170 scan for best root 164624 wants to use 15645019602944 as the root bytenr Repairing root 164624 bad_blocks 1 update 1
we're pointing at an empty node, delete slot 1 in block 15645019602944
Program received signal SIGSEGV, Segmentation fault.repair_tree (fs_info=fs_info@entry=0x555555651bc0, root_info=root_info@entry=0x7fffffffdc20, eb=eb@entry=0x55555574bfb0)
at ./kernel-shared/ctree.h:2136
2136 BTRFS_SETGET_HEADER_FUNCS(header_generation, struct btrfs_header,
Signature · 4 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/ u
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 49 lines · Marc MERLIN
Quoted 2 lines · Josef Bacik
Ah my bad, added all the repair code but not the code to notice it was broken, try again please. Thanks,
FS_INFOIS0x5641505c3bc0
Couldn't find the last root for 8FS_INFOAFTER IS0x5641505c3bc0
Checking root 2 bytenr 15645019553792
Checking root 4 bytenr 15645019078656
Checking root 5 bytenr 15645018161152
Checking root 7 bytenr 15645019521024
Checking root 9 bytenr 15645740367872
Checking root 161197 bytenr 15645018341376
Checking root 161199 bytenr 15645018652672
Checking root 161200 bytenr 15645018750976
Checking root 161889 bytenr 11160502124544
Checking root 162628 bytenr 15645018931200
Checking root 162632 bytenr 15645018210304
Checking root 163298 bytenr 15645019045888
Checking root 163302 bytenr 15645018685440
Checking root 163303 bytenr 15645019095040
Checking root 163316 bytenr 15645018996736
Checking root 163920 bytenr 15645019144192
Checking root 164620 bytenr 15645019275264
Checking root 164623 bytenr 15645019226112
Checking root 164624 bytenr 15645019602944
scanning, best has 0 found 0 bad
checking block 15645019602944 generation 2588164 fs info generation 2588170 trying bytenr 15645019602944 got 145 blocks 1 bad
checking block 15645502210048 generation 1601068 fs info generation 2588170 trying bytenr 15645502210048 got 146 blocks 1 bad
checking block 15645022208000 generation 1739020 fs info generation 2588170 scan for best root 164624 wants to use 15645502210048 as the root bytenr Repairing root 164624bad_blocks1 update 1
Segmentation faultagain, under gdb
scanning, best has 0 found 0 bad
checking block 15645019602944 generation 2588164 fs info generation 2588170 trying bytenr 15645019602944 got 145 blocks 1 bad
checking block 15645502210048 generation 1601068 fs info generation 2588170 trying bytenr 15645502210048 got 122 blocks 0 bad
checking block 15645022208000 generation 1739020 fs info generation 2588170 scan for best root 164624 wants to use 15645019602944 as the root bytenr Repairing root 164624bad_blocks1 update 1
we're pointing at an empty node, delete slot 1 in block 15645019602944
Quoted 4 lines
Program received signal SIGSEGV, Segmentation fault.
repair_tree(fs_info=fs_info@entry=0x555555651bc0, root_info=root_info@entry=0x7fffffffdc20, eb=eb@entry=0x55555574bfb0)at ./kernel-shared/ctree.h:21362136 BTRFS_SETGET_HEADER_FUNCS(header_generation, struct
btrfs_header,
Hmm weird, I think I spotted it, give it a try again please. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 1 line · Josef Bacik
Hmm weird, I think I spotted it, give it a try again please. Thanks,
scanning, best has 0 found 0 bad
checking block 15645485137920 generation 1601075 fs info generation 2588170
trying bytenr 15645485137920 got 99 blocks 1 bad
scan for best root 164629 wants to use 15645485137920 as the root bytenr
Repairing root 164629 bad_blocks 1 update 1
we're pointing at an empty node, delete slot 2 in block 15645485137920 kernel-shared/extent_io.c:664: free_extent_buffer_internal: BUG_ON eb->refs < 0 triggered, value 1 /var/local/src/btrfs-progs-josefbacik/btrfs(+0x311a0)[0x5555555851a0] /var/local/src/btrfs-progs-josefbacik/btrfs(free_extent_buffer_nocache+0xe)[0x555555585a63] /var/local/src/btrfs-progs-josefbacik/btrfs(+0x8bb02)[0x5555555dfb02] /var/local/src/btrfs-progs-josefbacik/btrfs(+0x8c1ac)[0x5555555e01ac] /var/local/src/btrfs-progs-josefbacik/btrfs(btrfs_recover_trees+0x446)[0x5555555e0c4d] /var/local/src/btrfs-progs-josefbacik/btrfs(+0x8475a)[0x5555555d875a] /var/local/src/btrfs-progs-josefbacik/btrfs(handle_command_group+0x49)[0x55555556c17b] /var/local/src/btrfs-progs-josefbacik/btrfs(main+0x94)[0x55555556c275] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xcd)[0x7ffff78617fd] /var/local/src/btrfs-progs-josefbacik/btrfs(_start+0x2a)[0x55555556be1a]
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 13 lines · Marc MERLIN
Quoted 1 line · Josef Bacik
Hmm weird, I think I spotted it, give it a try again please. Thanks,
scanning, best has 0 found 0 bad
checking block 15645485137920 generation 1601075 fs info generation 2588170
trying bytenr 15645485137920 got 99 blocks 1 bad
scan for best root 164629 wants to use 15645485137920 as the root bytenr
Repairing root 164629bad_blocks1 update 1
we're pointing at an empty node, delete slot 2 in block 15645485137920kernel-shared/extent_io.c:664:free_extent_buffer_internal:BUG_ONeb->refs < 0triggered, value 1 /var/local/src/btrfs-progs-josefbacik/btrfs(+0x311a0)[0x5555555851a0] /var/local/src/btrfs-progs-josefbacik/btrfs(free_extent_buffer_nocache+0xe)[0x555555585a63]
Quoted 9 lines
/var/local/src/btrfs-progs-josefbacik/btrfs(+0x8bb02)[0x5555555dfb02] /var/local/src/btrfs-progs-josefbacik/btrfs(+0x8c1ac)[0x5555555e01ac] /var/local/src/btrfs-progs-josefbacik/btrfs(btrfs_recover_trees+0x446)[0x5555555e0c4d] /var/local/src/btrfs-progs-josefbacik/btrfs(+0x8475a)[0x5555555d875a] /var/local/src/btrfs-progs-josefbacik/btrfs(handle_command_group+0x49)[0x55555556c17b] /var/local/src/btrfs-progs-josefbacik/btrfs(main+0x94)[0x55555556c275] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xcd)[0x7ffff78617fd] /var/local/src/btrfs-progs-josefbacik/btrfs(_start+0x2a)[0x55555556be1a]
Sigh I had that thought and then didn't type it. Try again please, thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
In reply to Josef BacikQuoted 1 line · Josef Bacik
Hmm weird, I think I spotted it, give it a try again please. Thanks,
No more errors, and now init-extent-tree is deleting a lot of inodes again, let it continue?
FS_INFO IS 0x555555651bc0
Couldn't find the last root for 8 FS_INFO AFTER IS 0x555555651bc0
Checking root 2 bytenr 15645019553792 Checking root 4 bytenr 15645019078656 Checking root 5 bytenr 15645018161152 Checking root 7 bytenr 15645019521024 Checking root 9 bytenr 15645740367872 Checking root 161197 bytenr 15645018341376 Checking root 161199 bytenr 15645018652672 Checking root 161200 bytenr 15645018750976 Checking root 161889 bytenr 11160502124544 Checking root 162628 bytenr 15645018931200 Checking root 162632 bytenr 15645018210304 Checking root 163298 bytenr 15645019045888 Checking root 163302 bytenr 15645018685440 Checking root 163303 bytenr 15645019095040 Checking root 163316 bytenr 15645018996736 Checking root 163920 bytenr 15645019144192 Checking root 164620 bytenr 15645019275264 Checking root 164623 bytenr 15645019226112 Checking root 164624 bytenr 15645019602944 Checking root 164629 bytenr 15645485137920 Checking root 164631 bytenr 15645496983552 Checking root 164633 bytenr 15645526884352 Checking root 164823 bytenr 15645999005696 Tree recovery finished, you can run check now
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue init-extent-tree /dev/mapper/dshelf1 FS_INFO IS 0x56090c17bbc0 Couldn't find the last root for 8 FS_INFO AFTER IS 0x56090c17bbc0 Walking all our trees and pinning down the currently accessible blocks Clearing the extent root and re-init'ing the block groups deleting space cache for 11106814787584 deleting space cache for 11108962271232 deleting space cache for 11110036013056 deleting space cache for 11111109754880 (...) inserting block group 15932780969984 inserting block group 15933854711808 ERROR: Error reading data reloc tree -2
ERROR: failed to reinit the data reloc root searching 1 for bad extents
processed 999424 of 0 possible bytes, 0% searching 4 for bad extents
processed 163840 of 1064960 possible bytes, 15% searching 5 for bad extents
processed 65536 of 10960896 possible bytes, 0% searching 7 for bad extents
processed 16384 of 16570974208 possible bytes, 0% searching 9 for bad extents
processed 16384 of 16384 possible bytes, 100% searching 161197 for bad extents processed 131072 of 108986368 possible bytes, 0% searching 161199 for bad extents processed 196608 of 49479680 possible bytes, 0% searching 161200 for bad extents processed 180224 of 254214144 possible bytes, 0% searching 161889 for bad extents processed 229376 of 49446912 possible bytes, 0% searching 162628 for bad extents processed 49152 of 49463296 possible bytes, 0% searching 162632 for bad extents processed 147456 of 94633984 possible bytes, 0% searching 163298 for bad extents processed 49152 of 49463296 possible bytes, 0% searching 163302 for bad extents processed 147456 of 94633984 possible bytes, 0% searching 163303 for bad extents processed 131072 of 76333056 possible bytes, 0% searching 163316 for bad extents processed 147456 of 108544000 possible bytes, 0% searching 163920 for bad extents processed 16384 of 108691456 possible bytes, 0% searching 164620 for bad extents processed 49152 of 49463296 possible bytes, 0% searching 164623 for bad extents processed 311296 of 63193088 possible bytes, 0% searching 164624 for bad extents
Found an extent we don't have a block group for in the file
file
push node left from right mid 15645019717632 nritems 40 right 11160502419456 nritems 0 parent 15645019684864 parent nritems 5 parent nritems is now 4
(...)
searching 164624 for bad extents
processed 16384 of 109264896 possible bytes, 0%
Found an extent we don't have a block group for in the file
ref to path failed
Couldn't find any paths for this inode
Deleting [790, 108, 268435456] root 15645019471872 path top 15645019471872 top slot 1 leaf 15645019684864 slot 15
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 34 lines · Marc MERLIN
Quoted 1 line · Josef Bacik
Hmm weird, I think I spotted it, give it a try again please. Thanks,
No more errors, and now init-extent-tree is deleting a lot of inodes again, let it continue?
FS_INFOIS0x555555651bc0
Couldn't find the last root for 8FS_INFOAFTER IS0x555555651bc0Checking root 2 bytenr 15645019553792 Checking root 4 bytenr 15645019078656 Checking root 5 bytenr 15645018161152 Checking root 7 bytenr 15645019521024 Checking root 9 bytenr 15645740367872 Checking root 161197 bytenr 15645018341376 Checking root 161199 bytenr 15645018652672 Checking root 161200 bytenr 15645018750976 Checking root 161889 bytenr 11160502124544 Checking root 162628 bytenr 15645018931200 Checking root 162632 bytenr 15645018210304 Checking root 163298 bytenr 15645019045888 Checking root 163302 bytenr 15645018685440 Checking root 163303 bytenr 15645019095040 Checking root 163316 bytenr 15645018996736 Checking root 163920 bytenr 15645019144192 Checking root 164620 bytenr 15645019275264 Checking root 164623 bytenr 15645019226112 Checking root 164624 bytenr 15645019602944 Checking root 164629 bytenr 15645485137920 Checking root 164631 bytenr 15645496983552 Checking root 164633 bytenr 15645526884352 Checking root 164823 bytenr 15645999005696 Tree recovery finished, you can run check now
Quoted 13 lines
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue init-extent-tree /dev/mapper/dshelf1 FS_INFO IS 0x56090c17bbc0 Couldn't find the last root for 8 FS_INFO AFTER IS 0x56090c17bbc0 Walking all our trees and pinning down the currently accessible blocks Clearing the extent root and re-init'ing the block groups deleting space cache for 11106814787584 deleting space cache for 11108962271232 deleting space cache for 11110036013056 deleting space cache for 11111109754880 (...) inserting block group 15932780969984 inserting block group 15933854711808
Can you capture all of these lines and paste them? We found a bunch of old block groups but we may not have found everything. I might want to try manually going and looking for those chunks just so we can avoid mass deleting things. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 4 lines · Josef Bacik
Can you capture all of these lines and paste them? We found a bunch of old block groups but we may not have found everything. I might want to try manually going and looking for those chunks just so we can avoid mass deleting things. Thanks,
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 8 lines · Marc MERLIN
Quoted 4 lines · Josef Bacik
Can you capture all of these lines and paste them? We found a bunch of old block groups but we may not have found everything. I might want to try manually going and looking for those chunks just so we can avoid mass deleting things. Thanks,
Ok re-run it, it'll crash right as it tries to delete something, I need the bytenr it's complaining about. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 8 lines · Josef Bacik
Quoted 7 lines · Marc MERLIN
Quoted 4 lines · Josef Bacik
Can you capture all of these lines and paste them? We found a bunch of old block groups but we may not have found everything. I might want to try manually going and looking for those chunks just so we can avoid mass deleting things. Thanks,
Quoted 4 lines
Quoted 1 line
Ok re-run it, it'll crash right as it tries to delete something, I need the bytenr it's complaining about. Thanks,
inserting block group 15929559744512
inserting block group 15930633486336
inserting block group 15931707228160
inserting block group 15932780969984
inserting block group 15933854711808
ERROR: Error reading data reloc tree -2
ERROR: failed to reinit the data reloc root
searching 1 for bad extents
processed 999424 of 0 possible bytes, 0%
searching 4 for bad extents
processed 163840 of 1064960 possible bytes, 15%
searching 5 for bad extents
processed 65536 of 10960896 possible bytes, 0%
searching 7 for bad extents
processed 16384 of 16570974208 possible bytes, 0%
searching 9 for bad extents
processed 16384 of 16384 possible bytes, 100%
searching 161197 for bad extents
processed 131072 of 108986368 possible bytes, 0%
searching 161199 for bad extents
processed 196608 of 49479680 possible bytes, 0%
searching 161200 for bad extents
processed 180224 of 254214144 possible bytes, 0%
searching 161889 for bad extents
processed 229376 of 49446912 possible bytes, 0%
searching 162628 for bad extents
processed 49152 of 49463296 possible bytes, 0%
searching 162632 for bad extents
processed 147456 of 94633984 possible bytes, 0%
searching 163298 for bad extents
processed 49152 of 49463296 possible bytes, 0%
searching 163302 for bad extents
processed 147456 of 94633984 possible bytes, 0%
searching 163303 for bad extents
processed 131072 of 76333056 possible bytes, 0%
searching 163316 for bad extents
processed 147456 of 108544000 possible bytes, 0%
searching 163920 for bad extents
processed 16384 of 108691456 possible bytes, 0%
searching 164620 for bad extents
processed 49152 of 49463296 possible bytes, 0%
searching 164623 for bad extents
processed 311296 of 63193088 possible bytes, 0%
searching 164624 for bad extents
processed 49152 of 109264896 possible bytes, 0%
Found an extent we don't have a block group for in the file 1258276585472 cmds/rescue-init-extent-tree.c:246: process_leaf_item: BUG_ON bytenr triggered, value 1258276585472 ./btrfs(+0x8cef8)[0x5596c34b4ef8]
./btrfs(+0x8d685)[0x5596c34b5685]
./btrfs(+0x8d47c)[0x5596c34b547c]
./btrfs(+0x8da64)[0x5596c34b5a64]
./btrfs(+0x8d28c)[0x5596c34b528c] ./btrfs(btrfs_init_extent_tree+0xc83)[0x5596c34b6ffc] ./btrfs(+0x8467e)[0x5596c34ac67e]
./btrfs(handle_command_group+0x49)[0x5596c344017b]
./btrfs(main+0x94)[0x5596c3440275] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xcd)[0x7f4ff8fc97fd] ./btrfs(_start+0x2a)[0x5596c343fe1a]
Aborted
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 55 lines · Marc MERLIN
Quoted 8 lines · Josef Bacik
Quoted 7 lines · Marc MERLIN
Quoted 4 lines · Josef Bacik
Can you capture all of these lines and paste them? We found a bunch of old block groups but we may not have found everything. I might want to try manually going and looking for those chunks just so we can avoid mass deleting things. Thanks,
Quoted 4 lines
Quoted 1 line
Ok re-run it, it'll crash right as it tries to delete something, I need the bytenr it's complaining about. Thanks,
inserting block group 15929559744512
inserting block group 15930633486336
inserting block group 15931707228160
inserting block group 15932780969984
inserting block group 15933854711808
ERROR: Error reading data reloc tree -2ERROR: failed to reinit the data reloc root
searching 1 for bad extents
processed 999424 of 0 possible bytes, 0%
searching 4 for bad extents
processed 163840 of 1064960 possible bytes, 15%
searching 5 for bad extents
processed 65536 of 10960896 possible bytes, 0%
searching 7 for bad extents
processed 16384 of 16570974208 possible bytes, 0%
searching 9 for bad extents
processed 16384 of 16384 possible bytes, 100%
searching 161197 for bad extents
processed 131072 of 108986368 possible bytes, 0%
searching 161199 for bad extents
processed 196608 of 49479680 possible bytes, 0%
searching 161200 for bad extents
processed 180224 of 254214144 possible bytes, 0%
searching 161889 for bad extents
processed 229376 of 49446912 possible bytes, 0%
searching 162628 for bad extents
processed 49152 of 49463296 possible bytes, 0%
searching 162632 for bad extents
processed 147456 of 94633984 possible bytes, 0%
searching 163298 for bad extents
processed 49152 of 49463296 possible bytes, 0%
searching 163302 for bad extents
processed 147456 of 94633984 possible bytes, 0%
searching 163303 for bad extents
processed 131072 of 76333056 possible bytes, 0%
searching 163316 for bad extents
processed 147456 of 108544000 possible bytes, 0%
searching 163920 for bad extents
processed 16384 of 108691456 possible bytes, 0%
Quoted 8 lines
searching 164620 for bad extents
processed 49152 of 49463296 possible bytes, 0%
searching 164623 for bad extents
processed 311296 of 63193088 possible bytes, 0%
searching 164624 for bad extents
processed 49152 of 109264896 possible bytes, 0%
Found an extent we don't have a block group for in the file 1258276585472cmds/rescue-init-extent-tree.c:246:process_leaf_item:BUG_ONbytenrtriggered, value 1258276585472
Perfect, this isn't in our list, so we definitely don't have it. I've added some debugging to recover-chunks, can you run btrfs rescue recover-chunks and capture it's output? We may not find this chunk and in that case it needs to just delete stuff, but I'd like to try a little harder before we give up. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
In reply to Marc MERLINQuoted 9 lines · Marc MERLIN
Quoted 6 lines · Josef Bacik
Perfect, this isn't in our list, so we definitely don't have it. I've added some debugging to recover-chunks, can you run btrfs rescue recover-chunks and capture it's output? We may not find this chunk and in that case it needs to just delete stuff, but I'd like to try a little harder before we give up. Thanks,
Quoted 8 lines
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue recover-chunks /dev/mapper/dshelf1 FS_INFO IS 0x560392adcbc0 Couldn't find the last root for 8 FS_INFO AFTER IS 0x560392adcbc0 Walking all our trees and pinning down the currently accessible blocks No missing chunks, we're all done doing close??? Recover chunks succeeded, you can run check now
Alright it looks like we've gotten everything we're going to get, go ahead and let init-extent-tree do its thing. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
In reply to Marc MERLINQuoted 29 lines · Marc MERLIN
Quoted 3 lines · Josef Bacik
Ok I think I fixed that, but I also updated the loop to bulk delete as many bad items in a leaf at a time, hopefully this will make it go much faster. Expect more fireworks with the new code. Thanks,
Found an extent we don't have a block group for in the file 10741731311616
ref to path failed
Couldn't find any paths for this inode
Deleting [73101, 108, 0] root 15645020241920 path top 15645020241920 top slot 49 leaf 15645020766208 slot 26 nr 73searching 164629 for bad extents
processed 802816 of 108838912 possible bytes, 0%
Found an extent we don't have a block group for in the file 10741731311616Found an extent we don't have a block group for in the file 743378268160
Found an extent we don't have a block group for in the file 946736541696
ref to path failed
Couldn't find any paths for this inode
Deleting [73101, 108, 427687936] root 15645019537408 path top 15645019537408 top slot 49 leaf 15645020766208 slot 26 nr 148searching 164629 for bad extents
processed 802816 of 108838912 possible bytes, 0%
Found an extent we don't have a block group for in the file 946736541696
ref to path failed
Couldn't find any paths for this inode
Deleting [73101, 108, 1747189760] root 15645020241920 path top 15645020241920 top slot 49 leaf 15645020782592 slot 26 nr 1
Quoted 4 lines
searching 164629 for bad extents
processed 835584 of 108838912 possible bytes, 0%
corrupt leaf: root=164629 root bytenr 15645020241920 commit bytenr 0 block=15645020438528 physical=15054974140416 slot=0 level 0, invalid level for node, have 0 expect [1, 7]kernel-shared/ctree.c:148:btrfs_release_path:BUG_ONrettriggered, value -5
Ugh come on, this must get triggered because we clean up some stuff and then the corrupt blocks are suddenly right next to eachother. Can you re-run tree-recover and see if it deletes those keys? Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
In reply to Josef BacikQuoted 2 lines · Josef Bacik
Alright it looks like we've gotten everything we're going to get, go ahead and let init-extent-tree do its thing. Thanks,
Thanks.
Currently I see
searching 164624 for bad extents
processed 655360 of 109199360 possible bytes, 0%
Found an extent we don't have a block group for in the file 6708223688704
ref to path failed
Couldn't find any paths for this inode
Deleting [25834, 108, 15728640] root 15645019504640 path top 15645019504640 top slot 40 leaf 15645020176384 slot 2
Mostly those above, with a few of these:
searching 164624 for bad extents
processed 49152 of 109264896 possible bytes, 0%
Found an extent we don't have a block group for in the file 1259115134976
file
Deleting [796, 108, 454770688] root 15645018243072 path top 15645018243072 top slot 3 leaf 15645019176960 slot 43
Thanks for the progress report (0% here), I expect it will take many days. Will report back
Marc
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
In reply to Josef BacikQuoted 6 lines · Josef Bacik
Perfect, this isn't in our list, so we definitely don't have it. I've added some debugging to recover-chunks, can you run btrfs rescue recover-chunks and capture it's output? We may not find this chunk and in that case it needs to just delete stuff, but I'd like to try a little harder before we give up. Thanks,
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue recover-chunks /dev/mapper/dshelf1 FS_INFO IS 0x560392adcbc0 Couldn't find the last root for 8 FS_INFO AFTER IS 0x560392adcbc0 Walking all our trees and pinning down the currently accessible blocks No missing chunks, we're all done doing close??? Recover chunks succeeded, you can run check now
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue tree-recover /dev/mapper/dshelf1 FS_INFO IS 0x5621bb7a7bc0 Couldn't find the last root for 8 FS_INFO AFTER IS 0x5621bb7a7bc0 Checking root 2 bytenr 15645019504640 Checking root 4 bytenr 15645019078656 Checking root 5 bytenr 15645018161152 Checking root 7 bytenr 15645019439104 Checking root 9 bytenr 15645740367872 Checking root 161197 bytenr 15645018341376 Checking root 161199 bytenr 15645018652672 Checking root 161200 bytenr 15645018750976 Checking root 161889 bytenr 11160502124544 Checking root 162628 bytenr 15645018931200 Checking root 162632 bytenr 15645018210304 Checking root 163298 bytenr 15645019045888 Checking root 163302 bytenr 15645018685440 Checking root 163303 bytenr 15645019095040 Checking root 163316 bytenr 15645018996736 Checking root 163920 bytenr 15645019144192 Checking root 164620 bytenr 15645019275264 Checking root 164623 bytenr 15645019226112 Checking root 164624 bytenr 15645018226688 Checking root 164629 bytenr 15645485137920 Checking root 164631 bytenr 15645496983552 Checking root 164633 bytenr 15645526884352 Checking root 164823 bytenr 15645999005696 Tree recovery finished, you can run check now gargamel:/var/local/src/btrfs-progs-josefbacik#
Marc
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
In reply to Marc MERLINQuoted 22 lines · Marc MERLIN
Quoted 2 lines · Josef Bacik
Alright it looks like we've gotten everything we're going to get, go ahead and let init-extent-tree do its thing. Thanks,
Argh, it ran for a while and then it crashed, but I didn't have it run under gdb.
searching 164624 for bad extents
processed 655360 of 109084672 possible bytes, 0%
Found an extent we don't have a block group for in the file 12283412910080
ref to path failed
Couldn't find any paths for this inode
Deleting [26761, 108, 34557952] root 15645018243072 path top 15645018243072 top slot 40 leaf 15645020192768 slot 3searching 164624 for bad extents
processed 655360 of 109084672 possible bytes, 0%
Found an extent we don't have a block group for in the file 12283452309504
ref to path failed
Couldn't find any paths for this inode
Deleting [26761, 108, 43954176] root 15645019504640 path top 15645019504640 top slot 40 leaf 15645020028928 slot 3 Segmentation fault
Quoted 7 lines
re-running it thankfully crashed in the same place
processed 655360 of 109084672 possible bytes, 0%
Found an extent we don't have a block group for in the file 12283452309504
ref to path failed
Couldn't find any paths for this inode
Deleting [26761, 108, 43954176] root 15645019586560 path top 15645019586560 top slot 40 leaf 15645019602944 slot 3
Ok I think I fixed that, but I also updated the loop to bulk delete as many bad items in a leaf at a time, hopefully this will make it go much faster. Expect more fireworks with the new code. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
In reply to Marc MERLINQuoted 37 lines · Marc MERLIN
Quoted 35 lines · Josef Bacik
Quoted 33 lines · Marc MERLIN
Quoted 3 lines · Josef Bacik
Ok I think I fixed that, but I also updated the loop to bulk delete as many bad items in a leaf at a time, hopefully this will make it go much faster. Expect more fireworks with the new code. Thanks,
Found an extent we don't have a block group for in the file 10741731311616
ref to path failed
Couldn't find any paths for this inode
Deleting [73101, 108, 0] root 15645020241920 path top 15645020241920 top slot 49 leaf 15645020766208 slot 26 nr 73searching 164629 for bad extents
processed 802816 of 108838912 possible bytes, 0%
Found an extent we don't have a block group for in the file 10741731311616Found an extent we don't have a block group for in the file 743378268160
Found an extent we don't have a block group for in the file 946736541696
ref to path failed
Couldn't find any paths for this inode
Deleting [73101, 108, 427687936] root 15645019537408 path top 15645019537408 top slot 49 leaf 15645020766208 slot 26 nr 148searching 164629 for bad extents
processed 802816 of 108838912 possible bytes, 0%
Found an extent we don't have a block group for in the file 946736541696
ref to path failed
Couldn't find any paths for this inode
Deleting [73101, 108, 1747189760] root 15645020241920 path top 15645020241920 top slot 49 leaf 15645020782592 slot 26 nr 1searching 164629 for bad extents
processed 835584 of 108838912 possible bytes, 0%
corrupt leaf: root=164629 root bytenr 15645020241920 commit bytenr 0 block=15645020438528 physical=15054974140416 slot=0 level 0, invalid level for node, have 0 expect [1, 7]kernel-shared/ctree.c:148:btrfs_release_path:BUG_ONrettriggered, value -5
Quoted 6 lines
Quoted 3 lines
Ugh come on, this must get triggered because we clean up some stuff and then the corrupt blocks are suddenly right next to eachother. Can you re-run tree-recover and see if it deletes those keys? Thanks,
Sorry :(
Ok I think it's just the check is wrong, I removed the check, maybe I'll get lucky for once? Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
In reply to Josef BacikQuoted 30 lines · Josef Bacik
Quoted 29 lines · Marc MERLIN
Quoted 3 lines · Josef Bacik
Ok I think I fixed that, but I also updated the loop to bulk delete as many bad items in a leaf at a time, hopefully this will make it go much faster. Expect more fireworks with the new code. Thanks,
Found an extent we don't have a block group for in the file 10741731311616
ref to path failed
Couldn't find any paths for this inode
Deleting [73101, 108, 0] root 15645020241920 path top 15645020241920 top slot 49 leaf 15645020766208 slot 26 nr 73searching 164629 for bad extents
processed 802816 of 108838912 possible bytes, 0%
Found an extent we don't have a block group for in the file 10741731311616Found an extent we don't have a block group for in the file 743378268160
Found an extent we don't have a block group for in the file 946736541696
ref to path failed
Couldn't find any paths for this inode
Deleting [73101, 108, 427687936] root 15645019537408 path top 15645019537408 top slot 49 leaf 15645020766208 slot 26 nr 148searching 164629 for bad extents
processed 802816 of 108838912 possible bytes, 0%
Found an extent we don't have a block group for in the file 946736541696
ref to path failed
Couldn't find any paths for this inode
Deleting [73101, 108, 1747189760] root 15645020241920 path top 15645020241920 top slot 49 leaf 15645020782592 slot 26 nr 1
Quoted 8 lines
Quoted 4 lines
searching 164629 for bad extents
processed 835584 of 108838912 possible bytes, 0%
corrupt leaf: root=164629 root bytenr 15645020241920 commit bytenr 0 block=15645020438528 physical=15054974140416 slot=0 level 0, invalid level for node, have 0 expect [1, 7]kernel-shared/ctree.c:148:btrfs_release_path:BUG_ONrettriggered, value -5Ugh come on, this must get triggered because we clean up some stuff and then the corrupt blocks are suddenly right next to eachother. Can you re-run tree-recover and see if it deletes those keys? Thanks,
Sorry :(
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue tree-recover /dev/mapper/dshelf1 FS_INFO IS 0x559148b31bc0 Couldn't find the last root for 8 FS_INFO AFTER IS 0x559148b31bc0 Checking root 2 bytenr 15645020913664 Checking root 4 bytenr 15645019078656 Checking root 5 bytenr 15645018161152 Checking root 7 bytenr 15645019586560 Checking root 9 bytenr 15645740367872 Checking root 161197 bytenr 15645018341376 Checking root 161199 bytenr 15645018652672 Checking root 161200 bytenr 15645018750976 Checking root 161889 bytenr 11160502124544 Checking root 162628 bytenr 15645018931200 Checking root 162632 bytenr 15645018210304 Checking root 163298 bytenr 15645019045888 Checking root 163302 bytenr 15645018685440 Checking root 163303 bytenr 15645019095040 Checking root 163316 bytenr 15645018996736 Checking root 163920 bytenr 15645019144192 Checking root 164620 bytenr 15645019275264 Checking root 164623 bytenr 15645019226112 Checking root 164624 bytenr 15645018275840 Checking root 164629 bytenr 15645020241920 Checking root 164631 bytenr 15645496983552 Checking root 164633 bytenr 15645526884352 Checking root 164823 bytenr 15645999005696 Tree recovery finished, you can run check now
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
In reply to Josef BacikQuoted 2 lines · Josef Bacik
Alright it looks like we've gotten everything we're going to get, go ahead and let init-extent-tree do its thing. Thanks,
Argh, it ran for a while and then it crashed, but I didn't have it run under gdb.
searching 164624 for bad extents
processed 655360 of 109084672 possible bytes, 0%
Found an extent we don't have a block group for in the file 12283412910080
ref to path failed
Couldn't find any paths for this inode
Deleting [26761, 108, 34557952] root 15645018243072 path top 15645018243072 top slot 40 leaf 15645020192768 slot 3
searching 164624 for bad extents
processed 655360 of 109084672 possible bytes, 0%
Found an extent we don't have a block group for in the file 12283452309504
ref to path failed
Couldn't find any paths for this inode
Deleting [26761, 108, 43954176] root 15645019504640 path top 15645019504640 top slot 40 leaf 15645020028928 slot 3 Segmentation fault
re-running it thankfully crashed in the same place
processed 655360 of 109084672 possible bytes, 0%
Found an extent we don't have a block group for in the file 12283452309504
ref to path failed
Couldn't find any paths for this inode
Deleting [26761, 108, 43954176] root 15645019586560 path top 15645019586560 top slot 40 leaf 15645019602944 slot 3
Program received signal SIGSEGV, Segmentation fault.0x00007ffff78e1c8f in ?? () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt
#0 0x00007ffff78e1c8f in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00005555555862f9 in memcpy (__len=17, __src=<optimized out>, __dest=0x7fffffffd5d0)
at /usr/include/x86_64-linux-gnu/bits/string_fortified.h:29
#2 read_extent_buffer (eb=<optimized out>, dst=dst@entry=0x7fffffffd630, start=<optimized out>, len=len@entry=17)
at kernel-shared/extent_io.c:1002
#3 0x00005555555735aa in btrfs_node_key (nr=<optimized out>, disk_key=0x7fffffffd630, eb=<optimized out>)
at ./kernel-shared/ctree.h:2113
#4 btrfs_node_key_to_cpu (nr=<optimized out>, key=0x7fffffffd650, eb=<optimized out>) at ./kernel-shared/ctree.h:2113
#5 check_block (fs_info=0x555555651bc0, path=path@entry=0x7fffffffd760, level=level@entry=49) at kernel-shared/ctree.c:854
#6 0x0000555555577ecb in btrfs_del_items (trans=trans@entry=0x555555838ff0, root=root@entry=0x55555582c7b0,
path=path@entry=0x7fffffffd760, slot=40, nr=nr@entry=1) at kernel-shared/ctree.c:3163
#7 0x00005555555e18d1 in btrfs_del_item (path=0x7fffffffd760, root=0x55555582c7b0, trans=0x555555838ff0)
at ./kernel-shared/ctree.h:2781#8 delete_item (key=0x7fffffffd740, root=0x55555582c7b0) at cmds/rescue-init-extent-tree.c:208
#9 process_leaf_item (slot=<optimized out>, eb=0x0, root=0x55555582c7b0) at cmds/rescue-init-extent-tree.c:297 #10 look_for_bad_extents (root=root@entry=0x55555582c7b0, eb=eb@entry=0x555555834d90, current=current@entry=0x7fffffffda18)
at cmds/rescue-init-extent-tree.c:338
#11 0x00005555555e1468 in look_for_bad_extents (root=root@entry=0x55555582c7b0, eb=0x5555557a4bb0,
current=current@entry=0x7fffffffda18) at cmds/rescue-init-extent-tree.c:331
#12 0x00005555555e1a66 in clear_bad_extents (root=0x55555582c7b0) at cmds/rescue-init-extent-tree.c:362 #13 0x00005555555e1262 in foreach_root (fs_info=fs_info@entry=0x555555651bc0, cb=cb@entry=0x5555555e1a21 <clear_bad_extents>)
at cmds/rescue-init-extent-tree.c:152
#14 0x00005555555e2ffe in reinit_extent_tree (fs_info=0x555555651bc0) at cmds/rescue-init-extent-tree.c:873 #15 btrfs_init_extent_tree (path=path@entry=0x7fffffffe1ce "/dev/mapper/dshelf1") at cmds/rescue-init-extent-tree.c:1219 #16 0x00005555555d867e in cmd_rescue_init_extent_tree (cmd=<optimized out>, argc=<optimized out>, argv=<optimized out>)
at cmds/rescue.c:139
#17 0x000055555556c17b in cmd_execute (argv=0x7fffffffdeb8, argc=2, cmd=0x555555647c80 <cmd_struct_rescue_init_extent_tree>)
at cmds/commands.h:125#18 handle_command_group (cmd=<optimized out>, argc=2, argv=0x7fffffffdeb8) at btrfs.c:152
#19 0x000055555556c275 in cmd_execute (argv=0x7fffffffdeb0, argc=3, cmd=0x555555648cc0 <cmd_struct_rescue>) at cmds/commands.h:125 #20 main (argc=3, argv=0x7fffffffdeb0) at btrfs.c:405
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
In reply to Josef BacikQuoted 8 lines · Josef Bacik
Quoted 6 lines
Quoted 3 lines
Ugh come on, this must get triggered because we clean up some stuff and then the corrupt blocks are suddenly right next to eachother. Can you re-run tree-recover and see if it deletes those keys? Thanks,
Sorry :(
Ok I think it's just the check is wrong, I removed the check, maybe I'll get lucky for once? Thanks,
that helped.
(...)
Found an extent we don't have a block group for in the file 652682866688
Found an extent we don't have a block group for in the file 652682862592
Found an extent we don't have a block group for in the file 652723212288
Found an extent we don't have a block group for in the file 390870233088
ref to path failed
Couldn't find any paths for this inode
Deleting [69105, 108, 0] root 15645018226688 path top 15645018226688 top slot 11 leaf 15645020864512 slot 1 nr 118
searching 164823 for bad extents
processed 163840 of 63193088 possible bytes, 0%
Found an extent we don't have a block group for in the file 390870233088
Couldn't find any paths for this inode
Deleting [69134, 108, 36012032] root 15645018587136 path top 15645018587136 top slot 10 leaf 15645019553792 slot 45 nr 1
searching 164823 for bad extents
processed 196608 of 63193088 possible bytes, 0%
Recording extents for root 3
processed 180224 of 0 possible bytes, 0%
Recording extents for root 1
processed 999424 of 0 possible bytes, 0%
doing roots
Recording extents for root 4
processed 163840 of 1064960 possible bytes, 15%
Recording extents for root 5
processed 65536 of 10960896 possible bytes, 0%
Recording extents for root 7
processed 16384 of 16570974208 possible bytes, 0%
Recording extents for root 9
processed 16384 of 16384 possible bytes, 100%
Recording extents for root 161197
processed 131072 of 108986368 possible bytes, 0%
Recording extents for root 161199
processed 196608 of 49479680 possible bytes, 0%
Recording extents for root 161200
processed 180224 of 254214144 possible bytes, 0%
Recording extents for root 161889
processed 196608 of 49446912 possible bytes, 0%
Recording extents for root 162628
processed 49152 of 49463296 possible bytes, 0%
Recording extents for root 162632
processed 114688 of 94633984 possible bytes, 0%
Recording extents for root 163298
processed 49152 of 49463296 possible bytes, 0%
Recording extents for root 163302
processed 98304 of 94633984 possible bytes, 0%
Recording extents for root 163303
processed 131072 of 76333056 possible bytes, 0%
Recording extents for root 163316
processed 98304 of 108544000 possible bytes, 0%
Recording extents for root 163920
processed 16384 of 108691456 possible bytes, 0%
Recording extents for root 164620
processed 49152 of 49463296 possible bytes, 0%
Recording extents for root 164623
processed 311296 of 63193088 possible bytes, 0%
Recording extents for root 164624
processed 933888 of 108822528 possible bytes, 0%
Recording extents for root 164629
processed 622592 of 108838912 possible bytes, 0%
Recording extents for root 164631
ERROR: failed to insert the ref for the root block -17
wtf
it failed?? -17
doing close???
ERROR: attempt to start transaction over already running one
WARNING: reserved space leaked, flag=0x4 bytes_reserved=32768 extent buffer leak: start 15645019488256 len 16384
WARNING: dirty eb leak (aborted trans): start 15645019488256 len 16384 extent buffer leak: start 15645020061696 len 16384
WARNING: dirty eb leak (aborted trans): start 15645020061696 len 16384 Init extent tree failed
[Inferior 1 (process 7259) exited with code 0357]
So can I go back to check --repair /dev/mapper/dshelf1 ?
Marc
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 72 lines · Marc MERLIN
Quoted 8 lines · Josef Bacik
Quoted 6 lines
Quoted 3 lines
Ugh come on, this must get triggered because we clean up some stuff and then the corrupt blocks are suddenly right next to eachother. Can you re-run tree-recover and see if it deletes those keys? Thanks,
Sorry :(
Ok I think it's just the check is wrong, I removed the check, maybe I'll get lucky for once? Thanks,
that helped.
(...)
Found an extent we don't have a block group for in the file 652682866688Found an extent we don't have a block group for in the file 652682862592
Found an extent we don't have a block group for in the file 652723212288
Found an extent we don't have a block group for in the file 390870233088
ref to path failed
Couldn't find any paths for this inode
Deleting [69105, 108, 0] root 15645018226688 path top 15645018226688 top slot 11 leaf 15645020864512 slot 1 nr 118searching 164823 for bad extents
processed 163840 of 63193088 possible bytes, 0%
Found an extent we don't have a block group for in the file 390870233088
Couldn't find any paths for this inode
Deleting [69134, 108, 36012032] root 15645018587136 path top 15645018587136 top slot 10 leaf 15645019553792 slot 45 nr 1searching 164823 for bad extents
processed 196608 of 63193088 possible bytes, 0%
Recording extents for root 3
processed 180224 of 0 possible bytes, 0%
Recording extents for root 1
processed 999424 of 0 possible bytes, 0%
doing roots
Recording extents for root 4
processed 163840 of 1064960 possible bytes, 15%
Recording extents for root 5
processed 65536 of 10960896 possible bytes, 0%
Recording extents for root 7
processed 16384 of 16570974208 possible bytes, 0%
Recording extents for root 9
processed 16384 of 16384 possible bytes, 100%
Recording extents for root 161197
processed 131072 of 108986368 possible bytes, 0%
Recording extents for root 161199
processed 196608 of 49479680 possible bytes, 0%
Recording extents for root 161200
processed 180224 of 254214144 possible bytes, 0%
Recording extents for root 161889
processed 196608 of 49446912 possible bytes, 0%
Recording extents for root 162628
processed 49152 of 49463296 possible bytes, 0%
Recording extents for root 162632
processed 114688 of 94633984 possible bytes, 0%
Recording extents for root 163298
processed 49152 of 49463296 possible bytes, 0%
Recording extents for root 163302
processed 98304 of 94633984 possible bytes, 0%
Recording extents for root 163303
processed 131072 of 76333056 possible bytes, 0%
Recording extents for root 163316
processed 98304 of 108544000 possible bytes, 0%
Recording extents for root 163920
processed 16384 of 108691456 possible bytes, 0%
Recording extents for root 164620
processed 49152 of 49463296 possible bytes, 0%
Recording extents for root 164623
processed 311296 of 63193088 possible bytes, 0%
Quoted 8 lines
Recording extents for root 164624
processed 933888 of 108822528 possible bytes, 0% Recording extents for root 164629
processed 622592 of 108838912 possible bytes, 0% Recording extents for root 164631
ERROR: failed to insert the ref for the root block -17 wtf
it failed?? -17
That shouldn't happen. I reworked the code a bit and added some debugging, re-run init-extent-tree please. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
In reply to Josef BacikQuoted 3 lines · Josef Bacik
Ok I think I fixed that, but I also updated the loop to bulk delete as many bad items in a leaf at a time, hopefully this will make it go much faster. Expect more fireworks with the new code. Thanks,
Found an extent we don't have a block group for in the file 10741731311616
ref to path failed
Couldn't find any paths for this inode
Deleting [73101, 108, 0] root 15645020241920 path top 15645020241920 top slot 49 leaf 15645020766208 slot 26 nr 73
searching 164629 for bad extents
processed 802816 of 108838912 possible bytes, 0%
Found an extent we don't have a block group for in the file 10741731311616
Found an extent we don't have a block group for in the file 743378268160
Found an extent we don't have a block group for in the file 946736541696
ref to path failed
Couldn't find any paths for this inode
Deleting [73101, 108, 427687936] root 15645019537408 path top 15645019537408 top slot 49 leaf 15645020766208 slot 26 nr 148
searching 164629 for bad extents
processed 802816 of 108838912 possible bytes, 0%
Found an extent we don't have a block group for in the file 946736541696
ref to path failed
Couldn't find any paths for this inode
Deleting [73101, 108, 1747189760] root 15645020241920 path top 15645020241920 top slot 49 leaf 15645020782592 slot 26 nr 1
searching 164629 for bad extents
processed 835584 of 108838912 possible bytes, 0%
corrupt leaf: root=164629 root bytenr 15645020241920 commit bytenr 0 block=15645020438528 physical=15054974140416 slot=0 level 0, invalid level for node, have 0 expect [1, 7] kernel-shared/ctree.c:148: btrfs_release_path: BUG_ON ret triggered, value -5 /var/local/src/btrfs-progs-josefbacik/btrfs(btrfs_release_path+0x62)[0x555555573667] /var/local/src/btrfs-progs-josefbacik/btrfs(+0x8d1fe)[0x5555555e11fe] /var/local/src/btrfs-progs-josefbacik/btrfs(btrfs_init_extent_tree+0xc83)[0x5555555e2fd0] /var/local/src/btrfs-progs-josefbacik/btrfs(+0x845dd)[0x5555555d85dd] /var/local/src/btrfs-progs-josefbacik/btrfs(handle_command_group+0x49)[0x55555556c17b] /var/local/src/btrfs-progs-josefbacik/btrfs(main+0x94)[0x55555556c275]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xcd)[0x7ffff78617fd]
/var/local/src/btrfs-progs-josefbacik/btrfs(_start+0x2a)[0x55555556be1a]
Program received signal SIGABRT, Aborted. 0x00007ffff78768a1 in raise () from /lib/x86_64-linux-gnu/libc.so.6
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
In reply to Josef BacikQuoted 8 lines · Josef Bacik
Quoted 5 lines
processed 622592 of 108838912 possible bytes, 0% Recording extents for root 164631
ERROR: failed to insert the ref for the root block -17 wtf
it failed?? -17That shouldn't happen. I reworked the code a bit and added some debugging, re-run init-extent-tree please. Thanks,
processed 196608 of 63193088 possible bytes, 0% searching 18446744073709551607 for bad extents processed 16384 of 16384 possible bytes, 100% Recording extents for root 3
processed 180224 of 0 possible bytes, 0% Recording extents for root 1
ERROR: commit_root already set when starting transaction
ERROR: error starting transaction
doing close???
extent buffer leak: start 11160502779904 len 16384 extent buffer leak: start 15645018308608 len 16384 Init extent tree failed
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 11 lines · Marc MERLIN
Quoted 8 lines · Josef Bacik
Quoted 5 lines
processed 622592 of 108838912 possible bytes, 0% Recording extents for root 164631
ERROR: failed to insert the ref for the root block -17 wtf
it failed?? -17That shouldn't happen. I reworked the code a bit and added some debugging, re-run init-extent-tree please. Thanks,
Quoted 12 lines
processed 196608 of 63193088 possible bytes, 0% searching 18446744073709551607 for bad extents processed 16384 of 16384 possible bytes, 100% Recording extents for root 3
processed 180224 of 0 possible bytes, 0% Recording extents for root 1
ERROR:commit_rootalready set when starting transaction
ERROR: error starting transaction
doing close???
extent buffer leak: start 11160502779904 len 16384 extent buffer leak: start 15645018308608 len 16384 Init extent tree failed
I swear first thing I'm doing after all this is updating the shared code. Try again please,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 7 lines · Josef Bacik
Quoted 4 lines
doing close???
extent buffer leak: start 11160502779904 len 16384 extent buffer leak: start 15645018308608 len 16384 Init extent tree failedI swear first thing I'm doing after all this is updating the shared code. Try again please,
It went farther:
processed 163840 of 1064960 possible bytes, 15% Recording extents for root 5
processed 65536 of 10960896 possible bytes, 0% Recording extents for root 7
processed 16384 of 16570974208 possible bytes, 0% Recording extents for root 9
processed 16384 of 16384 possible bytes, 100% Recording extents for root 161197
processed 131072 of 108986368 possible bytes, 0% Recording extents for root 161199
processed 196608 of 49479680 possible bytes, 0% Recording extents for root 161200
processed 180224 of 254214144 possible bytes, 0% Recording extents for root 161889
processed 196608 of 49446912 possible bytes, 0% Recording extents for root 162628
processed 49152 of 49463296 possible bytes, 0% Recording extents for root 162632
processed 114688 of 94633984 possible bytes, 0% Recording extents for root 163298
processed 49152 of 49463296 possible bytes, 0% Recording extents for root 163302
processed 98304 of 94633984 possible bytes, 0% Recording extents for root 163303
processed 131072 of 76333056 possible bytes, 0% Recording extents for root 163316
processed 98304 of 108544000 possible bytes, 0% Recording extents for root 163920
processed 16384 of 108691456 possible bytes, 0% Recording extents for root 164620
processed 49152 of 49463296 possible bytes, 0% Recording extents for root 164623
processed 311296 of 63193088 possible bytes, 0% Recording extents for root 164624
processed 933888 of 108822528 possible bytes, 0% Recording extents for root 164629
processed 622592 of 108838912 possible bytes, 0% Recording extents for root 164631
processed 16384 of 49430528 possible bytes, 0% Recording extents for root 164633
processed 16384 of 75694080 possible bytes, 0% Recording extents for root 164823
processed 131072 of 63193088 possible bytes, 0% Recording extents for root 18446744073709551607 processed 16384 of 16384 possible bytes, 100%
doing block accounting
couldn't find a block group at bytenr 20971520 total left 180224 cache 11106814787584 11107888529408 in range no
cache 11108962271232 11110036013056 in range no
cache 11110036013056 11111109754880 in range no
(...)
cache 15929559744512 15930633486336 in range no
cache 15930633486336 15931707228160 in range no
cache 15931707228160 15932780969984 in range no
cache 15932780969984 15933854711808 in range no
cache 15933854711808 15934928453632 in range no
ERROR: update block group failed 20971520 180224 ret -1 FIX BLOCK ACCOUNTING FAILED -1
ERROR: The commit failed???? -1
doing close???
ERROR: commit_root already set when starting transaction extent buffer leak: start 15645020913664 len 16384 Init extent tree failed
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 62 lines · Marc MERLIN
Quoted 7 lines · Josef Bacik
Quoted 4 lines
doing close???
extent buffer leak: start 11160502779904 len 16384 extent buffer leak: start 15645018308608 len 16384 Init extent tree failedI swear first thing I'm doing after all this is updating the shared code. Try again please,
It went farther:
processed 163840 of 1064960 possible bytes, 15% Recording extents for root 5
processed 65536 of 10960896 possible bytes, 0% Recording extents for root 7
processed 16384 of 16570974208 possible bytes, 0% Recording extents for root 9
processed 16384 of 16384 possible bytes, 100% Recording extents for root 161197
processed 131072 of 108986368 possible bytes, 0% Recording extents for root 161199
processed 196608 of 49479680 possible bytes, 0% Recording extents for root 161200
processed 180224 of 254214144 possible bytes, 0% Recording extents for root 161889
processed 196608 of 49446912 possible bytes, 0% Recording extents for root 162628
processed 49152 of 49463296 possible bytes, 0% Recording extents for root 162632
processed 114688 of 94633984 possible bytes, 0% Recording extents for root 163298
processed 49152 of 49463296 possible bytes, 0% Recording extents for root 163302
processed 98304 of 94633984 possible bytes, 0% Recording extents for root 163303
processed 131072 of 76333056 possible bytes, 0% Recording extents for root 163316
processed 98304 of 108544000 possible bytes, 0% Recording extents for root 163920
processed 16384 of 108691456 possible bytes, 0% Recording extents for root 164620
processed 49152 of 49463296 possible bytes, 0% Recording extents for root 164623
processed 311296 of 63193088 possible bytes, 0% Recording extents for root 164624
processed 933888 of 108822528 possible bytes, 0% Recording extents for root 164629
processed 622592 of 108838912 possible bytes, 0% Recording extents for root 164631
processed 16384 of 49430528 possible bytes, 0% Recording extents for root 164633
processed 16384 of 75694080 possible bytes, 0% Recording extents for root 164823
processed 131072 of 63193088 possible bytes, 0% Recording extents for root 18446744073709551607 processed 16384 of 16384 possible bytes, 100%
doing block accounting
couldn't find a block group at bytenr 20971520 total left 180224 cache 11106814787584 11107888529408 in range no
cache 11108962271232 11110036013056 in range no
cache 11110036013056 11111109754880 in range no
Quoted 8 lines
(...)
cache 15929559744512 15930633486336 in range no cache 15930633486336 15931707228160 in range no cache 15931707228160 15932780969984 in range no cache 15932780969984 15933854711808 in range no cache 15933854711808 15934928453632 in range no
ERROR: update block group failed 20971520 180224 ret -1 FIX BLOCK ACCOUNTING FAILED -1
Oops I think this is a system chunk, I've added some code to do the right thing, can you give this a whirl and see if it fixes it? Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 3 lines · Josef Bacik
Oops I think this is a system chunk, I've added some code to do the right thing, can you give this a whirl and see if it fixes it? Thanks,
Better :)
processed 196608 of 63193088 possible bytes, 0%
searching 18446744073709551607 for bad extents
processed 16384 of 16384 possible bytes, 100%
Recording extents for root 3
processed 180224 of 0 possible bytes, 0%
Recording extents for root 1
processed 999424 of 0 possible bytes, 0%
doing roots
Recording extents for root 4
processed 163840 of 1064960 possible bytes, 15%
Recording extents for root 5
processed 65536 of 10960896 possible bytes, 0%
Recording extents for root 7
processed 16384 of 16570974208 possible bytes, 0%
Recording extents for root 9
processed 16384 of 16384 possible bytes, 100%
Recording extents for root 161197
processed 131072 of 108986368 possible bytes, 0%
Recording extents for root 161199
processed 196608 of 49479680 possible bytes, 0%
Recording extents for root 161200
processed 180224 of 254214144 possible bytes, 0%
Recording extents for root 161889
processed 196608 of 49446912 possible bytes, 0%
Recording extents for root 162628
processed 49152 of 49463296 possible bytes, 0%
Recording extents for root 162632
processed 114688 of 94633984 possible bytes, 0%
Recording extents for root 163298
processed 49152 of 49463296 possible bytes, 0%
Recording extents for root 163302
processed 98304 of 94633984 possible bytes, 0%
Recording extents for root 163303
processed 131072 of 76333056 possible bytes, 0%
Recording extents for root 163316
processed 98304 of 108544000 possible bytes, 0%
Recording extents for root 163920
processed 16384 of 108691456 possible bytes, 0%
Recording extents for root 164620
processed 49152 of 49463296 possible bytes, 0%
Recording extents for root 164623
processed 311296 of 63193088 possible bytes, 0%
Recording extents for root 164624
processed 933888 of 108822528 possible bytes, 0%
Recording extents for root 164629
processed 622592 of 108838912 possible bytes, 0%
Recording extents for root 164631
processed 16384 of 49430528 possible bytes, 0%
Recording extents for root 164633
processed 16384 of 75694080 possible bytes, 0%
Recording extents for root 164823
processed 131072 of 63193088 possible bytes, 0%
Recording extents for root 18446744073709551607
processed 16384 of 16384 possible bytes, 100%
doing block accounting
doing close???
Init extent tree finished, you can run check now
[Inferior 1 (process 12822) exited normally]
Do I run check --repair now?
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 69 lines · Marc MERLIN
Quoted 3 lines · Josef Bacik
Oops I think this is a system chunk, I've added some code to do the right thing, can you give this a whirl and see if it fixes it? Thanks,
Better :)
processed 196608 of 63193088 possible bytes, 0%
searching 18446744073709551607 for bad extents
processed 16384 of 16384 possible bytes, 100%
Recording extents for root 3
processed 180224 of 0 possible bytes, 0%
Recording extents for root 1
processed 999424 of 0 possible bytes, 0%
doing roots
Recording extents for root 4
processed 163840 of 1064960 possible bytes, 15%
Recording extents for root 5
processed 65536 of 10960896 possible bytes, 0%
Recording extents for root 7
processed 16384 of 16570974208 possible bytes, 0%
Recording extents for root 9
processed 16384 of 16384 possible bytes, 100%
Recording extents for root 161197
processed 131072 of 108986368 possible bytes, 0%
Recording extents for root 161199
processed 196608 of 49479680 possible bytes, 0%
Recording extents for root 161200
processed 180224 of 254214144 possible bytes, 0%
Recording extents for root 161889
processed 196608 of 49446912 possible bytes, 0%
Recording extents for root 162628
processed 49152 of 49463296 possible bytes, 0%
Recording extents for root 162632
processed 114688 of 94633984 possible bytes, 0%
Recording extents for root 163298
processed 49152 of 49463296 possible bytes, 0%
Recording extents for root 163302
processed 98304 of 94633984 possible bytes, 0%
Recording extents for root 163303
processed 131072 of 76333056 possible bytes, 0%
Recording extents for root 163316
processed 98304 of 108544000 possible bytes, 0%
Recording extents for root 163920
processed 16384 of 108691456 possible bytes, 0%
Recording extents for root 164620
processed 49152 of 49463296 possible bytes, 0%
Recording extents for root 164623
processed 311296 of 63193088 possible bytes, 0%
Recording extents for root 164624
processed 933888 of 108822528 possible bytes, 0%
Recording extents for root 164629
processed 622592 of 108838912 possible bytes, 0%
Recording extents for root 164631
processed 16384 of 49430528 possible bytes, 0%
Recording extents for root 164633
processed 16384 of 75694080 possible bytes, 0%
Recording extents for root 164823
processed 131072 of 63193088 possible bytes, 0%
Recording extents for root 18446744073709551607
processed 16384 of 16384 possible bytes, 100%
doing block accounting
doing close???
Init extent tree finished, you can run check now
[Inferior 1 (process 12822) exited normally]
Quoted 1 line
Do I run check --repair now?
Just check, no --repair. I want to make sure the only thing that is missing is the corresponding device extents for the chunks we recovered. I'm going to start writing the code to do that now, but if there's any errors other than missing device extents then we need to figure out what those problems are and what to do about them. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 6 lines · Josef Bacik
Just check, no --repair. I want to make sure the only thing that is missing is the corresponding device extents for the chunks we recovered. I'm going to start writing the code to do that now, but if there's any errors other than missing device extents then we need to figure out what those problems are and what to do about them. Thanks,
woah, it ran in less than 1 minute, that's amazing (I remember when it took days)
Partial output
[1/7] checking root items
checksum verify failed on 15645959372800 wanted 0x847c08bf found 0x17a9e2f1
checksum verify failed on 15645959389184 wanted 0x3cc757a7 found 0x3b4eff03
checksum verify failed on 15645681451008 wanted 0x7516a3d9 found 0x97f7437d
checksum verify failed on 15646003970048 wanted 0xf18cc579 found 0x1bc64584
checksum verify failed on 15645867720704 wanted 0x14cc427a found 0x9f516106
checksum verify failed on 15645529604096 wanted 0xd11e24d5 found 0x8d01bc00
checksum verify failed on 15645781344256 wanted 0xb81e3df4 found 0xb5c70846
checksum verify failed on 15645959356416 wanted 0x2fa8537e found 0x90ac1f4e
(...)
[2/7] checking extents
checksum verify failed on 15645930487808 wanted 0xced0911a found 0x7124e4f9
Chunk[256, 228, 11106814787584] stripe[1, 11121855561728] is not found in dev extent Chunk[256, 228, 11108962271232] stripe[1, 11124003045376] is not found in dev extent Chunk[256, 228, 11110036013056] stripe[1, 11125076787200] is not found in dev extent Chunk[256, 228, 11111109754880] stripe[1, 11126150529024] is not found in dev extent Chunk[256, 228, 11112183496704] stripe[1, 11127224270848] is not found in dev extent Chunk[256, 228, 11113257238528] stripe[1, 11128298012672] is not found in dev extent Chunk[256, 228, 11114330980352] stripe[1, 11129371754496] is not found in dev extent Chunk[256, 228, 11115404722176] stripe[1, 11130445496320] is not found in dev extent Chunk[256, 228, 11116478464000] stripe[1, 11131519238144] is not found in dev extent Chunk[256, 228, 11118625947648] stripe[1, 11133666721792] is not found in dev extent Chunk[256, 228, 11119699689472] stripe[1, 11134740463616] is not found in dev extent
(...)
Chunk[256, 228, 15931707228160] stripe[1, 14489109921792] is not found in dev extent Chunk[256, 228, 15932780969984] stripe[1, 14490183663616] is not found in dev extent Chunk[256, 228, 15933854711808] stripe[1, 14496626114560] is not found in dev extent
Block group[20971520, 8388608] (flags = 34) didn't find the relative chunk.
Device extent[1, 709781094400, 1073741824] didn't find the relative chunk.
Device extent[1, 710854836224, 1073741824] didn't find the relative chunk.
Device extent[1, 711928578048, 1073741824] didn't find the relative chunk.
Device extent[1, 713002319872, 1073741824] didn't find the relative chunk.
(...)
Device extent[1, 14951892647936, 1073741824] didn't find its device.
Device extent[1, 14952966389760, 1073741824] didn't find its device.
Device extent[1, 14954040131584, 1073741824] didn't find its device.
Device extent[1, 14955113873408, 1073741824] didn't find its device.
Device extent[1, 14956187615232, 1073741824] didn't find its device.
Device extent[1, 14957261357056, 1073741824] didn't find its device.
Device extent[1, 14958335098880, 1073741824] didn't find its device.
Device extent[1, 14959408840704, 1073741824] didn't find its device.
Device extent[1, 14960482582528, 1073741824] didn't find its device.
Device extent[1, 14961556324352, 1073741824] didn't find its device.
Device extent[1, 14962630066176, 1073741824] didn't find its device.
Device extent[1, 14963703808000, 1073741824] didn't find its device.
Device extent[1, 14964777549824, 1073741824] didn't find its device.
Device extent[1, 14965851291648, 1073741824] didn't find its device.
Device extent[1, 14966925033472, 1073741824] didn't find its device.
Device extent[1, 14967998775296, 1073741824] didn't find its device.
Device extent[1, 14969072517120, 1073741824] didn't find its device.
Device extent[1, 14970146258944, 1073741824] didn't find its device.
Device extent[1, 14971220000768, 1073741824] didn't find its device.
Device extent[1, 14972293742592, 1073741824] didn't find its device.
Device extent[1, 14973367484416, 1073741824] didn't find its device.
Device extent[1, 14974441226240, 1073741824] didn't find its device.
Device extent[1, 14975514968064, 1073741824] didn't find its device.
Device extent[1, 14976588709888, 1073741824] didn't find its device.
Device extent[1, 14977662451712, 1073741824] didn't find its device.
Device extent[1, 14978736193536, 1073741824] didn't find its device.
Device extent[1, 14979809935360, 1073741824] didn't find its device.
Device extent[1, 14980883677184, 1073741824] didn't find its device.
Device extent[1, 14981957419008, 1073741824] didn't find its device.
Device extent[1, 14983031160832, 1073741824] didn't find its device.
Device extent[1, 14984104902656, 1073741824] didn't find its device.
Device extent[1, 14985178644480, 1073741824] didn't find its device.
Device extent[1, 14986252386304, 1073741824] didn't find its device.
Device extent[1, 14987326128128, 1073741824] didn't find its device.
Device extent[1, 14988399869952, 1073741824] didn't find its device.
Device extent[1, 14989473611776, 1073741824] didn't find its device.
Device extent[1, 14990547353600, 1073741824] didn't find its device.
Device extent[1, 14991621095424, 1073741824] didn't find its device.
Device extent[1, 14992694837248, 1073741824] didn't find its device.
Device extent[1, 14993768579072, 1073741824] didn't find its device.
Device extent[1, 14994842320896, 1073741824] didn't find its device.
Device extent[1, 14995916062720, 1073741824] didn't find its device.
Device extent[1, 14996989804544, 1073741824] didn't find its device.
Device extent[1, 14998063546368, 1073741824] didn't find its device.
Device extent[1, 14999137288192, 1073741824] didn't find its device.
Device extent[1, 15000211030016, 1073741824] didn't find its device.
Device extent[1, 15001284771840, 1073741824] didn't find its device.
Device extent[1, 15002358513664, 1073741824] didn't find its device.
Device extent[1, 15003432255488, 1073741824] didn't find its device.
Device extent[1, 15004505997312, 1073741824] didn't find its device.
Device extent[1, 15005579739136, 1073741824] didn't find its device.
Device extent[1, 15006653480960, 1073741824] didn't find its device.
Device extent[1, 15007727222784, 1073741824] didn't find its device.
Device extent[1, 15008800964608, 1073741824] didn't find its device.
Device extent[1, 15009874706432, 1073741824] didn't find its device.
Device extent[1, 15010948448256, 1073741824] didn't find its device.
Device extent[1, 15012022190080, 1073741824] didn't find its device.
Device extent[1, 15013095931904, 1073741824] didn't find its device.
Device extent[1, 15014169673728, 1073741824] didn't find its device.
unresolved ref dir 55138 index 46 namelen 26 name foo filetype 1 errors 5, no dir item, no inode ref
root 161199 inode 55184 errors 1, no inode item
unresolved ref dir 55138 index 47 namelen 47 name foo filetype 1 errors 5, no dir item, no inode ref
root 161199 inode 55185 errors 1, no inode item
unresolved ref dir 55138 index 48 namelen 45 name foo filetype 1 errors 5, no dir item, no inode ref
root 161199 inode 55186 errors 1, no inode item
unresolved ref dir 55138 index 49 namelen 42 name foo filetype 1 errors 5, no dir item, no inode ref
root 161199 inode 55187 errors 1, no inode item
unresolved ref dir 55138 index 50 namelen 51 name foo filetype 1 errors 5, no dir item, no inode ref
root 161199 inode 55188 errors 1, no inode item
unresolved ref dir 55138 index 51 namelen 47 name foo filetype 1 errors 5, no dir item, no inode ref
root 161199 inode 55403 errors 2500, file extent discount, nbytes wrong, link count wrong root 161889 inode 70800 errors 2001, no inode item, link count wrong
unresolved ref dir 3327 index 33 namelen 15 name foo filetype 2 errors 4, no inode ref
root 161889 inode 71665 errors 2001, no inode item, link count wrong
unresolved ref dir 3327 index 35 namelen 13 name foo filetype 2 errors 4, no inode ref
root 161889 inode 71860 errors 2001, no inode item, link count wrong
unresolved ref dir 3327 index 36 namelen 41 name foo filetype 2 errors 4, no inode ref
root 161889 inode 71905 errors 2001, no inode item, link count wrong
unresolved ref dir 3327 index 37 namelen 69 name foo filetype 2 errors 4, no inode ref
root 161889 inode 72375 errors 2001, no inode item, link count wrong
unresolved ref dir 3327 index 38 namelen 14 name foo filetype 2 errors 4, no inode ref
root 161889 inode 72543 errors 2001, no inode item, link count wrong
unresolved ref dir 3327 index 39 namelen 12 name foo filetype 2 errors 4, no inode ref
root 161889 inode 72593 errors 2001, no inode item, link count wrong
unresolved ref dir 3327 index 40 namelen 4 name foo filetype 2 errors 4, no inode ref
root 161889 inode 72723 errors 2001, no inode item, link count wrong
unresolved ref dir 3327 index 45 namelen 15 name foo filetype 2 errors 4, no inode ref
root 161889 inode 72724 errors 2001, no inode item, link count wrong
unresolved ref dir 3327 index 46 namelen 29 name foo filetype 2 errors 4, no inode ref
root 161889 inode 72738 errors 2001, no inode item, link count wrong
unresolved ref dir 3327 index 47 namelen 25 name foo filetype 2 errors 4, no inode ref
root 161889 inode 72779 errors 2001, no inode item, link count wrong
unresolved ref dir 3327 index 48 namelen 33 name foo filetype 1 errors 4, no inode ref
root 161889 inode 72780 errors 2001, no inode item, link count wrong
unresolved ref dir 3327 index 49 namelen 33 name foo filetype 1 errors 4, no inode ref
root 161889 inode 72781 errors 2001, no inode item, link count wrong
unresolved ref dir 3327 index 50 namelen 33 name foo filetype 1 errors 4, no inode ref
root 161889 inode 72782 errors 2001, no inode item, link count wrong
unresolved ref dir 3327 index 51 namelen 21 name foo filetype 1 errors 4, no inode ref
root 161889 inode 72783 errors 2001, no inode item, link count wrong
unresolved ref dir 3327 index 52 namelen 40 name foo filetype 1 errors 4, no inode ref
root 161889 inode 72784 errors 2001, no inode item, link count wrong
unresolved ref dir 3327 index 53 namelen 40 name foo filetype 1 errors 4, no inode ref
root 162628 root dir 256 not found
root 162628 inode 49389 errors 2500, file extent discount, nbytes wrong, link count wrong index, no inode ref
root 163302 inode 11222 errors 2001, no inode item, link count wrong
unresolved ref dir 11179 index 0 namelen 43 name foo filetype 1 errors 6, no dir index, no inode ref
root 163302 inode 11232 errors 2001, no inode item, link count wrong
unresolved ref dir 11179 index 0 namelen 75 name foo filetype 1 errors 6, no dir index, no inode ref
root 163302 inode 11233 errors 2001, no inode item, link count wrong
unresolved ref dir 11179 index 0 namelen 41 name foo filetype 1 errors 6, no dir index, no inode ref
root 163302 inode 11239 errors 2001, no inode item, link count wrong
unresolved ref dir 11179 index 0 namelen 82 name foo filetype 1 errors 6, no dir index, no inode ref
root 163302 inode 11240 errors 2001, no inode item, link count wrong
unresolved ref dir 11179 index 0 namelen 51 name foo filetype 1 errors 6, no dir index, no inode ref
root 163302 inode 11246 errors 2001, no inode item, link count wrong
unresolved ref dir 11179 index 0 namelen 56 name foo filetype 1 errors 6, no dir index, no inode ref
root 163302 inode 11249 errors 2001, no inode item, link count wrong
unresolved ref dir 11179 index 0 namelen 51 name foo filetype 1 errors 6, no dir index, no inode ref
root 163302 inode 11266 errors 2001, no inode item, link count wrong
unresolved ref dir 11179 index 0 namelen 53 name foo filetype 1 errors 6, no dir index, no inode ref
root 163302 inode 11271 errors 2001, no inode item, link count wrong
unresolved ref dir 11179 index 0 namelen 55 name foo filetype 1 errors 6, no dir index, no inode ref
root 163302 inode 11275 errors 2001, no inode item, link count wrong
unresolved ref dir 11179 index 0 namelen 42 name foo filetype 1 errors 6, no dir index, no inode ref
root 163302 inode 11276 errors 2001, no inode item, link count wrong
unresolved ref dir 11179 index 0 namelen 87 name foo filetype 1 errors 6, no dir index, no inode ref
root 163302 inode 11278 errors 2001, no inode item, link count wrong
unresolved ref dir 11179 index 0 namelen 48 name foo filetype 1 errors 6, no dir index, no inode ref
root 163302 inode 11285 errors 2001, no inode item, link count wrong
unresolved ref dir 11179 index 0 namelen 58 name foo filetype 1 errors 6, no dir index, no inode ref
root 163302 inode 11293 errors 2001, no inode item, link count wrong
unresolved ref dir 11179 index 0 namelen 51 name foo filetype 1 errors 6, no dir index, no inode ref
root 163302 inode 11296 errors 2001, no inode item, link count wrong
unresolved ref dir 11179 index 0 namelen 41 name foo filetype 1 errors 6, no dir index, no inode ref
root 163302 inode 11301 errors 2001, no inode item, link count wrong
unresolved ref dir 11179 index 0 namelen 55 name foo filetype 1 errors 6, no dir index, no inode ref
root 163302 inode 11306 errors 2001, no inode item, link count wrong
unresolved ref dir 11179 index 0 namelen 49 name foo filetype 1 errors 6, no dir index, no inode ref
root 163302 inode 11307 errors 2001, no inode item, link count wrong
unresolved ref dir 11179 index 0 namelen 60 name foo filetype 1 errorFound file extent holes:
start: 0, len: 260874240
root 164623 inode 3682 errors 500, file extent discount, nbytes wrong
Found file extent holes:
start: 0, len: 103227392
root 164623 inode 3683 errors 500, file extent discount, nbytes wrong
Found file extent holes:
start: 0, len: 58925056
root 164623 inode 3684 errors 500, file extent discount, nbytes wrong
Found file extent holes:
start: 0, len: 22671360
root 164623 inode 3685 errors 500, file extent discount, nbytes wrong
Found file extent holes:
start: 0, len: 55967744root 164623 inode 3686 errors 500, file extent discount, nbytes wrong
Found file extent holes:
start: 0, len: 164442112
unresolved ref dir 3676 index 11 namelen 62 name foo filetype 1 errroot 164629 inode 859 errors 2001, no inode item, link count wrong unresolved ref dir 842 index 0 namelen 65 name foo filetype 1 errors 6, no dir index, no inode ref
root 164629 inode 860 errors 2001, no inode item, link count wrong
unresolved ref dir 842 index 0 namelen 63 name foo filetype 1 errors 6, no dir index, no inode ref
root 164629 inode 861 errors 2001, no inode item, link count wrong
unresolved ref dir 842 index 0 namelen 66 name foo filetype 1 errors 6, no dir index, no inode ref
root 164629 inode 862 errors 2001, no inode item, link count wrong
unresolved ref dir 842 index 0 namelen 59 name foo filetype 1 errors 6, no dir index, no inode ref
root 164629 inode 864 errors 2001, no inode item, link count wrong
unresolved ref dir 842 index 0 namelen 72 name foo filetype 1 errors 6, no dir index, no inode ref
root 164629 inode 865 errors 2001, no inode item, link count wrong
unresolved ref dir 842 index 0 namelen 58 name foo filetype 1 errors 6, no dir index, no inode ref
root 164629 inode 866 errors 2001, no inode item, link count wrong
unresolved ref dir 842 index 0 namelen 88 name foo filetype 7 errors 6, no dir index, no inode ref
root 164629 inode 867 errors 2001, no inode item, link count wrong
unresolved ref dir 842 index 0 namelen 57 name foo filetype 1 errors 6, no dir index, no inode ref
root 164629 inode 868 errors 2001, no inode item, link count wrong
unresolved ref dir 842 index 0 namelen 70 name foo filetype 1 errors 6, no dir index, no inode ref
root 164629 inode 872 errors 2001, no inode item, link count wrong
unresolved ref dir 842 index 0 namelen 101 name foo filetype 1 errors 6, no dir index, no inode ref
root 164629 inode 873 errors 2001, no inode item, link count wrong
unresolved ref dir 842 index 0 namelen 80 name foo filetype 1 errors 6, no dir index, no inode ref
root 164629 inode 874 errors 2001, no inode item, link count wrong
unresolved ref dir 842 index 0 namelen 69 name foo filetype 1 errors 6, no dir index, no inode ref
root 164629 inode 875 errors 2001, no inode item, link count wrong
unresolved ref dir 842 index 0 namelen 79 name foo filetype 1 errors 6, no dir index, no inode ref
root 164629 inode 876 errors 2001, no inode item, link count wrong
unresolved ref dir 842 index 0 namelen 51 name foo filetype 1 errors 6, no dir index, no inode ref
root 164629 inode 877 errors 2001, no inode item, link count wrong
unresolved ref dir 842 index 0 namelen 95 name foo filetype 1 errors 6, no dir index, no inode ref
root 164629 inode 878 errors 2001, no inode item, link count wrong
unresolved ref dir 842 index 0 namelen 87 name foo filetype 1 errors 6, no dir index, no inode ref
root 164629 inode 879 errors 2001, no inode item, link count wrong
unresolved ref dir 842 index 0 namelen 75 name foo filetype 1 errors 6, no dir index, no inode ref
root 164629 inode 880 errors 2001, no inode item, link count wrong
unresolved ref dir 842 index 0 namelen 44 name foo filetype 1 errors 6, no dir index, no inode ref
root 164629 inode 881 errors 2001, no inode item, link count wrong
unresolved ref dir 842 index 0 namelen 67 name foo filetype 1 errors 6, no dir index, no inode ref
root 164629 inode 884 errors 2001, no inode item, link count wrong
unresolved ref dir 842 index 0 namelen 70 name foo filetype 1 errors 6, no dir index, no inode ref
root 164629 inode 885 errors 2001, no inode item, link count wrong
unresolved ref dir 842 index 0 namelen 84 name foo filetype 1 errors 6, no dir index, no inode ref
root 164629 inode 887 errors 2001, no inode item, link count wrong
unresolved ref dir 842 index 0 namelen 87 name foo filetype 1 errors 6, no dir index, no inode ref
root 164629 inode 888 errors 2001, no inode item, link count wrong
unresolved ref dir 842 index 0 namelen 74 name foo filetype 1 errors 6, no dir index, no inode ref
root 164629 inode 890 errors 2001, no inode item, link count wrong
unresolved ref dir 842 index 0 namelen 80 name foo filetype 1 errors 6, no dir index, no inode ref
root 164629 inode 891 errors 2001, no inode item, link count wrong
unresolved ref dir 842 index 0 namelen 87 name foo filetype 1 errors 6, no dir index, no inode ref
root 164629 inode 892 errors 2001, no inode item, link count wrong
unresolved ref dir 842 index 0 namelen 91 name foo filetype 1 errors 6, no dir index, no inode ref
root 164629 inode 904 errors 2001, no inode item, link count wrong
unresolved ref dir 842 index 0 namelen 79 name foo filetype 1 errors 6, no dir index, no inode ref
root 164629 inode 905 errors 2001, no inode item, link count wrong
unresolved ref dir 842 index 0 namelen 101 name foo filetype 1 errors 6, no dir index, no inode ref
root 164629 inode 907 errors 2001, no inode item, link count wrong
unresolved ref dir 842 index 0 namelen 62 name foo filetype 1 errors 6, no dir index, no inode ref
root 164629 inode 909 errors 2001, no inode item, link count wrong
unresolved ref dir 842 index 0 namelen 70 name foo filetype 1 errors 6, no dir index, no inode ref
root 164629 inode 910 errors 2001, no inode item, link count wrong
unresolved ref dir 842 index 0 namelen 74 name foo filetype 1 errors 6, no dir index, no inode ref
root 164629 inode 911 errors 2001, no inode item, link count wrong
unresolved ref dir 842 index 0 namelen 63 name foo filetype 1 errors 6, no dir index, no inode ref
root 164629 inode 912 errors 2001, no inode item, link count wrong
unresolved ref dir 842 index 0 namelen 84 name foo filetype 1 errors 6, no dir index, no inode ref
root 164629 inode 913 errors 2001, no inode item, link count wrong
unresolved ref dir 842 index 0 namelen 93 name foo filetype 1 errors 6, no dir index, no inode ref
root 164629 inode 914 errors 2001, no inode item, link count wrong
unresolved ref dir 842 index 0 namelen 68 name foo filetype 1 errors 6, no dir index, no inode ref
root 164629 inode 917 errors 2001, no inode item, link count wrong
unresolved ref dir 842 index 0 namelen 79 name foo filetype 1 errors 6, no dir index, no inode ref
root 164629 inode 918 errors 2001, no inode item, link count wrong
unresolved ref dir 842 index 0 namelen 89 name foo filetype 1 errors 6, no dir index, no inode ref
root 164629 inode 921 errors 2001, no inode item, link count wrong
unresolved ref dir 842 index 0 namelen 87 name foo filetype 1 errors 6, no dir index, no inode ref
root 164629 inode 922 errors 2001, no inode item, link count wrong
unresolved ref dir 842 index 0 namelen 72 name foo filetype 1 errors 6, no dir index, no inode ref
root 164629 inode 923 errors 2001, no inode item, link count wrong
unresolved ref dir 842 index 0 namelen 87 name foo filetype 1 errors 6, no dir index, no inode ref
root 164629 inode 925 errors 2001, no inode item, link count wrong
unresolved ref dir 842 index 0 namelen 80 name foo filetype 1 errors 6, no dir index, no inode ref
root 164629 inode 926 errors 2001, no inode item, link count wrong
unresolved ref dir 842 index 0 namelen 70 name foo filetype 1 errors 6, no dir index, no inode ref
root 164629 inode 927 errors 2001, no inode item, link count wrong
unresolved ref dir 842 index 0 namelen 70 name foo filetype 1 errors 6, no dir index, no inode ref
root 164629 inode 928 errors 2001, no inode item, link count wrong
unresolved ref dir 842 index 0 namelen 72 name foo filetype 7 errors 6, no dir index, no inode ref
root 164629 inode 1047 errors 2001, no inode item, link count wrong
unresolved ref dir 842 index 0 namelen 86 name foo filetype 1 errors 6, no dir index, no inode ref
root 164629 inode 1050 errors 2001, no inode item, link count wrong
unresolved ref dir 842 index 0 namelen 88 name foo filetype 1 errors 6, no dir index, no inode ref
root 164629 inode 1051 errors 2001, no inode item, link count wrong
unresolved ref dir 842 index 0 namelen 81 name foo filetype 1 errors 6, no dir index, no inode ref
root 164629 inode 1052 errors 2001, no inode item, link count wrong
unresolved ref dir 842 index 0 namelen 91 name foo filetype 1 errors 6, no dir index, no inode ref
root 164629 inode 1053 errors 2001, no inode item, link count wrong
unresolved ref dir 842 index 0 namelen 57 name foo filetype 1 errors 6, no dir index, no inode ref
root 164629 inode 1054 errors 2001, no inode item, link count wrong
unresolved ref dir 842 index 0 namelen 67 name foo filetype 1 errors 6, no dir index, no inode ref
root 164629 inode 1055 errors 2001, no inode item, link count wrong
unresolved ref dir 842 index 0 namelen 78 name foo froot 164629 inode 17822 errors 2001, no inode item, link count wrong unresolved ref dir 791 index 144 namelen 58 name foo filetype 1 errors 4, no inode ref
root 164629 inode 17824 errors 1, no inode item
unresolved ref dir 791 index 145 namelen 47 name foo filetype 1 errors 5, no dir item, no inode ref
root 164629 inode 17893 errors 1, no inode item
root 164629 inode 17894 errors 2500, file extent discount, nbytes wrong, link count wrong
Found file extent holes:
start: 0, len: 9650176
unresolved ref dir 17893 index 2 namelen 50 name foo filetype 0 errors 3, no dir item, no dir index
root 164629 inode 17895 errors 2500, file extent discount, nbytes wrong, link count wrong
Found file extent holes:
start: 0, len: 64696320
root 164629 inode 17896 errors 1, no inode item
unresolved ref dir 17893 index 4 namelen 57 name foo filetype 1 errors 5, no dir item, no inode ref
root 164629 inode 17897 errors 1, no inode item
unresolved ref dir 17893 index 5 namelen 26 name foo filetype 1 errors 5, no dir item, no inode ref
root 164629 inode 17898 errors 1, no inode item
unresolved ref dir 17893 index 6 namelen 31 name foo filetype 1 errors 5, no dir item, no inode ref
root 164629 inode 17899 errors 1, no inode item
unresolved ref dir 17893 index 7 namelen 46 name foo filetype 1 errors 5, no dir item, no inode ref
root 164629 inode 17900 errors 1, no inode item
unresolved ref dir 17893 index 8 namelen 119 name foo filetype 1 errors 5, no dir item, no inode ref
root 164629 inode 17901 errors 1, no inode item
unresolved ref dir 17893 index 9 namelen 66 name foo filetype 1 errors 5, no dir item, no inode ref
root 164629 inode 17902 errors 1, no inode item
unresolved ref dir 17893 index 10 namelen 44 name foo filetype 1 errors 5, no dir item, no inode ref
root 164629 inode 17903 errors 1, no inode item
unresolved ref dir 17893 index 11 namelen 111 name foo filetype 1 errors 5, no dir item, no inode ref
root 164629 inode 17904 errors 1, no inode item
unresolved ref dir 17893 index 12 namelen 34 name foo filetype 1 errors 5, no dir item, no inode ref
root 164629 inode 17905 errors 1, no inode item
unresolved ref dir 17893 index 13 namelen 34 name foo filetype 1 errors 5, no dir item, no inode ref
root 164629 inode 17906 errors 1, no inode item
unresolved ref dir 17893 index 14 namelen 41 name foo filetype 1 errors 5, no dir item, no inode ref
root 164629 inode 17907 errors 1, no inode item
unresolved ref dir 17893 index 15 namelen 59 name foo filetype 1 errors 5, no dir item, no inode ref
root 164629 inode 17908 errors 1, no inode item
unresolved ref dir 17893 index 16 namelen 47 name foo filetype 1 errors 5, no dir item, no inode ref
root 164629 inode 17909 errors 1, no inode item
unresolved ref dir 17893 index 17 namelen 25 name foo filetype 1 errors 5, no dir item, no inode ref
root 164629 inode 17910 errors 1, no inode item
root 164823 inode 25244 errors 2001, no inode item, link count wrong
unresolved ref dir 3654 index 34 namelen 9 name foo filetype 2 errors 4, no inode ref
root 164823 inode 25246 errors 2001, no inode item, link count wrong
unresolved ref dir 842 index 296 namelen 70 name foo filetype 1 errors 4, no inode ref
root 164823 inode 27724 errors 2001, no inode item, link count wrong
unresolved ref dir 3654 index 35 namelen 5 name foo filetype 2 errors 4, no inode ref
root 164823 inode 34022 errors 2001, no inode item, link count wrong
unresolved ref dir 3654 index 39 namelen 3 name foo filetype 2 errors 4, no inode ref
root 164823 inode 34023 errors 2001, no inode item, link count wrong
unresolved ref dir 3654 index 40 namelen 3 name foo filetype 2 errors 4, no inode ref
root 164823 inode 34454 errors 2001, no inode item, link count wrong
unresolved ref dir 3654 index 60 namelen 11 name foo filetype 1 errors 4, no inode ref
root 164823 inode 34455 errors 2001, no inode item, link count wrong
unresolved ref dir 3654 index 62 namelen 6 name foo filetype 1 errors 4, no inode ref
root 164823 inode 34471 errors 2001, no inode item, link count wrong
unresolved ref dir 3654 index 76 namelen 11 name foo filetype 1 errors 4, no inode ref
root 164823 inode 34480 errors 2001, no inode item, link count wrong
unresolved ref dir 3654 index 86 namelen 6 name foo filetype 1 errors 4, no inode ref
root 164823 inode 34482 errors 2001, no inode item, link count wrong
unresolved ref dir 3654 index 87 namelen 6 name foo filetype 1 errors 4, no inode ref
root 164823 inode 34508 errors 2001, no inode item, link count wrong
unresolved ref dir 3654 index 98 namelen 11 name foo filetype 1 errors 4, no inode ref
root 164823 inode 34511 errors 2001, no inode item, link count wrong
unresolved ref dir 3654 index 102 namelen 6 name foo filetype 1 errors 4, no inode ref
root 164823 inode 34512 errors 2001, no inode item, link count wrong
unresolved ref dir 3654 index 103 namelen 11 name foo filetype 1 errors 4, no inode ref
root 164823 inode 35040 errors 2001, no inode item, link count wrong
unresolved ref dir 3654 index 159 namelen 11 name foo filetype 1 errors 4, no inode ref
root 164823 inode 35142 errors 2001, no inode item, link count wrong
unresolved ref dir 3654 index 209 namelen 6 name foo filetype 1 errors 4, no inode ref
root 164823 inode 35200 errors 1, no inode item
unresolved ref dir 791 index 156 namelen 41 name foo filetype 1 errors 5, no dir item, no inode ref
root 164823 inode 35232 errors 2001, no inode item, link count wrong
unresolved ref dir 3676 index 24 namelen 45 name foo filetype 1 errors 4, no inode ref
root 164823 inode 35241 errors 2001, no inode item, link count wrong
unresolved ref dir 3676 index 25 namelen 62 name foo filetype 1 errors 4, no inode ref
root 164823 inode 36759 errors 1, no inode item
unresolved ref dir 791 index 157 namelen 44 name foo filetype 1 errors 5, no dir item, no inode ref
root 164823 inode 37194 errors 2001, no inode item, link count wrong
unresolved ref dir 3654 index 213 namelen 3 name foo filetype 2 errors 4, no inode ref
root 164823 inode 38289 errors 2001, no inode item, link count wrong
unresolved ref dir 3654 index 212 namelen 1 name foo filetype 7 errors 4, no inode ref
root 164823 inode 39940 errors 2001, no inode item, link count wrong
unresolved ref dir 3676 index 27 namelen 103 name foo filetype 1 errors 4, no inode ref
root 164823 inode 39950 errors 2001, no inode item, link count wrong
unresolved ref dir 3676 index 26 namelen 117 name foo filetype 1 errors 4, no inode ref
root 164823 inode 39951 errors 2001, no inode item, link count wrong
unresolved ref dir 3676 index 28 namelen 66 name foo filetype 1 errors 4, no inode ref
root 164823 inode 69105 errors 1, no inode item
unresolved ref dir 68739 index 151 namelen 66 name foo filetype 0 errors 3, no dir item, no dir index
root 164823 inode 69135 errors 2000, link count wrong
unresolved ref dir 256 index 68892 namelen 4 name foo filetype 0 errors 3, no dir item, no dir index
root 164823 inode 69136 errors 2200, dir isize wrong, link count wrong
unresolved ref dir 1938 index 4 namelen 40 name foo filetype 0 errors 3, no dir item, no dir index
root 164823 inode 69252 errors 2001, no inode item, link count wrong
unresolved ref dir 69136 index 0 namelen 31 name foo filetype 2 errors 6, no dir index, no inode ref
root 164823 inode 74108 errors 2001, no inode item, link count wrong
unresolved ref dir 3280 index 12 namelen 44 name foo filetype 1 errors 4, no inode ref
root 164823 inode 74132 errors 2001, no inode item, link count wrong
unresolved ref dir 256 index 19071 namelen 4 name foo filetype 2 errors 4, no inode ref
root 164823 inode 74193 errors 2001, no inode item, link count wrong
unresolved ref dir 3654 index 214 namelen 4 name foo filetype 2 errors 4, no inode ref
root 164823 inode 74838 errors 2001, no inode item, link count wrong
unresolved ref dir 3280 index 13 namelen 21 name foo filetype 2 errors 4, no inode ref
root 164823 inode 76221 errors 2001, no inode item, link count wrong
unresolved ref dir 791 index 161 namelen 41 name foo filetype 1 errors 4, no inode ref
root 164823 inode 76328 errors 2001, no inode item, link count wrong
unresolved ref dir 3280 index 16 namelen 88 name foo filetype 1 errors 4, no inode ref
root 164823 inode 76329 errors 2001, no inode item, link count wrong
unresolved ref dir 3280 index 17 namelen 88 name foo filetype 1 errors 4, no inode ref
ERROR: errors found in fs roots
found 21912809472 bytes used, error(s) found
total csum bytes: 0
total tree bytes: 5373952
total fs tree bytes: 3424256
total extent tree bytes: 573440
btree space waste bytes: 1834949
file data blocks allocated: 33614336000
referenced 33612742656
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 12 lines · Marc MERLIN
Quoted 6 lines · Josef Bacik
Just check, no --repair. I want to make sure the only thing that is missing is the corresponding device extents for the chunks we recovered. I'm going to start writing the code to do that now, but if there's any errors other than missing device extents then we need to figure out what those problems are and what to do about them. Thanks,
woah, it ran in less than 1 minute, that's amazing (I remember when it took days)
Ok I've added some stuff to fix the device extents. Go ahead and run with --repair and lets see how that goes. After that finishes run again without --repair so we can see what's still broken, I imagine I'll have to clean some other stuff up. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 4 lines · Josef Bacik
Ok I've added some stuff to fix the device extents. Go ahead and run with --repair and lets see how that goes. After that finishes run again without --repair so we can see what's still broken, I imagine I'll have to clean some other stuff up. Thanks,
Can't determine the filetype for inode 69105, assume it is a normal file Can't get file type for inode 69105, using FILE as fallback Moving file f to 'lost+found' dir since it has no valid backref Fixed the nlink of inode 69105
Moving file f to 'lost+found' dir since it has no valid backref Fixed the nlink of inode 69135
reset isize for dir 69136 root 164823
Moving file f to 'lost+found' dir since it has no valid backref Fixed the nlink of inode 69136
Trying to rebuild inode:69252
Moving file f to 'lost+found' dir since it has no valid backref Fixed the nlink of inode 69252
Trying to rebuild inode:74108
Moving file f to 'lost+found' dir since it has no valid backref Fixed the nlink of inode 74108
Trying to rebuild inode:74132
Moving file f to 'lost+found' dir since it has no valid backref Fixed the nlink of inode 74132
Trying to rebuild inode:74193
Moving file f to 'lost+found' dir since it has no valid backref Fixed the nlink of inode 74193
Trying to rebuild inode:74838
Moving file f to 'lost+found' dir since it has no valid backref Fixed the nlink of inode 74838
Trying to rebuild inode:76221
Moving file f to 'lost+found' dir since it has no valid backref Fixed the nlink of inode 76221
Trying to rebuild inode:76328
Moving file f to 'lost+found' dir since it has no valid backref Fixed the nlink of inode 76328
Trying to rebuild inode:76329
Moving file f to 'lost+found' dir since it has no valid backref Fixed the nlink of inode 76329
found 43825717248 bytes used, error(s) found
total csum bytes: 0
total tree bytes: 10846208
total fs tree bytes: 6848512
total extent tree bytes: 1146880
btree space waste bytes: 3705949
file data blocks allocated: 67228672000
referenced 67225485312
gargamel:/var/local/src/btrfs-progs-josefbacik# mount -o ro,recovery /dev/mapper/dshelf1 /mnt/mnt mount: /mnt/mnt: wrong fs type, bad option, bad superblock on /dev/mapper/dshelf1, missing codepage or helper program, or other error. gargamel:/var/local/src/btrfs-progs-josefbacik# dmtail [3890613.672704] BTRFS info (device dm-1): flagging fs with big metadata feature [3890613.694891] BTRFS warning (device dm-1): 'recovery' is deprecated, use 'rescue=usebackuproot' instead [3890613.759915] BTRFS info (device dm-1): trying to use backup root at mount time [3890613.782884] BTRFS info (device dm-1): disk space caching is enabled [3890613.802960] BTRFS info (device dm-1): has skinny extents [3890613.826455] BTRFS error (device dm-1): super_num_devices 1 mismatch with num_devices 0 found here [3890613.855092] BTRFS error (device dm-1): failed to read chunk tree: -22 [3890613.876716] BTRFS error (device dm-1): open_ctree failed
btrfs check ends with:
root 164624 inode 73099 errors 1400, nbytes wrong, some csum missing
root 164624 inode 73100 errors 1400, nbytes wrong, some csum missing
unresolved ref dir 791 index 0 namelen 25 name f filetype 1 errors 6, no dir index, no inode ref unresolved ref dir 3676 index 0 namelen 62 name f filetype 1 errors 6, no dir index, no inode ref
root 164629 inode 3752 errors 200, dir isize wrong
unresolved ref dir 73103 index 540 namelen 4 name f filetype mismatch
root 164629 inode 3965 errors 200, dir isize wrong
unresolved ref dir 4179 index 0 namelen 10 name f filetype 1 errors 6, no dir index, no inode ref
root 164629 inode 4549 errors 200, dir isize wrong
unresolved ref dir 4698 index 0 namelen 69 name f filetype 1 errors 6, no dir index, no inode ref unresolved ref dir 5506 index 0 namelen 53 name f filetype 1 errors 6, no dir index, no inode ref unresolved ref dir 5546 index 0 namelen 57 name f filetype 1 errors 6, no dir index, no inode ref
root 164629 inode 39921 errors 3500, file extent discount, nbytes wrong, some csum missing, link count wrong Found file extent holes:
start: 759824384, len: 2143326208
unresolved ref dir 10205 index 356 namelen 34 name f filetype 0 errors 3, no dir item, no dir index
root 164629 inode 40537 errors 1400, nbytes wrong, some csum missing
root 164629 inode 72418 errors 1400, nbytes wrong, some csum missing
root 164629 inode 72429 errors 3500, file extent discount, nbytes wrong, some csum missing, link count wrong Found file extent holes:
start: 1333788672, len: 3217154048
unresolved ref dir 72438 index 4 namelen 49 name f filetype 0 errors 3, no dir item, no dir index
root 164629 inode 72433 errors 3500, file extent discount, nbytes wrong, some csum missing, link count wrong Found file extent holes:
start: 892338176, len: 14957748224
unresolved ref dir 34951 index 13 namelen 46 name f filetype 0 errors 3, no dir item, no dir index
root 164629 inode 72587 errors 200, dir isize wrong
root 164629 inode 72588 errors 1000, some csum missing
root 164629 inode 72592 errors 200, dir isize wrong
root 164629 inode 72593 errors 3500, file extent discount, nbytes wrong, some csum missing, link count wrong Found file extent holes:
start: 42074112, len: 413642752
unresolved ref dir 75036 index 19 namelen 45 name f filetype 0 errors 3, no dir item, no dir index
root 164629 inode 72639 errors 200, dir isize wrong
root 164629 inode 72640 errors 200, dir isize wrong
root 164629 inode 72672 errors 200, dir isize wrong
unresolved ref dir 73103 index 1386 namelen 5 name f filetype mismatch
root 164629 inode 73001 errors 1400, nbytes wrong, some csum missing
root 164629 inode 73006 errors 1400, nbytes wrong, some csum missing
root 164629 inode 73009 errors 3500, file extent discount, nbytes wrong, some csum missing, link count wrong Found file extent holes:
start: 13869056, len: 53100544
unresolved ref dir 72672 index 134 namelen 26 name f filetype 1 errors 1, no dir item
root 164629 inode 73045 errors 1400, nbytes wrong, some csum missing
root 164629 inode 73066 errors 1400, nbytes wrong, some csum missing
root 164629 inode 73067 errors 1000, some csum missing
root 164629 inode 73082 errors 1400, nbytes wrong, some csum missing
root 164629 inode 73083 errors 3500, file extent discount, nbytes wrong, some csum missing, link count wrong Found file extent holes:
start: 197263360, len: 399777792
unresolved ref dir 3747 index 30 namelen 70 name f filetype 0 errors 3, no dir item, no dir index
root 164629 inode 73086 errors 1400, nbytes wrong, some csum missing
root 164629 inode 73094 errors 3500, file extent discount, nbytes wrong, some csum missing, link count wrong Found file extent holes:
start: 0, len: 524288
unresolved ref dir 74963 index 32 namelen 56 name f filetype 0 errors 3, no dir item, no dir index
root 164629 inode 73097 errors 3500, file extent discount, nbytes wrong, some csum missing, link count wrong Found file extent holes:
start: 0, len: 524288
unresolved ref dir 74963 index 36 namelen 56 name f filetype 0 errors 3, no dir item, no dir index
root 164629 inode 73099 errors 1400, nbytes wrong, some csum missing
root 164629 inode 73100 errors 1400, nbytes wrong, some csum missing
unresolved ref dir 791 index 0 namelen 25 name f filetype 1 errors 6, no dir index, no inode ref unresolved ref dir 3676 index 0 namelen 62 name f filetype 1 errors 6, no dir index, no inode ref
ERROR: errors found in fs roots
Opening filesystem to check...
Checking filesystem on /dev/mapper/dshelf1
UUID: 96539b8c-ccc9-47bf-9e6c-29305890941e
cache and super generation don't match, space cache will be invalidated
found 21916315648 bytes used, error(s) found
total csum bytes: 0
total tree bytes: 8880128
total fs tree bytes: 6799360
total extent tree bytes: 606208
btree space waste bytes: 2518033
file data blocks allocated: 36729012224
referenced 36727418880
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 48 lines · Marc MERLIN
Quoted 4 lines · Josef Bacik
Ok I've added some stuff to fix the device extents. Go ahead and run with --repair and lets see how that goes. After that finishes run again without --repair so we can see what's still broken, I imagine I'll have to clean some other stuff up. Thanks,
Can't determine the filetype for inode 69105, assume it is a normal file Can't get file type for inode 69105, using FILE as fallback Moving file f to 'lost+found' dir since it has no valid backref Fixed the nlink of inode 69105
Moving file f to 'lost+found' dir since it has no valid backref Fixed the nlink of inode 69135
reset isize for dir 69136 root 164823
Moving file f to 'lost+found' dir since it has no valid backref Fixed the nlink of inode 69136
Trying to rebuild inode:69252
Moving file f to 'lost+found' dir since it has no valid backref Fixed the nlink of inode 69252
Trying to rebuild inode:74108
Moving file f to 'lost+found' dir since it has no valid backref Fixed the nlink of inode 74108
Trying to rebuild inode:74132
Moving file f to 'lost+found' dir since it has no valid backref Fixed the nlink of inode 74132
Trying to rebuild inode:74193
Moving file f to 'lost+found' dir since it has no valid backref Fixed the nlink of inode 74193
Trying to rebuild inode:74838
Moving file f to 'lost+found' dir since it has no valid backref Fixed the nlink of inode 74838
Trying to rebuild inode:76221
Moving file f to 'lost+found' dir since it has no valid backref Fixed the nlink of inode 76221
Trying to rebuild inode:76328
Moving file f to 'lost+found' dir since it has no valid backref Fixed the nlink of inode 76328
Trying to rebuild inode:76329
Moving file f to 'lost+found' dir since it has no valid backref Fixed the nlink of inode 76329
found 43825717248 bytes used, error(s) found
total csum bytes: 0
total tree bytes: 10846208
total fs tree bytes: 6848512
total extent tree bytes: 1146880
btree space waste bytes: 3705949
file data blocks allocated: 67228672000
referenced 67225485312
Quoted 11 lines
gargamel:/var/local/src/btrfs-progs-josefbacik# mount -o ro,recovery /dev/mapper/dshelf1 /mnt/mnt mount: /mnt/mnt: wrong fs type, bad option, bad superblock on /dev/mapper/dshelf1, missing codepage or helper program, or other error. gargamel:/var/local/src/btrfs-progs-josefbacik# dmtail [3890613.672704] BTRFS info (device dm-1): flagging fs with big metadata feature [3890613.694891] BTRFS warning (device dm-1): 'recovery' is deprecated, use 'rescue=usebackuproot' instead [3890613.759915] BTRFS info (device dm-1): trying to use backup root at mount time [3890613.782884] BTRFS info (device dm-1): disk space caching is enabled [3890613.802960] BTRFS info (device dm-1): has skinny extents [3890613.826455] BTRFS error (device dm-1): super_num_devices 1 mismatch with num_devices 0 found here [3890613.855092] BTRFS error (device dm-1): failed to read chunk tree: -22 [3890613.876716] BTRFS error (device dm-1): open_ctree failed
Sorry this took me longer than normal to work out what happened and how to fix it properly.
You can pull and re-run btrfs check --repair <device> and it should fix the device thing that's missing. We can tackle the other fs errors next, but I want to see if we can at least get you mounting the fs. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 2 lines · Josef Bacik
Sorry this took me longer than normal to work out what happened and how to fix it properly.
It takes the time it takes, I'm sure nothing there is obvious
Quoted 4 lines
You can pull and re-run btrfs check --repair <device> and it should fix the device thing that's missing. We can tackle the other fs errors next, but I want to see if we can at least get you mounting the fs. Thanks,
Done:
WARNING: reserved space leaked, transid=2606858 flag=0x2 bytes_reserved=49152
root 164629 inode 73099 errors 1000, some csum missing
WARNING: reserved space leaked, transid=2606859 flag=0x2 bytes_reserved=49152
root 164629 inode 73100 errors 1000, some csum missing
unresolved ref dir 791 index 0 namelen 25 name Banlieue 13 Ultimatum.avi filetype 1 errors 6, no dir index, no inode ref unresolved ref dir 3676 index 0 namelen 62 name foo filetype 1 errors 6, no dir index, no inode ref
ERROR: errors found in fs roots
WARNING: reserved space leaked, flag=0x2 bytes_reserved=49152
extent buffer leak: start 15645018226688 len 16384
Starting repair.
Opening filesystem to check...
Checking filesystem on /dev/mapper/dshelf1
UUID: 96539b8c-ccc9-47bf-9e6c-29305890941e
cache and super generation don't match, space cache will be invalidated Fixed the nlink of inode 5644
reset nbytes for ino 54987 root 161199
reset nbytes for ino 54997 root 161199
reset nbytes for ino 55002 root 161199
reset isize for dir 55138 root 161199
reset nbytes for ino 55458 root 161199
reset nbytes for ino 55467 root 161199
reset nbytes for ino 55474 root 161199
reset nbytes for ino 55525 root 161199
reset nbytes for ino 54987 root 161889
reset nbytes for ino 54997 root 161889
reset nbytes for ino 55002 root 161889
reset isize for dir 55138 root 161889
reset nbytes for ino 55458 root 161889
reset nbytes for ino 55467 root 161889
reset nbytes for ino 55474 root 161889
reset nbytes for ino 55525 root 161889
Fixed the nlink of inode 95666
Fixed the nlink of inode 95666
Fixed the nlink of inode 95666
reset isize for dir 4549 root 164624
reset isize for dir 25810 root 164624
reset isize for dir 25812 root 164624
reset nbytes for ino 26004 root 164624
reset isize for dir 31346 root 164624
reset nbytes for ino 72418 root 164624
reset isize for dir 72587 root 164624
reset isize for dir 72592 root 164624
reset isize for dir 72639 root 164624
reset isize for dir 72640 root 164624
reset isize for dir 72672 root 164624
reset nbytes for ino 73001 root 164624
reset nbytes for ino 73006 root 164624
reset nbytes for ino 73045 root 164624
reset nbytes for ino 73066 root 164624
reset nbytes for ino 73082 root 164624
reset nbytes for ino 73086 root 164624
reset nbytes for ino 73099 root 164624
reset nbytes for ino 73100 root 164624
reset isize for dir 3747 root 164629
reset isize for dir 3752 root 164629
reset isize for dir 3965 root 164629
reset isize for dir 4549 root 164629
reset nbytes for ino 40537 root 164629
reset nbytes for ino 72418 root 164629
reset isize for dir 72587 root 164629
reset isize for dir 72592 root 164629
reset isize for dir 72639 root 164629
reset isize for dir 72640 root 164629
reset isize for dir 72672 root 164629
reset nbytes for ino 73001 root 164629
reset nbytes for ino 73006 root 164629
reset nbytes for ino 73045 root 164629
reset nbytes for ino 73066 root 164629
reset nbytes for ino 73082 root 164629
reset nbytes for ino 73086 root 164629
reset nbytes for ino 73099 root 164629
reset nbytes for ino 73100 root 164629
found 21916315648 bytes used, error(s) found
total csum bytes: 0
total tree bytes: 8880128
total fs tree bytes: 6799360
total extent tree bytes: 606208
btree space waste bytes: 2518033
file data blocks allocated: 36729012224
referenced 36727418880
gargamel:/var/local/src/btrfs-progs-josefbacik# mount -o ro,recovery /dev/mapper/dshelf1 /mnt/mnt mount: /mnt/mnt: wrong fs type, bad option, bad superblock on /dev/mapper/dshelf1, missing codepage or helper program, or other error
[3956372.768821] BTRFS info (device dm-1): disk space caching is enabled [3956372.789085] BTRFS info (device dm-1): has skinny extents [3956372.863763] BTRFS error (device dm-1): dev extent physical offset 709781094400 on devid 1 doesn't have corresponding chunk [3956372.899452] BTRFS error (device dm-1): failed to verify dev extents against chunks: -117 [3956372.926355] BTRFS error (device dm-1): open_ctree failed
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 94 lines · Marc MERLIN
Quoted 2 lines · Josef Bacik
Sorry this took me longer than normal to work out what happened and how to fix it properly.
It takes the time it takes, I'm sure nothing there is obvious
Quoted 4 lines
You can pull and re-run btrfs check --repair <device> and it should fix the device thing that's missing. We can tackle the other fs errors next, but I want to see if we can at least get you mounting the fs. Thanks,
Done:
WARNING: reserved space leaked, transid=2606858 flag=0x2 bytes_reserved=49152
root 164629 inode 73099 errors 1000, some csum missing
WARNING: reserved space leaked, transid=2606859 flag=0x2 bytes_reserved=49152
root 164629 inode 73100 errors 1000, some csum missing
unresolved ref dir 791 index 0 namelen 25 name Banlieue 13 Ultimatum.avi filetype 1 errors 6, no dir index, no inode ref unresolved ref dir 3676 index 0 namelen 62 name foo filetype 1 errors 6, no dir index, no inode ref
ERROR: errors found in fs roots
WARNING: reserved space leaked, flag=0x2 bytes_reserved=49152
extent buffer leak: start 15645018226688 len 16384Starting repair.
Opening filesystem to check...
Checking filesystem on/dev/mapper/dshelf1
UUID: 96539b8c-ccc9-47bf-9e6c-29305890941e
cache and super generation don't match, space cache will be invalidated Fixed the nlink of inode 5644
reset nbytes for ino 54987 root 161199
reset nbytes for ino 54997 root 161199
reset nbytes for ino 55002 root 161199
reset isize for dir 55138 root 161199
reset nbytes for ino 55458 root 161199
reset nbytes for ino 55467 root 161199
reset nbytes for ino 55474 root 161199
reset nbytes for ino 55525 root 161199
reset nbytes for ino 54987 root 161889
reset nbytes for ino 54997 root 161889
reset nbytes for ino 55002 root 161889
reset isize for dir 55138 root 161889
reset nbytes for ino 55458 root 161889
reset nbytes for ino 55467 root 161889
reset nbytes for ino 55474 root 161889
reset nbytes for ino 55525 root 161889
Fixed the nlink of inode 95666
Fixed the nlink of inode 95666
Fixed the nlink of inode 95666
reset isize for dir 4549 root 164624
reset isize for dir 25810 root 164624
reset isize for dir 25812 root 164624
reset nbytes for ino 26004 root 164624
reset isize for dir 31346 root 164624
reset nbytes for ino 72418 root 164624
reset isize for dir 72587 root 164624
reset isize for dir 72592 root 164624
reset isize for dir 72639 root 164624
reset isize for dir 72640 root 164624
reset isize for dir 72672 root 164624
reset nbytes for ino 73001 root 164624
reset nbytes for ino 73006 root 164624
reset nbytes for ino 73045 root 164624
reset nbytes for ino 73066 root 164624
reset nbytes for ino 73082 root 164624
reset nbytes for ino 73086 root 164624
reset nbytes for ino 73099 root 164624
reset nbytes for ino 73100 root 164624
reset isize for dir 3747 root 164629
reset isize for dir 3752 root 164629
reset isize for dir 3965 root 164629
reset isize for dir 4549 root 164629
reset nbytes for ino 40537 root 164629
reset nbytes for ino 72418 root 164629
reset isize for dir 72587 root 164629
reset isize for dir 72592 root 164629
reset isize for dir 72639 root 164629
reset isize for dir 72640 root 164629
reset isize for dir 72672 root 164629
reset nbytes for ino 73001 root 164629
reset nbytes for ino 73006 root 164629
reset nbytes for ino 73045 root 164629
reset nbytes for ino 73066 root 164629
reset nbytes for ino 73082 root 164629
reset nbytes for ino 73086 root 164629
reset nbytes for ino 73099 root 164629
reset nbytes for ino 73100 root 164629
found 21916315648 bytes used, error(s) found
total csum bytes: 0
total tree bytes: 8880128
total fs tree bytes: 6799360
total extent tree bytes: 606208
btree space waste bytes: 2518033
file data blocks allocated: 36729012224
referenced 36727418880
Quoted 8 lines
gargamel:/var/local/src/btrfs-progs-josefbacik# mount -o ro,recovery /dev/mapper/dshelf1 /mnt/mnt mount: /mnt/mnt: wrong fs type, bad option, bad superblock on /dev/mapper/dshelf1, missing codepage or helper program, or other error[3956372.768821] BTRFS info (device dm-1): disk space caching is enabled [3956372.789085] BTRFS info (device dm-1): has skinny extents [3956372.863763] BTRFS error (device dm-1): dev extent physical offset 709781094400 on devid 1 doesn't have corresponding chunk [3956372.899452] BTRFS error (device dm-1): failed to verify dev extents against chunks: -117 [3956372.926355] BTRFS error (device dm-1): open_ctree failed
Sorry I keep going back and forth on how to deal with this. I've pushed some code, you can run btrfs check --repair again and then try again. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 3 lines · Josef Bacik
Sorry I keep going back and forth on how to deal with this. I've pushed some code, you can run btrfs check --repair again and then try again. Thanks,
Thanks, lots of output, not sure how much you want.
For one:
Device extent[1, 14803716276224, 1073741824] didn't find the relative chunk.
Device extent[1, 14804790018048, 1073741824] didn't find the relative chunk.
Device extent[1, 14805863759872, 1073741824] didn't find the relative chunk.
Device extent[1, 14806937501696, 1073741824] didn't find the relative chunk.
Device extent[1, 14808011243520, 1073741824] didn't find the relative chunk.
super bytes used 21916233728 mismatches actual used 21916332032
Block group[20971520, 8388608] (flags = 34) didn't find the relative chunk.
Dev extent's total-byte(1396938113024) is not equal to byte-used(14599692746752) in dev[1, 216, 1] kernel-shared/extent-tree.c:2479: alloc_reserved_tree_block: Warning: assertion 1 failed, value 1 ./btrfs(btrfs_run_delayed_refs+0x707)[0x5577947c927b] ./btrfs(btrfs_commit_transaction+0x3b)[0x5577947d7fb5] ./btrfs(repair_dev_item_bytes_used+0x6f)[0x5577948340d7] ./btrfs(+0x7d90b)[0x55779481690b]
./btrfs(+0x80193)[0x557794819193]
./btrfs(main+0x94)[0x5577947b1275] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xcd)[0x7f51c74847fd] ./btrfs(_start+0x2a)[0x5577947b0e1a]kernel-shared/extent-tree.c:2479: alloc_reserved_tree_block: Warning: assertion 1 failed, value 1 ./btrfs(btrfs_run_delayed_refs+0x707)[0x5577947c927b] ./btrfs(btrfs_commit_transaction+0x3b)[0x5577947d7fb5] ./btrfs(repair_dev_item_bytes_used+0x6f)[0x5577948340d7] ./btrfs(+0x7d90b)[0x55779481690b]
./btrfs(+0x80193)[0x557794819193]
./btrfs(main+0x94)[0x5577947b1275] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xcd)[0x7f51c74847fd] ./btrfs(_start+0x2a)[0x5577947b0e1a]
WARNING: reserved space leaked, transid=2608372 flag=0x2 bytes_reserved=32768
[3/7] checking free space cache
[4/7] checking fs roots
root 161199 inode 54987 errors 1000, some csum missing
WARNING: reserved space leaked, transid=2608373 flag=0x2 bytes_reserved=32768
root 161199 inode 54988 errors 1100, file extent discount, some csum missing
Found file extent holes:
start: 0, len: 1572864
WARNING: reserved space leaked, transid=2608374 flag=0x2 bytes_reserved=32768
root 161199 inode 54989 errors 3500, file extent discount, nbytes wrong, some csum missing, link count wrong Found file extent holes:
start: 16252928, len: 91824128
unresolved ref dir 54974 index 16 namelen 18 name foo
(...)
Found file extent holes:
start: 197263360, len: 399777792
root 164629 inode 73086 errors 1000, some csum missing
WARNING: reserved space leaked, transid=2608425 flag=0x2 bytes_reserved=32768
root 164629 inode 73094 errors 3500, file extent discount, nbytes wrong, some csum missing, link count wrong Found file extent holes:
start: 0, len: 524288
unresolved ref dir 74963 index 32 namelen 56 name file filetype 0 errors 3
, no dir item, no dir index
WARNING: reserved space leaked, transid=2608426 flag=0x2 bytes_reserved=32768
root 164629 inode 73097 errors 3500, file extent discount, nbytes wrong, some csum missing, link count wrong Found file extent holes:
start: 0, len: 524288
unresolved ref dir 74963 index 36 namelen 56 name file filetype 0 errors 3
, no dir item, no dir index
root 164629 inode 73099 errors 1000, some csum missing
root 164629 inode 73100 errors 1000, some csum missing
unresolved ref dir 791 index 0 namelen 25 name file filetype 1 errors 6, no dir index, no inode ref unresolved ref dir 3676 index 0 namelen 62 name file filetype 1 erro
rs 6, no dir index, no inode ref
ERROR: errors found in fs roots
WARNING: reserved space leaked, flag=0x2 bytes_reserved=32768
nt
deleting dev extent
deleting dev extent
deleting dev extent
deleting dev extent
deleting dev extent
reset devid 1 bytes_used to 1396938113024
No device size related problem found
cache and super generation don't match, space cache will be invalidated found 43832565760 bytes used, error(s) found
total csum bytes: 0
total tree bytes: 17694720
total fs tree bytes: 13598720
total extent tree bytes: 1212416
btree space waste bytes: 5081349
file data blocks allocated: 73458024448
referenced 73454837760
After that check without repair still reports the same errors and mount still fails
[4035459.256276] BTRFS info (device dm-1): disk space caching is enabled [4035459.276458] BTRFS info (device dm-1): has skinny extents [4035459.357797] BTRFS error (device dm-1): chunk 20971520 has missing dev extent, have 0 expect 2 [4035459.385928] BTRFS error (device dm-1): failed to verify dev extents against chunks: -117 [4035459.413170] BTRFS error (device dm-1): open_ctree failed
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 93 lines · Marc MERLIN
Quoted 3 lines · Josef Bacik
Sorry I keep going back and forth on how to deal with this. I've pushed some code, you can run btrfs check --repair again and then try again. Thanks,
Thanks, lots of output, not sure how much you want.
For one:
Device extent[1, 14803716276224, 1073741824] didn't find the relative chunk.
Device extent[1, 14804790018048, 1073741824] didn't find the relative chunk.
Device extent[1, 14805863759872, 1073741824] didn't find the relative chunk.
Device extent[1, 14806937501696, 1073741824] didn't find the relative chunk.
Device extent[1, 14808011243520, 1073741824] didn't find the relative chunk.
super bytes used 21916233728 mismatches actual used 21916332032
Block group[20971520, 8388608] (flags = 34) didn't find the relative chunk.
Dev extent's total-byte(1396938113024) is not equal to byte-used(14599692746752) in dev[1, 216, 1]kernel-shared/extent-tree.c:2479:alloc_reserved_tree_block: Warning: assertion1failed, value 1 ./btrfs(btrfs_run_delayed_refs+0x707)[0x5577947c927b] ./btrfs(btrfs_commit_transaction+0x3b)[0x5577947d7fb5] ./btrfs(repair_dev_item_bytes_used+0x6f)[0x5577948340d7] ./btrfs(+0x7d90b)[0x55779481690b]
./btrfs(+0x80193)[0x557794819193]
./btrfs(main+0x94)[0x5577947b1275] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xcd)[0x7f51c74847fd] ./btrfs(_start+0x2a)[0x5577947b0e1a]kernel-shared/extent-tree.c:2479:alloc_reserved_tree_block: Warning: assertion1failed, value 1 ./btrfs(btrfs_run_delayed_refs+0x707)[0x5577947c927b] ./btrfs(btrfs_commit_transaction+0x3b)[0x5577947d7fb5] ./btrfs(repair_dev_item_bytes_used+0x6f)[0x5577948340d7] ./btrfs(+0x7d90b)[0x55779481690b]
./btrfs(+0x80193)[0x557794819193]
./btrfs(main+0x94)[0x5577947b1275] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xcd)[0x7f51c74847fd] ./btrfs(_start+0x2a)[0x5577947b0e1a]
WARNING: reserved space leaked, transid=2608372 flag=0x2 bytes_reserved=32768
[3/7] checking free space cache
[4/7] checking fs roots
root 161199 inode 54987 errors 1000, some csum missing
WARNING: reserved space leaked, transid=2608373 flag=0x2 bytes_reserved=32768
root 161199 inode 54988 errors 1100, file extent discount, some csum missing
Found file extent holes:start: 0, len: 1572864WARNING: reserved space leaked, transid=2608374 flag=0x2 bytes_reserved=32768
root 161199 inode 54989 errors 3500, file extent discount, nbytes wrong, some csum missing, link count wrong Found file extent holes:
start: 16252928, len: 91824128
unresolved ref dir 54974 index 16 namelen 18 name foo(...)
Found file extent holes:
start: 197263360, len: 399777792root 164629 inode 73086 errors 1000, some csum missing
WARNING: reserved space leaked, transid=2608425 flag=0x2 bytes_reserved=32768
root 164629 inode 73094 errors 3500, file extent discount, nbytes wrong, some csum missing, link count wrong Found file extent holes:
start: 0, len: 524288
unresolved ref dir 74963 index 32 namelen 56 name file filetype 0 errors 3
, no dir item, no dir index
WARNING: reserved space leaked, transid=2608426 flag=0x2 bytes_reserved=32768
root 164629 inode 73097 errors 3500, file extent discount, nbytes wrong, some csum missing, link count wrong Found file extent holes:
start: 0, len: 524288
unresolved ref dir 74963 index 36 namelen 56 name file filetype 0 errors 3
, no dir item, no dir index
root 164629 inode 73099 errors 1000, some csum missing
root 164629 inode 73100 errors 1000, some csum missing
unresolved ref dir 791 index 0 namelen 25 name file filetype 1 errors 6, no dir index, no inode ref unresolved ref dir 3676 index 0 namelen 62 name file filetype 1 erro
rs 6, no dir index, no inode ref
ERROR: errors found in fs roots
WARNING: reserved space leaked, flag=0x2 bytes_reserved=32768
ntdeleting dev extent
deleting dev extent
deleting dev extent
deleting dev extent
deleting dev extent
reset devid 1bytes_usedto 1396938113024
No device size related problem found
cache and super generation don't match, space cache will be invalidated found 43832565760 bytes used, error(s) found
total csum bytes: 0
total tree bytes: 17694720
total fs tree bytes: 13598720
total extent tree bytes: 1212416
btree space waste bytes: 5081349
file data blocks allocated: 73458024448
referenced 73454837760
Quoted 7 lines
After that check without repair still reports the same errors and mount still fails
[4035459.256276] BTRFS info (device dm-1): disk space caching is enabled [4035459.276458] BTRFS info (device dm-1): has skinny extents [4035459.357797] BTRFS error (device dm-1): chunk 20971520 has missing dev extent, have 0 expect 2 [4035459.385928] BTRFS error (device dm-1): failed to verify dev extents against chunks: -117 [4035459.413170] BTRFS error (device dm-1): open_ctree failed
Gaahhh ok I see what I've been fucking up. I had it in my head that system chunks only exist in the super block, but they are both in the super block so we can bootstrap the fs, _and_ in the chunk tree so we don't confuse fsck. This works out for the progs (and to a certain extent the kernel) because it always has to read it from the super block in order to mount, but it falls down in fsck (and in the kernel like the above) when we don't find the same chunk in the chunk tree.
Soooooo I've fixed my idiocy and moved the code around. Unfortunately my last fix deleted the stripes from the sys array, so we need to get those back. So once again run
btrfs rescue recover-chunks <device>
btrfs rescue init-extent-tree <device>
btrfs check --repair <device>
and then it should be good to go as far as the chunks and the device extents and everything. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 3 lines · Josef Bacik
Soooooo I've fixed my idiocy and moved the code around. Unfortunately my last fix deleted the stripes from the sys array, so we need to get those back. So once again run
Thanks for looking into this
Quoted 3 lines
btrfs rescue recover-chunks <device>
btrfs rescue init-extent-tree <device>
btrfs check --repair <device>
Let's go for another round :)
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue recover-chunks /dev/mapper/dshelf1 FS_INFO IS 0x559bd17b9bc0 Couldn't find the last root for 8 FS_INFO AFTER IS 0x559bd17b9bc0 Walking all our trees and pinning down the currently accessible blocks Found missing chunk in super block 20971520-29360128 type 34 adding bg for 20971520 8388608 kernel-shared/extent-tree.c:2829: btrfs_add_block_group: BUG_ON `ret` triggered, value -17 ./btrfs(+0x29f27)[0x559bd01a8f27] ./btrfs(btrfs_add_block_group+0x1e0)[0x559bd01ad700] ./btrfs(btrfs_find_recover_chunks+0x4fe)[0x559bd020fc44] ./btrfs(+0x848ce)[0x559bd02038ce] ./btrfs(handle_command_group+0x49)[0x559bd019717b] ./btrfs(main+0x94)[0x559bd0197275] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xcd)[0x7fe20f24a7fd] ./btrfs(_start+0x2a)[0x559bd0196e1a] Aborted
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 23 lines · Marc MERLIN
Quoted 3 lines · Josef Bacik
Soooooo I've fixed my idiocy and moved the code around. Unfortunately my last fix deleted the stripes from the sys array, so we need to get those back. So once again run
Thanks for looking into this
Quoted 3 lines
btrfs rescue recover-chunks <device>
btrfs rescue init-extent-tree <device>
btrfs check --repair <device>Let's go for another round :)
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue recover-chunks /dev/mapper/dshelf1 FS_INFO IS 0x559bd17b9bc0 Couldn't find the last root for 8 FS_INFO AFTER IS 0x559bd17b9bc0 Walking all our trees and pinning down the currently accessible blocks Found missing chunk in super block 20971520-29360128 type 34 adding bg for 20971520 8388608 kernel-shared/extent-tree.c:2829: btrfs_add_block_group: BUG_ON `ret` triggered, value -17 ./btrfs(+0x29f27)[0x559bd01a8f27]
Quoted 8 lines
./btrfs(btrfs_add_block_group+0x1e0)[0x559bd01ad700] ./btrfs(btrfs_find_recover_chunks+0x4fe)[0x559bd020fc44] ./btrfs(+0x848ce)[0x559bd02038ce] ./btrfs(handle_command_group+0x49)[0x559bd019717b] ./btrfs(main+0x94)[0x559bd0197275] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xcd)[0x7fe20f24a7fd] ./btrfs(_start+0x2a)[0x559bd0196e1a] Aborted
Oops, sorry about that, fixed it up. My wife is travelling this week so I'm going to be a little slower than normal, but hopefully we're getting close to the end here. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 18 lines · Josef Bacik
Quoted 9 lines
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue recover-chunks /dev/mapper/dshelf1 FS_INFO IS 0x559bd17b9bc0 Couldn't find the last root for 8 FS_INFO AFTER IS 0x559bd17b9bc0 Walking all our trees and pinning down the currently accessible blocks Found missing chunk in super block 20971520-29360128 type 34 adding bg for 20971520 8388608 kernel-shared/extent-tree.c:2829: btrfs_add_block_group: BUG_ON `ret` triggered, value -17 ./btrfs(+0x29f27)[0x559bd01a8f27]Quoted 8 lines
./btrfs(btrfs_add_block_group+0x1e0)[0x559bd01ad700] ./btrfs(btrfs_find_recover_chunks+0x4fe)[0x559bd020fc44] ./btrfs(+0x848ce)[0x559bd02038ce] ./btrfs(handle_command_group+0x49)[0x559bd019717b] ./btrfs(main+0x94)[0x559bd0197275] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xcd)[0x7fe20f24a7fd] ./btrfs(_start+0x2a)[0x559bd0196e1a] Aborted
Quoted 3 lines
Oops, sorry about that, fixed it up. My wife is travelling this week so I'm going to be a little slower than normal, but hopefully we're getting close to the end here. Thanks,
No worries. Same?
gargamel:/var/local/src/btrfs-progs-josefbacik# git log | head -5 commit affc3bcd741ca350bbf340e757698281b149c9f3 Author: Josef Bacik <[email protected]> Date: Sat Jun 11 10:58:21 2022 -0400
deal with existing block groups
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue recover-chunks /dev/mapper/dshelf1 FS_INFO IS 0x561aa58a4bc0 Couldn't find the last root for 8 FS_INFO AFTER IS 0x561aa58a4bc0 Walking all our trees and pinning down the currently accessible blocks Found missing chunk in super block 20971520-29360128 type 34 adding bg for 20971520 8388608 kernel-shared/extent-tree.c:2829: btrfs_add_block_group: BUG_ON `ret` triggered, value -17 ./btrfs(+0x29f27)[0x561aa569ef27] ./btrfs(btrfs_add_block_group+0x1e0)[0x561aa56a3700] ./btrfs(btrfs_find_recover_chunks+0x4fe)[0x561aa5705c44] ./btrfs(+0x848ce)[0x561aa56f98ce] ./btrfs(handle_command_group+0x49)[0x561aa568d17b] ./btrfs(main+0x94)[0x561aa568d275] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xcd)[0x7f282855a7fd] ./btrfs(_start+0x2a)[0x561aa568ce1a] Aborted gargamel:/var/local/src/btrfs-progs-josefbacik#
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
In reply to Josef BacikQuoted 3 lines · Josef Bacik
Oops, sorry about that, fixed it up. My wife is travelling this week so I'm going to be a little slower than normal, but hopefully we're getting close to the end here. Thanks,
In the meantime, I'm building the new replacement filesystem. I used your tree to have the latest mkfs.btrfs.
gargamel:/var/local/src/btrfs-progs-josefbacik# ./mkfs.btrfs -m dup -L dshelf1 /dev/mapper/dshelf1n btrfs-progs v5.16.2 See http://btrfs.wiki.kernel.org for more information.
NOTE: several default settings have changed in version 5.15, please make sure
this does not affect your deployments:
- DUP for metadata (-m dup)
- enabled no-holes (-O no-holes)
- enabled free-space-tree (-R free-space-tree)
Label: dshelf1
UUID: ee91f407-39cb-41ef-bd7b-89eee4504ad5
Node size: 16384
Sector size: 4096
Filesystem size: 43.66TiB
Block group profiles:
Data: single 8.00MiB
Metadata: DUP 1.00GiB
System: DUP 8.00MiB
SSD detected: no
Zoned device: no
Incompat features: extref, skinny-metadata, no-holes
Runtime features: free-space-tree
Checksum: crc32c
Number of devices: 1
Devices:
ID SIZE PATH
1 43.66TiB /dev/mapper/dshelf1nDoes this look ok?
(it's still running on top of cryptsetup, which is on top of mdadm raid5, but this time I added --consistency-policy=ppl and I removed bcache in the middle.
Thanks,
Marc
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
In reply to Marc MERLINQuoted 20 lines · Marc MERLIN
Quoted 18 lines · Josef Bacik
Quoted 17 lines
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue recover-chunks /dev/mapper/dshelf1 FS_INFO IS 0x559bd17b9bc0 Couldn't find the last root for 8 FS_INFO AFTER IS 0x559bd17b9bc0 Walking all our trees and pinning down the currently accessible blocks Found missing chunk in super block 20971520-29360128 type 34 adding bg for 20971520 8388608 kernel-shared/extent-tree.c:2829: btrfs_add_block_group: BUG_ON `ret` triggered, value -17 ./btrfs(+0x29f27)[0x559bd01a8f27] ./btrfs(btrfs_add_block_group+0x1e0)[0x559bd01ad700] ./btrfs(btrfs_find_recover_chunks+0x4fe)[0x559bd020fc44] ./btrfs(+0x848ce)[0x559bd02038ce] ./btrfs(handle_command_group+0x49)[0x559bd019717b] ./btrfs(main+0x94)[0x559bd0197275] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xcd)[0x7fe20f24a7fd] ./btrfs(_start+0x2a)[0x559bd0196e1a] Aborted
Quoted 6 lines
Quoted 3 lines
Oops, sorry about that, fixed it up. My wife is travelling this week so I'm going to be a little slower than normal, but hopefully we're getting close to the end here. Thanks,
No worries. Same?
Yeah I missed we were BUG_ON(ret), so my change does the right thing if we get a failure, but I needed to update the core code to return the error. Should work this time, thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
In reply to Marc MERLINQuoted 38 lines · Marc MERLIN
Quoted 3 lines · Josef Bacik
Oops, sorry about that, fixed it up. My wife is travelling this week so I'm going to be a little slower than normal, but hopefully we're getting close to the end here. Thanks,
In the meantime, I'm building the new replacement filesystem. I used your tree to have the latest mkfs.btrfs.
gargamel:/var/local/src/btrfs-progs-josefbacik# ./mkfs.btrfs -m dup -L dshelf1 /dev/mapper/dshelf1n btrfs-progs v5.16.2 See http://btrfs.wiki.kernel.org for more information.NOTE: several default settings have changed in version 5.15, please make sure
this does not affect your deployments:
- DUP for metadata (-m dup)
- enabled no-holes (-O no-holes)
- enabled free-space-tree (-R free-space-tree)Label: dshelf1 UUID: ee91f407-39cb-41ef-bd7b-89eee4504ad5 Node size: 16384 Sector size: 4096 Filesystem size: 43.66TiB Block group profiles: Data: single 8.00MiB Metadata: DUP 1.00GiB System: DUP 8.00MiB SSD detected: no Zoned device: no Incompat features: extref, skinny-metadata, no-holes Runtime features: free-space-tree Checksum: crc32c Number of devices: 1 Devices: ID SIZE PATH 1 43.66TiB /dev/mapper/dshelf1n
Quoted 1 line
Does this look ok?
Yup this is everything I want to see right now. Here's hoping the new setup lasts more than a couple of years between catastrophes. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 29 lines · Josef Bacik
Quoted 29 lines
gargamel:/var/local/src/btrfs-progs-josefbacik# ./mkfs.btrfs -m dup -L dshelf1 /dev/mapper/dshelf1n btrfs-progs v5.16.2 See http://btrfs.wiki.kernel.org for more information.NOTE: several default settings have changed in version 5.15, please make sure
this does not affect your deployments:
- DUP for metadata (-m dup)
- enabled no-holes (-O no-holes)
- enabled free-space-tree (-R free-space-tree)Label: dshelf1 UUID: ee91f407-39cb-41ef-bd7b-89eee4504ad5 Node size: 16384 Sector size: 4096 Filesystem size: 43.66TiB Block group profiles: Data: single 8.00MiB Metadata: DUP 1.00GiB System: DUP 8.00MiB SSD detected: no Zoned device: no Incompat features: extref, skinny-metadata, no-holes Runtime features: free-space-tree Checksum: crc32c Number of devices: 1 Devices: ID SIZE PATH 1 43.66TiB /dev/mapper/dshelf1n
Quoted 4 lines
Quoted 1 line
Does this look ok?
Yup this is everything I want to see right now. Here's hoping the new setup lasts more than a couple of years between catastrophes. Thanks,
Thanks for confirming that the mkfs options look optimal.
I'm making 3 changes
1) no more bcache
2) raid5 write hole protection in mdadm (didn't have it before)
3) I'll make damn sure write caching is off on all the drives
Between those 3, it should be *much* safer, even if it will be slower too.
Your work on fixing the FS is not for naught though, getting back a damaged filesystem in some mountable state will be a great improvement for btrfs and put it more on par with ext4 on recoverability.
Marc
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
In reply to Josef BacikQuoted 3 lines · Josef Bacik
Yeah I missed we were
BUG_ON(ret), so my change does the right thing if we get a failure, but I needed to update the core code to return the error. Should work this time, thanks,
(gdb) run rescue recover-chunks /dev/mapper/dshelf1
Starting program: /var/local/src/btrfs-progs-josefbacik/btrfs rescue recover-chunks /dev/mapper/dshelf1 [Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".FS_INFO IS 0x555555652bc0
Couldn't find the last root for 8FS_INFO AFTER IS 0x555555652bc0
Walking all our trees and pinning down the currently accessible blocks
Found missing chunk in super block 20971520-29360128 type 34
adding bg for 20971520 8388608
Program received signal SIGSEGV, Segmentation fault. setup_free_space (fs_info=0x555555652bc0) at cmds/rescue-recover-chunks.c:500
500 bg->cached = 1;
(gdb) bt
#0 setup_free_space (fs_info=0x555555652bc0) at cmds/rescue-recover-chunks.c:500 #1 btrfs_find_recover_chunks (path=path@entry=0x7fffffffe1ce "/dev/mapper/dshelf1") at cmds/rescue-recover-chunks.c:581 #2 0x00005555555d87d5 in cmd_rescue_recover_chunks (cmd=<optimized out>, argc=<optimized out>, argv=<optimized out>) at cmds/rescue.c:65 #3 0x000055555556c17b in cmd_execute (argv=0x7fffffffdeb8, argc=2, cmd=0x555555648d40 <cmd_struct_rescue_recover_chunks>) at cmds/commands.h:125 #4 handle_command_group (cmd=<optimized out>, argc=2, argv=0x7fffffffdeb8) at btrfs.c:152 #5 0x000055555556c275 in cmd_execute (argv=0x7fffffffdeb0, argc=3, cmd=0x555555649cc0 <cmd_struct_rescue>) at cmds/commands.h:125 #6 main (argc=3, argv=0x7fffffffdeb0) at btrfs.c:405
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 18 lines · Marc MERLIN
Quoted 3 lines · Josef Bacik
Yeah I missed we were
BUG_ON(ret), so my change does the right thing if we get a failure, but I needed to update the core code to return the error. Should work this time, thanks,(gdb) run rescue recover-chunks
/dev/mapper/dshelf1
Starting program:/var/local/src/btrfs-progs-josefbacik/btrfsrescue recover-chunks/dev/mapper/dshelf1[Thread debugging usinglibthread_dbenabled]
Using hostlibthread_dblibrary "/lib/x86_64-linux-gnu/libthread_db.so.1".FS_INFOIS0x555555652bc0
Couldn't find the last root for 8FS_INFOAFTER IS0x555555652bc0
Walking all our trees and pinning down the currently accessible blocks
Found missing chunk in super block 20971520-29360128 type 34
adding bg for 20971520 8388608
Quoted 3 lines
Program received signal SIGSEGV, Segmentation fault.
setup_free_space(fs_info=0x555555652bc0) atcmds/rescue-recover-chunks.c:500
500bg->cached= 1;
Lord 3 stupid things in a row, maybe now we're good? Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
In reply to Josef Bacik ##### ###
# # # # #### #### ###### #### #### ###
# # # # # # # # # # ###
##### # # # # ##### #### #### #
# # # # # # # #
# # # # # # # # # # # # # ###
##### #### #### #### ###### #### #### ###Quoted 1 line · Josef Bacik
btrfs rescue recover-chunks <device>
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue recover-chunks /dev/mapper/dshelf1 FS_INFO IS 0x56528f943bc0 Couldn't find the last root for 8 FS_INFO AFTER IS 0x56528f943bc0 Walking all our trees and pinning down the currently accessible blocks No missing chunks, we're all done doing close??? Recover chunks succeeded, you can run check now
Quoted 1 line
btrfs rescue init-extent-tree <device>
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue init-extent-tree /dev/mapper/dshelf1 FS_INFO IS 0x55fd039e2bc0 Couldn't find the last root for 8 FS_INFO AFTER IS 0x55fd039e2bc0 Walking all our trees and pinning down the currently accessible blocks Clearing the extent root and re-init'ing the block groups deleting space cache for 20971520 deleting space cache for 11106814787584 deleting space cache for 11108962271232 deleting space cache for 11110036013056 deleting space cache for 11111109754880 (...) doing roots (...) processed 49152 of 49463296 possible bytes, 0% Recording extents for root 164633 processed 16384 of 75694080 possible bytes, 0% Recording extents for root 164823 processed 507904 of 63504384 possible bytes, 0% Recording extents for root 18446744073709551607 processed 16384 of 16384 possible bytes, 100% doing block accounting doing close??? Init extent tree finished, you can run check now
Quoted 1 line
btrfs check --repair <device>
FS_INFO AFTER IS 0x5641f2a63bd0
[1/7] checking root items
checksum verify failed on 15645959372800 wanted 0x847c08bf found 0x17a9e2f1
checksum verify failed on 15645959389184 wanted 0x3cc757a7 found 0x3b4eff03
checksum verify failed on 15645681451008 wanted 0x7516a3d9 found 0x97f7437d
checksum verify failed on 15646003970048 wanted 0xf18cc579 found 0x1bc64584
checksum verify failed on 15645867720704 wanted 0x14cc427a found 0x9f516106
checksum verify failed on 15645529604096 wanted 0xd11e24d5 found 0x8d01bc00
checksum verify failed on 15645781344256 wanted 0xb81e3df4 found 0xb5c70846
checksum verify failed on 15645959356416 wanted 0x2fa8537e found 0x90ac1f4e
checksum verify failed on 15645692067840 wanted 0x7874ded3 found 0x1e94afcd
checksum verify failed on 15645529620480 wanted 0x9ba9c3df found 0x1813c193
checksum verify failed on 15645608165376 wanted 0x2af09d83 found 0xdc3aa13d
checksum verify failed on 15645815291904 wanted 0x27e465d0 found 0x3e898f04
checksum verify failed on 15645419667456 wanted 0xde0dab28 found 0x3ceddd16
checksum verify failed on 15645815357440 wanted 0xeff7f183 found 0x21b9d056
checksum verify failed on 15645781196800 wanted 0xef669b11 found 0x46985a93
Fixed 0 roots.
[2/7] checking extents
Chunk[256, 228, 20971520] stripe[1, 20971520] is not found in dev extent
Chunk[256, 228, 20971520] stripe[1, 29360128] is not found in dev extent
[3/7] checking free space cache
(...)
root 164629 inode 73099 errors 1000, some csum missing
root 164629 inode 73100 errors 1000, some csum missing
unresolved ref dir 791 index 0 namelen 25 name file filetype 1 errors 6, no dir index, no inode ref unresolved ref dir 3676 index 0 namelen 62 name file2 filetype 1 errors 6, no dir index, no inode ref
ERROR: errors found in fs roots
Starting repair.
Opening filesystem to check...
Checking filesystem on /dev/mapper/dshelf1
UUID: 96539b8c-ccc9-47bf-9e6c-29305890941e
No device size related problem found
cache and super generation don't match, space cache will be invalidated found 21916200960 bytes used, error(s) found
total csum bytes: 0
total tree bytes: 8765440
total fs tree bytes: 6799360
total extent tree bytes: 573440
btree space waste bytes: 2514656
file data blocks allocated:
gargamel:~# mount /dev/mapper/dshelf1 /mnt/mnt gargamel:~# [4289823.922324] BTRFS info (device dm-1): trying to use backup root at mount time [4289823.922326] BTRFS info (device dm-1): disk space caching is enabled [4289823.922327] BTRFS info (device dm-1): has skinny extents [4289824.188614] BTRFS info (device dm-1): enabling ssd optimizations [4289847.574926] BTRFS info (device dm-1): flagging fs with big metadata feature [4289847.598104] BTRFS info (device dm-1): disk space caching is enabled [4289847.651582] BTRFS info (device dm-1): has skinny extents [4289847.699541] BTRFS info (device dm-1): enabling ssd optimizations [4289847.730931] BTRFS info (device dm-1): checking UUID tree [4289847.798826] BTRFS error (device dm-1): bad tree block level 19 on 15645959372800 [4289847.912586] BTRFS info (device dm-1): read error corrected: ino 0 off 15645959372800 (dev /dev/mapper/dshelf1 sector 29403983072) [4289847.956640] BTRFS info (device dm-1): read error corrected: ino 0 off 15645959376896 (dev /dev/mapper/dshelf1 sector 29403983080) [4289848.000894] BTRFS info (device dm-1): read error corrected: ino 0 off 15645959380992 (dev /dev/mapper/dshelf1 sector 29403983088) [4289848.045141] BTRFS info (device dm-1): read error corrected: ino 0 off 15645959385088 (dev /dev/mapper/dshelf1 sector 29403983096) [4289848.083771] BTRFS error (device dm-1): bad tree block level 39 on 15645959389184 [4289848.111468] BTRFS info (device dm-1): read error corrected: ino 0 off 15645959389184 (dev /dev/mapper/dshelf1 sector 29403983104) [4289848.155838] BTRFS info (device dm-1): read error corrected: ino 0 off 15645959393280 (dev /dev/mapper/dshelf1 sector 29403983112) [4289848.199940] BTRFS info (device dm-1): read error corrected: ino 0 off 15645959397376 (dev /dev/mapper/dshelf1 sector 29403983120) [4289848.244198] BTRFS info (device dm-1): read error corrected: ino 0 off 15645959401472 (dev /dev/mapper/dshelf1 sector 29403983128) [4289848.281912] BTRFS error (device dm-1): bad tree block level 85 on 15645681451008 [4289848.358339] BTRFS info (device dm-1): read error corrected: ino 0 off 15645681451008 (dev /dev/mapper/dshelf1 sector 29403440256) [4289848.396605] BTRFS info (device dm-1): read error corrected: ino 0 off 15645681455104 (dev /dev/mapper/dshelf1 sector 29403440264) [4289848.436740] BTRFS error (device dm-1): bad tree block level 22 on 15646003970048 [4289848.493665] BTRFS error (device dm-1): bad tree block level 127 on 15645867720704 [4289848.549485] BTRFS error (device dm-1): bad tree block level 165 on 15645529604096 [4289848.640033] BTRFS error (device dm-1): bad tree block level 32 on 15645781344256 [4289848.713594] BTRFS error (device dm-1): bad tree block level 16 on 15645959356416 [4289848.786591] BTRFS warning (device dm-1): checksum verify failed on 15645692067840 wanted 0x7874ded3 found 0x1e94afcd level 7 [4289848.837010] BTRFS error (device dm-1): bad tree block level 62 on 15645529620480 [4289848.905220] BTRFS error (device dm-1): bad tree block level 151 on 15645608165376 [4289848.941769] BTRFS error (device dm-1): bad tree block level 24 on 15645815291904 [4289848.991611] BTRFS error (device dm-1): bad tree block level 34 on 15645419667456 [4289849.061467] BTRFS error (device dm-1): bad tree block level 26 on 15645815357440 [4289849.109509] BTRFS error (device dm-1): bad tree block level 18 on 15645781196800
There is still some damage that maybe check/repair should fix, but it's mountable, that's definitely a huge success!
Thanks Josef, that was a lot of work and determination :)
Let me know if there is more you'd like to look at, and/or try and get the FS to a state where it's actually clean, but honestly as long as it mounts, that's already a lot, obviously.
Marc
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Ok, yes and no, it mounted, but 99% of the files are missing. There are a few in lost+found but ultimately almost everything is gone.
The top structure is there, but then mostly empty underneath:
drwxr-xr-x 1 root root 0 Jun 13 11:26 .beeshome/ -rw-r--r-- 1 root root 13569961558 Jul 16 2020 DS1 drwx------ 1 root root 5062 Jun 8 15:52 lost+found/ drwxr-xr-x 1 root root 0 Jun 13 11:26 media/ d????????? ? ? ? ? ? media_daily.20220325_01:02:01/ drwxr-xr-x 1 root root 0 Jun 13 11:26 media_daily.20220326_01:02:01/ drwxr-xr-x 1 root root 0 Jun 13 11:26 media_daily.20220327_01:02:01/ drwxr-xr-x 1 root root 0 Jun 13 11:26 media_daily.20220328_01:02:01/ drwxr-xr-x 1 root root 0 Jun 13 11:26 media_hourly.20220328_22:01:01/ drwxr-xr-x 1 root root 0 Jun 13 11:26 media_hourly.20220328_23:01:01/ drwxr-xr-x 1 root root 0 Jun 13 11:26 media_hourly.20220329_00:01:01/ drwxr-xr-x 1 root root 0 Jun 13 11:26 media_hourly.20220329_01:01:01/ drwxr-xr-x 1 root root 28 Jun 8 16:12 media_ro.20220227_00:24:39/ drwxr-xr-x 1 root root 28 Jun 8 16:22 media_ro.20220306_00:24:43/ drwxr-xr-x 1 root root 0 Jun 13 11:26 media_ro.20220313_00:24:44/ drwxr-xr-x 1 root root 28 Jun 8 16:42 media_ro.20220320_00:24:47/ drwxr-xr-x 1 root root 0 Jun 13 11:26 media_ro.20220327_00:24:32/ drwxr-xr-x 1 root root 0 Jun 13 11:26 media_weekly.20220130_02:03:01/ drwxr-xr-x 1 root root 0 Jun 13 11:26 media_weekly.20220206_02:03:01/ drwxr-xr-x 1 root root 20 Jun 8 16:00 media_weekly.20220213_02:03:01/ drwxr-xr-x 1 root root 0 Jun 13 11:26 media_weekly.20220306_02:03:01/ drwxr-xr-x 1 root root 0 Jun 13 11:26 other/ d????????? ? ? ? ? ? other_daily.20220325_01:02:01/ drwxr-xr-x 1 root root 0 Jun 13 11:26 other_daily.20220326_01:02:01/ drwxr-xr-x 1 root root 0 Jun 13 11:26 other_daily.20220327_01:02:01/ drwxr-xr-x 1 root root 0 Jun 13 11:26 other_daily.20220328_01:02:01/ d????????? ? ? ? ? ? other_hourly.20220328_21:01:01/ drwxr-xr-x 1 root root 0 Jun 13 11:26 other_hourly.20220328_22:01:01/ drwxr-xr-x 1 root root 0 Jun 13 11:26 other_hourly.20220328_23:01:01/ drwxr-xr-x 1 root root 0 Jun 13 11:26 other_hourly.20220329_00:01:01/ drwxr-xr-x 1 root root 0 Jun 13 11:26 other_hourly.20220329_01:01:01/ drwxr-xr-x 1 root root 0 Jun 13 11:26 other_ro.20220227_00:25:38/ drwxr-xr-x 1 root root 0 Jun 13 11:26 other_ro.20220306_00:25:40/ drwxr-xr-x 1 root root 0 Jun 13 11:26 other_ro.20220313_00:26:11/ drwxr-xr-x 1 root root 0 Jun 13 11:26 other_ro.20220320_00:25:35/ drwxr-xr-x 1 root root 0 Jun 13 11:26 other_ro.20220327_00:24:58/ drwxr-xr-x 1 root root 0 Jun 13 11:26 other_weekly.20220130_02:03:01/ drwxr-xr-x 1 root root 0 Jun 13 11:26 other_weekly.20220206_02:03:01/ drwxr-xr-x 1 root root 28 Jun 8 16:06 other_weekly.20220213_02:03:01/ drwxr-xr-x 1 root root 0 Jun 13 11:26 other_weekly.20220306_02:03:01/ drwxr-xr-x 1 root root 0 Jun 13 11:26 SW/ drwxr-xr-x 1 root root 0 Jun 13 11:26 SW_ro.20220227_00:34:48/ drwxr-xr-x 1 root root 0 Jun 13 11:26 SW_ro.20220306_00:33:55/ drwxr-xr-x 1 root root 0 Jun 13 11:26 SW_ro.20220313_00:33:42/ drwxr-xr-x 1 root root 0 Jun 13 11:26 SW_ro.20220320_00:35:42/ drwxr-xr-x 1 root root 0 Jun 13 11:26 SW_ro.20220327_00:32:46/ drwxr-xr-x 1 root root 0 Jun 13 11:26 Sound/ d????????? ? ? ? ? ? Sound_daily.20220325_01:02:01/ drwxr-xr-x 1 root root 0 Jun 13 11:26 Sound_daily.20220326_01:02:01/ drwxr-xr-x 1 root root 0 Jun 13 11:26 Sound_daily.20220327_01:02:01/ drwxr-xr-x 1 root root 0 Jun 13 11:26 Sound_daily.20220328_01:02:01/ d????????? ? ? ? ? ? Sound_hourly.20220328_22:01:01/ drwxr-xr-x 1 root root 0 Jun 13 11:26 Sound_hourly.20220328_23:01:01/ drwxr-xr-x 1 root root 0 Jun 13 11:26 Sound_hourly.20220329_00:01:01/ drwxr-xr-x 1 root root 0 Jun 13 11:26 Sound_hourly.20220329_01:01:01/ drwxr-xr-x 1 root root 0 Jun 13 11:26 Sound_ro.20220227_00:40:41/ drwxr-xr-x 1 root root 0 Jun 13 11:26 Sound_ro.20220306_00:45:46/ drwxr-xr-x 1 root root 0 Jun 13 11:26 Sound_ro.20220313_00:37:25/ drwxr-xr-x 1 merlin hideftp 70 Jun 25 2021 Sound_ro.20220320_00:39:38/ drwxr-xr-x 1 root root 0 Jun 13 11:26 Sound_ro.20220327_00:35:22/ drwxr-xr-x 1 root root 0 Jun 13 11:26 Sound_weekly.20220130_02:03:01/ drwxr-xr-x 1 root root 0 Jun 13 11:26 Sound_weekly.20220206_02:03:01/ drwxr-xr-x 1 root root 0 Jun 13 11:26 Sound_weekly.20220213_02:03:01/ drwxr-xr-x 1 root root 0 Jun 13 11:26 Sound_weekly.20220306_02:03:01/ drwxr-xr-x 1 root root 0 Jun 13 11:26 Med2/ d????????? ? ? ? ? ? Med2_daily.20220325_01:02:01/ drwxr-xr-x 1 root root 0 Jun 13 11:26 Med2_daily.20220326_01:02:01/ drwxr-xr-x 1 root root 0 Jun 13 11:26 Med2_daily.20220327_01:02:01/ drwxr-xr-x 1 root root 0 Jun 13 11:26 Med2_daily.20220328_01:02:01/ d????????? ? ? ? ? ? Med2_hourly.20220328_22:01:01/ drwxr-xr-x 1 root root 0 Jun 13 11:26 Med2_hourly.20220328_23:01:01/ drwxr-xr-x 1 root root 0 Jun 13 11:26 Med2_hourly.20220329_00:01:01/ drwxr-xr-x 1 root root 0 Jun 13 11:26 Med2_hourly.20220329_01:01:01/ drwxr-xr-x 1 root root 20 Jun 8 16:15 Med2_ro.20220227_00:46:32/ drwxr-xr-x 1 root root 20 Jun 8 16:24 Med2_ro.20220306_00:46:14/ drwxr-xr-x 1 root root 20 Jun 8 16:42 Med2_ro.20220313_00:38:01/ drwxr-xr-x 1 merlin hideftp 102 Jun 25 2021 Med2_ro.20220320_00:40:27/ drwxr-xr-x 1 root root 0 Jun 13 11:26 Med2_ro.20220327_00:35:50/ drwxr-xr-x 1 root root 0 Jun 13 11:26 Med2_weekly.20220130_02:03:01/ drwxr-xr-x 1 root root 0 Jun 13 11:26 Med2_weekly.20220206_02:03:01/ drwxr-xr-x 1 root root 20 Jun 8 15:54 Med2_weekly.20220213_02:03:01/ drwxr-xr-x 1 root root 20 Jun 8 16:35 Med2_weekly.20220306_02:03:01/ drwxr-xr-x 1 root root 0 Jun 13 11:26 W/ drwxr-xr-x 1 root root 0 Jun 13 11:26 W_ro.20220227_02:10:25/ drwxr-xr-x 1 root root 4498 Mar 28 11:01 W_ro.20220306_00:47:32/ drwxr-xr-x 1 root root 0 Jun 13 11:26 W_ro.20220313_00:38:28/ drwxr-xr-x 1 root root 34 Jun 8 17:52 W_ro.20220320_01:12:38/ drwxr-xr-x 1 root root 0 Jun 13 11:26 W_ro.20220327_00:37:15/
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
In reply to Marc MERLINQuoted 131 lines · Marc MERLIN
##### ### # # # # #### #### ###### #### #### ### # # # # # # # # # # ### ##### # # # # ##### #### #### # # # # # # # # # # # # # # # # # # # # # # ### ##### #### #### #### ###### #### #### ###Quoted 1 line · Josef Bacik
btrfs rescue recover-chunks <device>
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue recover-chunks /dev/mapper/dshelf1 FS_INFO IS 0x56528f943bc0 Couldn't find the last root for 8 FS_INFO AFTER IS 0x56528f943bc0 Walking all our trees and pinning down the currently accessible blocks No missing chunks, we're all done doing close??? Recover chunks succeeded, you can run check nowQuoted 1 line
btrfs rescue init-extent-tree <device>
gargamel:/var/local/src/btrfs-progs-josefbacik# ./btrfs rescue init-extent-tree /dev/mapper/dshelf1 FS_INFO IS 0x55fd039e2bc0 Couldn't find the last root for 8 FS_INFO AFTER IS 0x55fd039e2bc0 Walking all our trees and pinning down the currently accessible blocks Clearing the extent root and re-init'ing the block groups deleting space cache for 20971520 deleting space cache for 11106814787584 deleting space cache for 11108962271232 deleting space cache for 11110036013056 deleting space cache for 11111109754880 (...) doing roots (...) processed 49152 of 49463296 possible bytes, 0% Recording extents for root 164633 processed 16384 of 75694080 possible bytes, 0% Recording extents for root 164823 processed 507904 of 63504384 possible bytes, 0% Recording extents for root 18446744073709551607 processed 16384 of 16384 possible bytes, 100% doing block accounting doing close??? Init extent tree finished, you can run check nowQuoted 1 line
btrfs check --repair <device>
FS_INFOAFTER IS0x5641f2a63bd0
[1/7] checking root items
checksum verify failed on 15645959372800 wanted0x847c08bffound0x17a9e2f1
checksum verify failed on 15645959389184 wanted0x3cc757a7found0x3b4eff03
checksum verify failed on 15645681451008 wanted0x7516a3d9found0x97f7437d
checksum verify failed on 15646003970048 wanted0xf18cc579found0x1bc64584
checksum verify failed on 15645867720704 wanted0x14cc427afound0x9f516106
checksum verify failed on 15645529604096 wanted0xd11e24d5found0x8d01bc00
checksum verify failed on 15645781344256 wanted0xb81e3df4found0xb5c70846
checksum verify failed on 15645959356416 wanted0x2fa8537efound0x90ac1f4e
checksum verify failed on 15645692067840 wanted0x7874ded3found0x1e94afcd
checksum verify failed on 15645529620480 wanted0x9ba9c3dffound0x1813c193
checksum verify failed on 15645608165376 wanted0x2af09d83found0xdc3aa13d
checksum verify failed on 15645815291904 wanted0x27e465d0found0x3e898f04
checksum verify failed on 15645419667456 wanted0xde0dab28found0x3ceddd16
checksum verify failed on 15645815357440 wanted0xeff7f183found0x21b9d056
checksum verify failed on 15645781196800 wanted0xef669b11found0x46985a93
Fixed 0 roots.
[2/7] checking extents
Chunk[256, 228, 20971520] stripe[1, 20971520] is not found in dev extent
Chunk[256, 228, 20971520] stripe[1, 29360128] is not found in dev extent
[3/7] checking free space cache
(...)
root 164629 inode 73099 errors 1000, some csum missing
root 164629 inode 73100 errors 1000, some csum missing
unresolved ref dir 791 index 0 namelen 25 name file filetype 1 errors 6, no dir index, no inode ref unresolved ref dir 3676 index 0 namelen 62 name file2 filetype 1 errors 6, no dir index, no inode ref
ERROR: errors found in fs rootsStarting repair.
Opening filesystem to check...
Checking filesystem on/dev/mapper/dshelf1
UUID: 96539b8c-ccc9-47bf-9e6c-29305890941e
No device size related problem found
cache and super generation don't match, space cache will be invalidated found 21916200960 bytes used, error(s) found
total csum bytes: 0
total tree bytes: 8765440
total fs tree bytes: 6799360
total extent tree bytes: 573440
btree space waste bytes: 2514656
file data blocks allocated:gargamel:~# mount /dev/mapper/dshelf1 /mnt/mnt gargamel:~# [4289823.922324] BTRFS info (device dm-1): trying to use backup root at mount time [4289823.922326] BTRFS info (device dm-1): disk space caching is enabled [4289823.922327] BTRFS info (device dm-1): has skinny extents [4289824.188614] BTRFS info (device dm-1): enabling ssd optimizations [4289847.574926] BTRFS info (device dm-1): flagging fs with big metadata feature [4289847.598104] BTRFS info (device dm-1): disk space caching is enabled [4289847.651582] BTRFS info (device dm-1): has skinny extents [4289847.699541] BTRFS info (device dm-1): enabling ssd optimizations [4289847.730931] BTRFS info (device dm-1): checking UUID tree [4289847.798826] BTRFS error (device dm-1): bad tree block level 19 on 15645959372800 [4289847.912586] BTRFS info (device dm-1): read error corrected: ino 0 off 15645959372800 (dev /dev/mapper/dshelf1 sector 29403983072) [4289847.956640] BTRFS info (device dm-1): read error corrected: ino 0 off 15645959376896 (dev /dev/mapper/dshelf1 sector 29403983080) [4289848.000894] BTRFS info (device dm-1): read error corrected: ino 0 off 15645959380992 (dev /dev/mapper/dshelf1 sector 29403983088) [4289848.045141] BTRFS info (device dm-1): read error corrected: ino 0 off 15645959385088 (dev /dev/mapper/dshelf1 sector 29403983096) [4289848.083771] BTRFS error (device dm-1): bad tree block level 39 on 15645959389184 [4289848.111468] BTRFS info (device dm-1): read error corrected: ino 0 off 15645959389184 (dev /dev/mapper/dshelf1 sector 29403983104) [4289848.155838] BTRFS info (device dm-1): read error corrected: ino 0 off 15645959393280 (dev /dev/mapper/dshelf1 sector 29403983112) [4289848.199940] BTRFS info (device dm-1): read error corrected: ino 0 off 15645959397376 (dev /dev/mapper/dshelf1 sector 29403983120) [4289848.244198] BTRFS info (device dm-1): read error corrected: ino 0 off 15645959401472 (dev /dev/mapper/dshelf1 sector 29403983128) [4289848.281912] BTRFS error (device dm-1): bad tree block level 85 on 15645681451008 [4289848.358339] BTRFS info (device dm-1): read error corrected: ino 0 off 15645681451008 (dev /dev/mapper/dshelf1 sector 29403440256) [4289848.396605] BTRFS info (device dm-1): read error corrected: ino 0 off 15645681455104 (dev /dev/mapper/dshelf1 sector 29403440264) [4289848.436740] BTRFS error (device dm-1): bad tree block level 22 on 15646003970048 [4289848.493665] BTRFS error (device dm-1): bad tree block level 127 on 15645867720704 [4289848.549485] BTRFS error (device dm-1): bad tree block level 165 on 15645529604096 [4289848.640033] BTRFS error (device dm-1): bad tree block level 32 on 15645781344256 [4289848.713594] BTRFS error (device dm-1): bad tree block level 16 on 15645959356416 [4289848.786591] BTRFS warning (device dm-1): checksum verify failed on 15645692067840 wanted 0x7874ded3 found 0x1e94afcd level 7 [4289848.837010] BTRFS error (device dm-1): bad tree block level 62 on 15645529620480 [4289848.905220] BTRFS error (device dm-1): bad tree block level 151 on 15645608165376 [4289848.941769] BTRFS error (device dm-1): bad tree block level 24 on 15645815291904 [4289848.991611] BTRFS error (device dm-1): bad tree block level 34 on 15645419667456 [4289849.061467] BTRFS error (device dm-1): bad tree block level 26 on 15645815357440 [4289849.109509] BTRFS error (device dm-1): bad tree block level 18 on 15645781196800
Quoted 9 lines
There is still some damage that maybe check/repair should fix, but it's mountable, that's definitely a huge success!
Thanks Josef, that was a lot of work and determination :)
Let me know if there is more you'd like to look at, and/or try and get the FS to a state where it's actually clean, but honestly as long as it mounts, that's already a lot, obviously.
Alright so we have the missing csum things, which can be fixed with
btrfs rescue init-csum-tree <device>
now that everything is back the way it's supposed to be.
After that you can mount the fs and run a scrub, because you have copies of metadata that are fucked, but copies that were ok, which is why I disabled the block error warnings since they were confusing me. Scrub should go along and fix all of that up.
The next thing is to fix the fs errors, which I imagine will cause other problems like not being able to find directories and files and such. Once we've gotten the csum tree and the scrub done we can tackle the remaining fs error problems which should be less terrifying to mess with. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 3 lines · Josef Bacik
Alright so we have the missing csum things, which can be fixed with
btrfs rescue init-csum-tree <device>
(gdb) run rescue init-csum-tree /dev/mapper/dshelf1
Starting program: /var/local/src/btrfs-progs-josefbacik/btrfs rescue init-csum-tree /dev/mapper/dshelf1 [Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".FS_INFO IS 0x555555652bc0
Couldn't find the last root for 8FS_INFO AFTER IS 0x555555652bc0
processed 0 of 21907435520 possible data bytes, 0%
Program received signal SIGSEGV, Segmentation fault.0x00005555555e351a in record_csums_eb (eb=0x5555556f1890, processed=processed@entry=0x7fffffffdbe8) at ./kernel-shared/ctree.h:1762
1762 BTRFS_SETGET_FUNCS(inode_flags, struct btrfs_inode_item, flags, 64);
(gdb) bt
#0 0x00005555555e351a in record_csums_eb (eb=0x5555556f1890, processed=processed@entry=0x7fffffffdbe8) at ./kernel-shared/ctree.h:1762 #1 0x00005555555e3906 in record_csums (root=root@entry=0x5555556f15d0, processed=processed@entry=0x7fffffffdbe8) at cmds/rescue-init-csum-tree.c:292 #2 0x00005555555e3f0f in foreach_root (cb=0x5555555e38fa <record_csums>, fs_info=0x555555652bc0) at cmds/rescue-init-csum-tree.c:338 #3 btrfs_init_csum_tree (path=path@entry=0x7fffffffe1ce "/dev/mapper/dshelf1") at cmds/rescue-init-csum-tree.c:408 #4 0x00005555555d88b1 in cmd_rescue_init_csum_tree (cmd=<optimized out>, argc=<optimized out>, argv=<optimized out>) at cmds/rescue.c:102 #5 0x000055555556c17b in cmd_execute (argv=0x7fffffffdeb8, argc=2, cmd=0x555555648ce0 <cmd_struct_rescue_init_csum_tree>) at cmds/commands.h:125 #6 handle_command_group (cmd=<optimized out>, argc=2, argv=0x7fffffffdeb8) at btrfs.c:152 #7 0x000055555556c275 in cmd_execute (argv=0x7fffffffdeb0, argc=3, cmd=0x555555649cc0 <cmd_struct_rescue>) at cmds/commands.h:125 #8 main (argc=3, argv=0x7fffffffdeb0) at btrfs.c:405
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 18 lines · Marc MERLIN
Quoted 3 lines · Josef Bacik
Alright so we have the missing csum things, which can be fixed with
btrfs rescue init-csum-tree <device>
(gdb) run rescue init-csum-tree
/dev/mapper/dshelf1
Starting program:/var/local/src/btrfs-progs-josefbacik/btrfsrescue init-csum-tree/dev/mapper/dshelf1[Thread debugging usinglibthread_dbenabled]
Using hostlibthread_dblibrary "/lib/x86_64-linux-gnu/libthread_db.so.1".FS_INFOIS0x555555652bc0
Couldn't find the last root for 8FS_INFOAFTER IS0x555555652bc0
processed 0 of 21907435520 possible data bytes, 0%
Program received signal SIGSEGV, Segmentation fault.0x00005555555e351ainrecord_csums_eb(eb=0x5555556f1890, processed=processed@entry=0x7fffffffdbe8) at./kernel-shared/ctree.h:1762
1762BTRFS_SETGET_FUNCS(inode_flags, struct btrfs_inode_item, flags, 64);
(gdb) bt
Quoted 9 lines
#0 0x00005555555e351a in record_csums_eb (eb=0x5555556f1890, processed=processed@entry=0x7fffffffdbe8) at ./kernel-shared/ctree.h:1762 #1 0x00005555555e3906 in record_csums (root=root@entry=0x5555556f15d0, processed=processed@entry=0x7fffffffdbe8) at cmds/rescue-init-csum-tree.c:292 #2 0x00005555555e3f0f in foreach_root (cb=0x5555555e38fa <record_csums>, fs_info=0x555555652bc0) at cmds/rescue-init-csum-tree.c:338 #3 btrfs_init_csum_tree (path=path@entry=0x7fffffffe1ce "/dev/mapper/dshelf1") at cmds/rescue-init-csum-tree.c:408 #4 0x00005555555d88b1 in cmd_rescue_init_csum_tree (cmd=<optimized out>, argc=<optimized out>, argv=<optimized out>) at cmds/rescue.c:102 #5 0x000055555556c17b in cmd_execute (argv=0x7fffffffdeb8, argc=2, cmd=0x555555648ce0 <cmd_struct_rescue_init_csum_tree>) at cmds/commands.h:125 #6 handle_command_group (cmd=<optimized out>, argc=2, argv=0x7fffffffdeb8) at btrfs.c:152 #7 0x000055555556c275 in cmd_execute (argv=0x7fffffffdeb0, argc=3, cmd=0x555555649cc0 <cmd_struct_rescue>) at cmds/commands.h:125 #8 main (argc=3, argv=0x7fffffffdeb0) at btrfs.c:405
Hmm that's not good, I've pushed a patch to see if what I think is happening is actually happening. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 2 lines · Josef Bacik
Hmm that's not good, I've pushed a patch to see if what I think is happening is actually happening. Thanks,
Same?
(gdb) run rescue init-csum-tree /dev/mapper/dshelf1
Starting program: /var/local/src/btrfs-progs-josefbacik/btrfs rescue init-csum-tree /dev/mapper/dshelf1 [Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".FS_INFO IS 0x555555652bc0
Couldn't find the last root for 8FS_INFO AFTER IS 0x555555652bc0
processed 0 of 21907435520 possible data bytes, 0%
Program received signal SIGSEGV, Segmentation fault.record_csums_eb (eb=0x5555556f1890, processed=processed@entry=0x7fffffffdbe8) at ./kernel-shared/ctree.h:1762
1762 BTRFS_SETGET_FUNCS(inode_flags, struct btrfs_inode_item, flags, 64);
(gdb) bt
#0 record_csums_eb (eb=0x5555556f1890, processed=processed@entry=0x7fffffffdbe8) at ./kernel-shared/ctree.h:1762 #1 0x00005555555e394b in record_csums (root=root@entry=0x5555556f15d0, processed=processed@entry=0x7fffffffdbe8) at cmds/rescue-init-csum-tree.c:299 #2 0x00005555555e3f54 in foreach_root (cb=0x5555555e393f <record_csums>, fs_info=0x555555652bc0) at cmds/rescue-init-csum-tree.c:345 #3 btrfs_init_csum_tree (path=path@entry=0x7fffffffe1ce "/dev/mapper/dshelf1") at cmds/rescue-init-csum-tree.c:415 #4 0x00005555555d88b1 in cmd_rescue_init_csum_tree (cmd=<optimized out>, argc=<optimized out>, argv=<optimized out>) at cmds/rescue.c:102 #5 0x000055555556c17b in cmd_execute (argv=0x7fffffffdeb8, argc=2, cmd=0x555555648ce0 <cmd_struct_rescue_init_csum_tree>) at cmds/commands.h:125 #6 handle_command_group (cmd=<optimized out>, argc=2, argv=0x7fffffffdeb8) at btrfs.c:152 #7 0x000055555556c275 in cmd_execute (argv=0x7fffffffdeb0, argc=3, cmd=0x555555649cc0 <cmd_struct_rescue>) at cmds/commands.h:125 #8 main (argc=3, argv=0x7fffffffdeb0) at btrfs.c:405
(gdb) quit
A debugging session is active.
Inferior 1 [process 30169] will be killed.
Quit anyway? (y or n) y
gargamel:/var/local/src/btrfs-progs-josefbacik# git pull Current branch for-marc is up to date.
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 7 lines · Marc MERLIN
Quoted 2 lines · Josef Bacik
Hmm that's not good, I've pushed a patch to see if what I think is happening is actually happening. Thanks,
Same?
Sorry Marc, saw this while putting kids to bed and immediately forgot it. I think I've spotted the problem, you should be good now. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
In reply to Josef BacikQuoted 3 lines · Josef Bacik
Alright so we have the missing csum things, which can be fixed with
btrfs rescue init-csum-tree <device>
Took a while, but it worked now, thanks.
(gdb) run rescue init-csum-tree /dev/mapper/dshelf1
Starting program: /var/local/src/btrfs-progs-josefbacik/btrfs rescue init-csum-tree /dev/mapper/dshelf1 [Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".FS_INFO IS 0x555555652bc0
Couldn't find the last root for 8FS_INFO AFTER IS 0x555555652bc0
processed 21904289792 of 21907435520 possible data bytes, 99%doing close???
Init csum tree finished, you can run check now
Quoted 5 lines
After that you can mount the fs and run a scrub, because you have copies of metadata that are fucked, but copies that were ok, which is why I disabled the block error warnings since they were confusing me. Scrub should go along and fix all of that up.
gargamel:/mnt/mnt# btrfs scrub start -B . running that now, I expect it will take a while.
Quoted 5 lines
The next thing is to fix the fs errors, which I imagine will cause other problems like not being able to find directories and files and such. Once we've gotten the csum tree and the scrub done we can tackle the remaining fs error problems which should be less terrifying to mess with. Thanks,
would that be check --repair ?
Thanks,
Marc
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 2 lines · Marc MERLIN
gargamel:/mnt/mnt# btrfs scrub start -B . running that now, I expect it will take a while.
Never mind, it was fast:
gargamel:/mnt/mnt# btrfs scrub start -B . scrub done for 96539b8c-ccc9-47bf-9e6c-29305890941e Scrub started: Wed Jun 15 07:28:02 2022 Status: finished Duration: 0:03:33 Total to scrub: 111.00GiB Rate: 98.39MiB/s Error summary: verify=14 Corrected: 14 Uncorrectable: 0 Unverified: 0 WARNING: errors detected during scrubbing, corrected
Quoted 7 lines
Quoted 5 lines
The next thing is to fix the fs errors, which I imagine will cause other problems like not being able to find directories and files and such. Once we've gotten the csum tree and the scrub done we can tackle the remaining fs error problems which should be less terrifying to mess with. Thanks,
would that be check --repair ?
here's check without repair:
[1/7] checking root items
[2/7] checking extents
ref mismatch on [11160501911552 16384] extent item 1, found 0 backref 11160501911552 root 7 not referenced back 0x56389bce5cd0 incorrect global backref count on 11160501911552 found 1 wanted 0 backpointer mismatch on [11160501911552 16384]
owner ref check failed [11160501911552 16384]
ref mismatch on [11160502042624 16384] extent item 1, found 0 backref 11160502042624 root 7 not referenced back 0x56389bce44d0 incorrect global backref count on 11160502042624 found 1 wanted 0 backpointer mismatch on [11160502042624 16384]
owner ref check failed [11160502042624 16384]
ref mismatch on [11160502845440 16384] extent item 1, found 0 backref 11160502845440 root 7 not referenced back 0x56389be42060 incorrect global backref count on 11160502845440 found 1 wanted 0 backpointer mismatch on [11160502845440 16384]
owner ref check failed [11160502845440 16384]
ref mismatch on [11160502927360 16384] extent item 1, found 0 backref 11160502927360 root 7 not referenced back 0x56389be42560 incorrect global backref count on 11160502927360 found 1 wanted 0 backpointer mismatch on [11160502927360 16384]
owner ref check failed [11160502927360 16384]
ref mismatch on [15645021241344 16384] extent item 1, found 0 backref 15645021241344 root 7 not referenced back 0x56389bdc98a0 incorrect global backref count on 15645021241344 found 1 wanted 0 backpointer mismatch on [15645021241344 16384]
owner ref check failed [15645021241344 16384]
ERROR: errors found in extent allocation tree or chunk allocation [3/7] checking free space cache
Couldn't find free space inode 1
Couldn't find free space inode 1
(...)
Couldn't find free space inode 1
Couldn't find free space inode 1
[4/7] checking fs roots
root 161199 inode 54988 errors 100, file extent discount Found file extent holes:
start: 0, len: 1572864 root 161199 inode 54989 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes: start: 16252928, len: 91824128 unresolved ref dir 54974 index 16 name foo filetype 0 errors 3, no dir item, no dir index root 161199 inode 55003 errors 500, file extent discount, nbytes wrong Found file extent holes: start: 0, len: 1048576 root 161199 inode 55004 errors 500, file extent discount, nbytes wrong Found file extent holes: start: 0, len: 1048576 unresolved ref dir 56235 index 12 name foo filetype mismatch root 161199 inode 55409 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes: start: 0, len: 524288 unresolved ref dir 55399 index 11 name foo filetype 0 errors 3, no dir item, no dir index root 161199 inode 55410 errors 100, file extent discount Found file extent holes: start: 0, len: 1572864 root 161199 inode 55411 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes: start: 0, len: 524288 unresolved ref dir 55399 index 13 name foo filetype 0 errors 3, no dir item, no dir index root 161199 inode 55412 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes: start: 0, len: 1048576 unresolved ref dir 55399 index 14 name foo filetype 0 errors 3, no dir item, no dir index root 161199 inode 55413 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes: start: 24117248, len: 34611200 unresolved ref dir 55399 index 15 name foo filetype 0 errors 3, no dir item, no dir index root 161199 inode 55459 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes: start: 56098816, len: 265449472 unresolved ref dir 55437 index 23 name foo filetype 0 errors 3, no dir item, no dir index root 161199 inode 55468 errors 100, file extent discount Found file extent holes: start: 27787264, len: 302174208 root 161199 inode 55475 errors 100, file extent discount Found file extent holes: start: 0, len: 1048576 root 161199 inode 55476 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes: start: 28803072, len: 459870208 unresolved ref dir 55437 index 40 name foo filetype 0 errors 3, no dir item, no dir index root 161199 inode 55526 errors 100, file extent discount Found file extent holes: start: 0, len: 524288 root 161199 inode 55527 errors 100, file extent discount Found file extent holes: start: 26738688, len: 462848 root 161199 inode 55528 errors 100, file extent discount Found file extent holes: start: 16252928, len: 184320 root 161199 inode 55530 errors 100, file extent discount Found file extent holes: start: 0, len: 524288 root 161199 inode 55531 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes: start: 4194304, len: 11001856 unresolved ref dir 55511 index 21 name foo filetype 0 errors 3, no dir item, no dir index root 161889 inode 54988 errors 100, file extent discount Found file extent holes: start: 0, len: 1572864 root 161889 inode 54989 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes: start: 16252928, len: 91824128 unresolved ref dir 54974 index 16 name foo filetype 0 errors 3, no dir item, no dir index root 161889 inode 55003 errors 500, file extent discount, nbytes wrong Found file extent holes: start: 0, len: 1048576 root 161889 inode 55004 errors 500, file extent discount, nbytes wrong Found file extent holes: start: 0, len: 1048576 unresolved ref dir 56235 index 48 name foo filetype mismatch root 161889 inode 55409 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes: start: 0, len: 524288 unresolved ref dir 55399 index 11 name foo filetype 0 errors 3, no dir item, no dir index root 161889 inode 55410 errors 100, file extent discount Found file extent holes: start: 0, len: 1572864 root 161889 inode 55411 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes: start: 0, len: 524288 unresolved ref dir 55399 index 13 name foo filetype 0 errors 3, no dir item, no dir index root 161889 inode 55412 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes: start: 0, len: 1048576 unresolved ref dir 55399 index 14 name foo filetype 0 errors 3, no dir item, no dir index root 161889 inode 55413 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes: start: 24117248, len: 34611200 unresolved ref dir 55399 index 15 name foo filetype 0 errors 3, no dir item, no dir index root 161889 inode 55459 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes: start: 56098816, len: 265449472 unresolved ref dir 55437 index 23 name foo filetype 0 errors 3, no dir item, no dir index root 161889 inode 55468 errors 100, file extent discount Found file extent holes: start: 27787264, len: 302174208 root 161889 inode 55475 errors 100, file extent discount Found file extent holes: start: 0, len: 1048576 root 161889 inode 55476 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes: start: 28803072, len: 459870208 unresolved ref dir 55437 index 40 name foo filetype 0 errors 3, no dir item, no dir index root 161889 inode 55526 errors 100, file extent discount Found file extent holes: start: 0, len: 524288 root 161889 inode 55527 errors 100, file extent discount Found file extent holes: start: 26738688, len: 462848 root 161889 inode 55528 errors 100, file extent discount Found file extent holes: start: 16252928, len: 184320 root 161889 inode 55530 errors 100, file extent discount Found file extent holes: start: 0, len: 524288 root 161889 inode 55531 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes: start: 4194304, len: 11001856 unresolved ref dir 55511 index 21 name foo filetype 0 errors 3, no dir item, no dir index root 163920 inode 76551 errors 100, file extent discount Found file extent holes: start: 1037262848, len: 184238080
root 163920 inode 76556 errors 100, file extent discount
Found file extent holes:
start: 1639038976, len: 213225472
unresolved ref dir 791 index 0 name foo filetype 1 errors 6, no dir index, no inode ref unresolved ref dir 3676 index 0 name foo filetype 1 errors 6, no dir index, no inode ref unresolved ref dir 72785 index 720 name foo filetype mismatch
unresolved ref dir 791 index 0 name foo filetype 1 errors 6, no dir index, no inode ref unresolved ref dir 3676 index 0 name foo filetype 1 errors 6, no dir index, no inode ref unresolved ref dir 73103 index 544 name foo filetype mismatch
unresolved ref dir 73103 index 672 name foo filetype mismatch
unresolved ref dir 4179 index 0 name foo filetype 1 errors 6, no dir index, no inode ref unresolved ref dir 4698 index 0 name foo filetype 1 errors 6, no dir index, no inode ref unresolved ref dir 5506 index 0 name foo filetype 1 errors 6, no dir index, no inode ref unresolved ref dir 5546 index 0 name foo filetype 1 errors 6, no dir index, no inode ref
root 164624 inode 25918 errors 500, file extent discount, nbytes wrong
Found file extent holes:
start: 0, len: 1262850048 root 164624 inode 72429 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes: start: 1333788672, len: 3217154048 unresolved ref dir 72438 index 4 name foo filetype 0 errors 3, no dir item, no dir index root 164624 inode 72433 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes: start: 892338176, len: 14957748224 unresolved ref dir 34951 index 13 name foo filetype 0 errors 3, no dir item, no dir index
root 164624 inode 72593 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes:
start: 42074112, len: 413642752
unresolved ref dir 75036 index 19 name foo filetype 0 errors 3, no dir item, no dir index unresolved ref dir 73103 index 1524 name foo filetype mismatch
root 164624 inode 73009 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes:
start: 13869056, len: 53100544 unresolved ref dir 72672 index 134 name foo filetype 1 errors 1, no dir item root 164624 inode 73083 errors 500, file extent discount, nbytes wrong Found file extent holes: start: 197263360, len: 399777792 root 164624 inode 73094 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes: start: 0, len: 524288 unresolved ref dir 74963 index 32 name foo filetype 0 errors 3, no dir item, no dir index
root 164624 inode 73097 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes:
start: 0, len: 524288
unresolved ref dir 74963 index 36 name foo filetype 0 errors 3, no dir item, no dir index unresolved ref dir 791 index 0 name foo filetype 1 errors 6, no dir index, no inode ref unresolved ref dir 3676 index 0 name foo filetype 1 errors 6, no dir index, no inode ref unresolved ref dir 73103 index 540 name foo filetype mismatch
unresolved ref dir 4179 index 0 name foo filetype 1 errors 6, no dir index, no inode ref unresolved ref dir 4698 index 0 name foo filetype 1 errors 6, no dir index, no inode ref unresolved ref dir 5506 index 0 name foo filetype 1 errors 6, no dir index, no inode ref unresolved ref dir 5546 index 0 name foo filetype 1 errors 6, no dir index, no inode ref
root 164629 inode 39921 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes:
start: 759824384, len: 2143326208 unresolved ref dir 10205 index 356 name foo filetype 0 errors 3, no dir item, no dir index root 164629 inode 72429 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes: start: 1333788672, len: 3217154048 unresolved ref dir 72438 index 4 name foo filetype 0 errors 3, no dir item, no dir index root 164629 inode 72433 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes: start: 892338176, len: 14957748224 unresolved ref dir 34951 index 13 name foo filetype 0 errors 3, no dir item, no dir index
root 164629 inode 72593 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes:
start: 42074112, len: 413642752
unresolved ref dir 75036 index 19 name foo filetype 0 errors 3, no dir item, no dir index unresolved ref dir 73103 index 1386 name foo filetype mismatch
root 164629 inode 73009 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes:
start: 13869056, len: 53100544 unresolved ref dir 72672 index 134 name foo filetype 1 errors 1, no dir item root 164629 inode 73083 errors 500, file extent discount, nbytes wrong Found file extent holes: start: 197263360, len: 399777792 root 164629 inode 73094 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes: start: 0, len: 524288 unresolved ref dir 74963 index 32 name foo filetype 0 errors 3, no dir item, no dir index
root 164629 inode 73097 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes:
start: 0, len: 524288
unresolved ref dir 74963 index 36 name foo filetype 0 errors 3, no dir item, no dir index unresolved ref dir 791 index 0 name foo filetype 1 errors 6, no dir index, no inode ref unresolved ref dir 3676 index 0 name foo filetype 1 errors 6, no dir index, no inode ref
ERROR: errors found in fs roots
Opening filesystem to check...
Checking filesystem on /dev/mapper/dshelf1
UUID: 96539b8c-ccc9-47bf-9e6c-29305890941e
found 21941104640 bytes used, error(s) found
total csum bytes: 21390908
total tree bytes: 33587200
total fs tree bytes: 6799360
total extent tree bytes: 655360
btree space waste bytes: 5863130
file data blocks allocated: 36729012224
referenced 36727418880
Marc
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 5 lines · Marc MERLIN
Quoted 2 lines · Marc MERLIN
gargamel:/mnt/mnt# btrfs scrub start -B . running that now, I expect it will take a while.
Quoted 7 lines
Never mind, it was fast:
gargamel:/mnt/mnt# btrfs scrub start -B . scrub done for 96539b8c-ccc9-47bf-9e6c-29305890941e Scrub started: Wed Jun 15 07:28:02 2022 Status: finished Duration: 0:03:33 Total to scrub: 111.00GiB
Hrm shit, this isn't good, don't you have a lot more data than 111gib?
Quoted 36 lines
Rate: 98.39MiB/s Error summary: verify=14 Corrected: 14 Uncorrectable: 0 Unverified: 0WARNING: errors detected during scrubbing, corrected
Quoted 7 lines
Quoted 5 lines
The next thing is to fix the fs errors, which I imagine will cause other problems like not being able to find directories and files and such. Once we've gotten the csum tree and the scrub done we can tackle the remaining fs error problems which should be less terrifying to mess with. Thanks,
would that be check --repair ?
here's check without repair:
[1/7] checking root items
[2/7] checking extents
ref mismatch on [11160501911552 16384] extent item 1, found 0 backref 11160501911552 root 7 not referenced back0x56389bce5cd0incorrect global backref count on 11160501911552 found 1 wanted 0 backpointer mismatch on [11160501911552 16384]
owner ref check failed [11160501911552 16384]
ref mismatch on [11160502042624 16384] extent item 1, found 0 backref 11160502042624 root 7 not referenced back0x56389bce44d0incorrect global backref count on 11160502042624 found 1 wanted 0 backpointer mismatch on [11160502042624 16384]
owner ref check failed [11160502042624 16384]
ref mismatch on [11160502845440 16384] extent item 1, found 0 backref 11160502845440 root 7 not referenced back0x56389be42060incorrect global backref count on 11160502845440 found 1 wanted 0 backpointer mismatch on [11160502845440 16384]
owner ref check failed [11160502845440 16384]
ref mismatch on [11160502927360 16384] extent item 1, found 0 backref 11160502927360 root 7 not referenced back0x56389be42560
Quoted 8 lines
incorrect global backref count on 11160502927360 found 1 wanted 0 backpointer mismatch on [11160502927360 16384]
owner ref check failed [11160502927360 16384]
ref mismatch on [15645021241344 16384] extent item 1, found 0 backref 15645021241344 root 7 not referenced back0x56389bdc98a0incorrect global backref count on 15645021241344 found 1 wanted 0 backpointer mismatch on [15645021241344 16384]
owner ref check failed [15645021241344 16384]
Oh oops, I must have missed this in the init-extent-tree. Let me look into this and I'll let you know when you can run the code again.
Quoted 213 lines
ERROR: errors found in extent allocation tree or chunk allocation [3/7] checking free space cache
Couldn't find free space inode 1
Couldn't find free space inode 1
(...)
Couldn't find free space inode 1
Couldn't find free space inode 1
[4/7] checking fs roots
root 161199 inode 54988 errors 100, file extent discount Found file extent holes:start: 0, len: 1572864root 161199 inode 54989 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes:
start: 16252928, len: 91824128
unresolved ref dir 54974 index 16 name foo filetype 0 errors 3, no dir item, no dir index
root 161199 inode 55003 errors 500, file extent discount, nbytes wrong
Found file extent holes:start: 0, len: 1048576root 161199 inode 55004 errors 500, file extent discount, nbytes wrong
Found file extent holes:
start: 0, len: 1048576
unresolved ref dir 56235 index 12 name foo filetype mismatch
root 161199 inode 55409 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes:
start: 0, len: 524288
unresolved ref dir 55399 index 11 name foo filetype 0 errors 3, no dir item, no dir index
root 161199 inode 55410 errors 100, file extent discount
Found file extent holes:start: 0, len: 1572864root 161199 inode 55411 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes:
start: 0, len: 524288
unresolved ref dir 55399 index 13 name foo filetype 0 errors 3, no dir item, no dir index
root 161199 inode 55412 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes:
start: 0, len: 1048576
unresolved ref dir 55399 index 14 name foo filetype 0 errors 3, no dir item, no dir index
root 161199 inode 55413 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes:
start: 24117248, len: 34611200
unresolved ref dir 55399 index 15 name foo filetype 0 errors 3, no dir item, no dir index
root 161199 inode 55459 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes:
start: 56098816, len: 265449472
unresolved ref dir 55437 index 23 name foo filetype 0 errors 3, no dir item, no dir index
root 161199 inode 55468 errors 100, file extent discount
Found file extent holes:start: 27787264, len: 302174208 root 161199 inode 55475 errors 100, file extent discount Found file extent holes: start: 0, len: 1048576root 161199 inode 55476 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes:
start: 28803072, len: 459870208
unresolved ref dir 55437 index 40 name foo filetype 0 errors 3, no dir item, no dir index
root 161199 inode 55526 errors 100, file extent discount
Found file extent holes:start: 0, len: 524288 root 161199 inode 55527 errors 100, file extent discount Found file extent holes: start: 26738688, len: 462848 root 161199 inode 55528 errors 100, file extent discount Found file extent holes: start: 16252928, len: 184320 root 161199 inode 55530 errors 100, file extent discount Found file extent holes: start: 0, len: 524288root 161199 inode 55531 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes:
start: 4194304, len: 11001856
unresolved ref dir 55511 index 21 name foo filetype 0 errors 3, no dir item, no dir index
root 161889 inode 54988 errors 100, file extent discount
Found file extent holes:start: 0, len: 1572864root 161889 inode 54989 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes:
start: 16252928, len: 91824128
unresolved ref dir 54974 index 16 name foo filetype 0 errors 3, no dir item, no dir index
root 161889 inode 55003 errors 500, file extent discount, nbytes wrong
Found file extent holes:start: 0, len: 1048576root 161889 inode 55004 errors 500, file extent discount, nbytes wrong
Found file extent holes:
start: 0, len: 1048576
unresolved ref dir 56235 index 48 name foo filetype mismatch
root 161889 inode 55409 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes:
start: 0, len: 524288
unresolved ref dir 55399 index 11 name foo filetype 0 errors 3, no dir item, no dir index
root 161889 inode 55410 errors 100, file extent discount
Found file extent holes:start: 0, len: 1572864root 161889 inode 55411 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes:
start: 0, len: 524288
unresolved ref dir 55399 index 13 name foo filetype 0 errors 3, no dir item, no dir index
root 161889 inode 55412 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes:
start: 0, len: 1048576
unresolved ref dir 55399 index 14 name foo filetype 0 errors 3, no dir item, no dir index
root 161889 inode 55413 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes:
start: 24117248, len: 34611200
unresolved ref dir 55399 index 15 name foo filetype 0 errors 3, no dir item, no dir index
root 161889 inode 55459 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes:
start: 56098816, len: 265449472
unresolved ref dir 55437 index 23 name foo filetype 0 errors 3, no dir item, no dir index
root 161889 inode 55468 errors 100, file extent discount
Found file extent holes:start: 27787264, len: 302174208 root 161889 inode 55475 errors 100, file extent discount Found file extent holes: start: 0, len: 1048576root 161889 inode 55476 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes:
start: 28803072, len: 459870208
unresolved ref dir 55437 index 40 name foo filetype 0 errors 3, no dir item, no dir index
root 161889 inode 55526 errors 100, file extent discount
Found file extent holes:start: 0, len: 524288 root 161889 inode 55527 errors 100, file extent discount Found file extent holes: start: 26738688, len: 462848 root 161889 inode 55528 errors 100, file extent discount Found file extent holes: start: 16252928, len: 184320 root 161889 inode 55530 errors 100, file extent discount Found file extent holes: start: 0, len: 524288root 161889 inode 55531 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes:
start: 4194304, len: 11001856
unresolved ref dir 55511 index 21 name foo filetype 0 errors 3, no dir item, no dir index
root 163920 inode 76551 errors 100, file extent discount
Found file extent holes:start: 1037262848, len: 184238080root 163920 inode 76556 errors 100, file extent discount
Found file extent holes:
start: 1639038976, len: 213225472
unresolved ref dir 791 index 0 name foo filetype 1 errors 6, no dir index, no inode ref unresolved ref dir 3676 index 0 name foo filetype 1 errors 6, no dir index, no inode ref unresolved ref dir 72785 index 720 name foo filetype mismatch
unresolved ref dir 791 index 0 name foo filetype 1 errors 6, no dir index, no inode ref unresolved ref dir 3676 index 0 name foo filetype 1 errors 6, no dir index, no inode ref unresolved ref dir 73103 index 544 name foo filetype mismatch
unresolved ref dir 73103 index 672 name foo filetype mismatch
unresolved ref dir 4179 index 0 name foo filetype 1 errors 6, no dir index, no inode ref unresolved ref dir 4698 index 0 name foo filetype 1 errors 6, no dir index, no inode ref unresolved ref dir 5506 index 0 name foo filetype 1 errors 6, no dir index, no inode ref unresolved ref dir 5546 index 0 name foo filetype 1 errors 6, no dir index, no inode ref
root 164624 inode 25918 errors 500, file extent discount, nbytes wrong
Found file extent holes:start: 0, len: 1262850048root 164624 inode 72429 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes:
start: 1333788672, len: 3217154048
unresolved ref dir 72438 index 4 name foo filetype 0 errors 3, no dir item, no dir index
root 164624 inode 72433 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes:
start: 892338176, len: 14957748224
unresolved ref dir 34951 index 13 name foo filetype 0 errors 3, no dir item, no dir index
root 164624 inode 72593 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes:
start: 42074112, len: 413642752
unresolved ref dir 75036 index 19 name foo filetype 0 errors 3, no dir item, no dir index unresolved ref dir 73103 index 1524 name foo filetype mismatch
root 164624 inode 73009 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes:
start: 13869056, len: 53100544
unresolved ref dir 72672 index 134 name foo filetype 1 errors 1, no dir item
root 164624 inode 73083 errors 500, file extent discount, nbytes wrong
Found file extent holes:start: 197263360, len: 399777792root 164624 inode 73094 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes:
start: 0, len: 524288
unresolved ref dir 74963 index 32 name foo filetype 0 errors 3, no dir item, no dir index
root 164624 inode 73097 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes:
start: 0, len: 524288
unresolved ref dir 74963 index 36 name foo filetype 0 errors 3, no dir item, no dir index unresolved ref dir 791 index 0 name foo filetype 1 errors 6, no dir index, no inode ref unresolved ref dir 3676 index 0 name foo filetype 1 errors 6, no dir index, no inode ref unresolved ref dir 73103 index 540 name foo filetype mismatch
unresolved ref dir 4179 index 0 name foo filetype 1 errors 6, no dir index, no inode ref unresolved ref dir 4698 index 0 name foo filetype 1 errors 6, no dir index, no inode ref unresolved ref dir 5506 index 0 name foo filetype 1 errors 6, no dir index, no inode ref unresolved ref dir 5546 index 0 name foo filetype 1 errors 6, no dir index, no inode ref
root 164629 inode 39921 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes:
start: 759824384, len: 2143326208
unresolved ref dir 10205 index 356 name foo filetype 0 errors 3, no dir item, no dir index
root 164629 inode 72429 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes:
start: 1333788672, len: 3217154048
unresolved ref dir 72438 index 4 name foo filetype 0 errors 3, no dir item, no dir index
root 164629 inode 72433 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes:
start: 892338176, len: 14957748224
unresolved ref dir 34951 index 13 name foo filetype 0 errors 3, no dir item, no dir index
root 164629 inode 72593 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes:
start: 42074112, len: 413642752
unresolved ref dir 75036 index 19 name foo filetype 0 errors 3, no dir item, no dir index unresolved ref dir 73103 index 1386 name foo filetype mismatch
root 164629 inode 73009 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes:
start: 13869056, len: 53100544
unresolved ref dir 72672 index 134 name foo filetype 1 errors 1, no dir item
root 164629 inode 73083 errors 500, file extent discount, nbytes wrong
Found file extent holes:start: 197263360, len: 399777792
Quoted 10 lines
root 164629 inode 73094 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes:
start: 0, len: 524288
unresolved ref dir 74963 index 32 name foo filetype 0 errors 3, no dir item, no dir index
root 164629 inode 73097 errors 2500, file extent discount, nbytes wrong, link count wrong Found file extent holes:
start: 0, len: 524288
unresolved ref dir 74963 index 36 name foo filetype 0 errors 3, no dir item, no dir index unresolved ref dir 791 index 0 name foo filetype 1 errors 6, no dir index, no inode ref unresolved ref dir 3676 index 0 name foo filetype 1 errors 6, no dir index, no inode ref
Ok the rest of these are going to take some work to fix up. I'll work on that as well. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 14 lines · Josef Bacik
Quoted 5 lines · Marc MERLIN
Quoted 2 lines · Marc MERLIN
gargamel:/mnt/mnt# btrfs scrub start -B . running that now, I expect it will take a while.Quoted 7 lines
Never mind, it was fast:
gargamel:/mnt/mnt# btrfs scrub start -B . scrub done for 96539b8c-ccc9-47bf-9e6c-29305890941e Scrub started: Wed Jun 15 07:28:02 2022 Status: finished Duration: 0:03:33 Total to scrub: 111.00GiB
Quoted 1 line
Hrm shit, this isn't good, don't you have a lot more data than 111gib?
Yep, it was closer to 14TB. Ok, so it's probably gone after the many commands we ran in the last 2 months.
Quoted 2 lines
Oh oops, I must have missed this in the init-extent-tree. Let me look into this and I'll let you know when you can run the code again.
Is there even a reasonable chance to get the data back at this point, or are we spending effort in not as useful ways?
Quoted 2 lines
Ok the rest of these are going to take some work to fix up. I'll work on that as well. Thanks,
Up to you, happy to continue if it helps your efforts, but it looks like my data is mostly gone.
I do remember one command along this thread that had over 100,000 lines of inodes that were cleared once that bit got automated.
Marc
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 27 lines · Marc MERLIN
Quoted 14 lines · Josef Bacik
Quoted 5 lines · Marc MERLIN
Quoted 2 lines · Marc MERLIN
gargamel:/mnt/mnt# btrfs scrub start -B . running that now, I expect it will take a while.Quoted 7 lines
Never mind, it was fast:
gargamel:/mnt/mnt# btrfs scrub start -B . scrub done for 96539b8c-ccc9-47bf-9e6c-29305890941e Scrub started: Wed Jun 15 07:28:02 2022 Status: finished Duration: 0:03:33 Total to scrub: 111.00GiBQuoted 1 line
Hrm shit, this isn't good, don't you have a lot more data than 111gib?
Yep, it was closer to 14TB. Ok, so it's probably gone after the many commands we ran in the last 2 months.
Quoted 2 lines
Oh oops, I must have missed this in the init-extent-tree. Let me look into this and I'll let you know when you can run the code again.
Is there even a reasonable chance to get the data back at this point, or are we spending effort in not as useful ways?
Quoted 8 lines
Quoted 2 lines
Ok the rest of these are going to take some work to fix up. I'll work on that as well. Thanks,
Up to you, happy to continue if it helps your efforts, but it looks like my data is mostly gone.
I do remember one command along this thread that had over 100,000 lines of inodes that were cleared once that bit got automated.
Yeah I'm going to go rip that code out. I should have paid more attention to what was happening instead of just assuming we had a few corrupt extents that needed to be removed.
I think we've gotten plenty out of this exercise, sorry I ended up nuking all of your data. I know what I need to change to fix these tools to be more useful later on, and I'll just make a bunch of test images to validate the work. Thanks,
Josef
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 9 lines · Josef Bacik
Quoted 5 lines
Up to you, happy to continue if it helps your efforts, but it looks like my data is mostly gone.
I do remember one command along this thread that had over 100,000 lines of inodes that were cleared once that bit got automated.Yeah I'm going to go rip that code out. I should have paid more attention to what was happening instead of just assuming we had a few corrupt extents that needed to be removed.
No worries. I knew this was working on live data and that it was untested code that couuld damage it further :)
Quoted 4 lines
I think we've gotten plenty out of this exercise, sorry I ended up nuking all of your data. I know what I need to change to fix these tools to be more useful later on, and I'll just make a bunch of test images to validate the work. Thanks,
Cool, that was the main goal.
Sorry to everyone else following along, hopefully it was somewhat entertaining :)
Marc
Signature · 3 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R. Home page: http://marc.merlins.org/ | PGP 7F55D5F27AAF9D08
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 2 lines · Marc MERLIN
Sorry to everyone else following along, hopefully it was somewhat entertaining :)
You have no idea. Most entertaining thing this year. Popcorn, suspense, joy, tragedy, redemption.
You really need to put out a tip jar or something. ;D
Eldon
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
I too found the back-and-forth very educational and suspenseful; many thanks for keeping it on the mailing list.
Quoted 10 lines · Eldon
Quoted 2 lines · Marc MERLIN
Sorry to everyone else following along, hopefully it was somewhat entertaining :)
You have no idea. Most entertaining thing this year. Popcorn, suspense, joy, tragedy, redemption.
You really need to put out a tip jar or something. ;D
Eldon
Re: Rebuilding 24TB Raid5 array (was btrfs corruption: parent transid verify failed + open_ctree failed)
Quoted 4 lines · Sweet Tea Dorminy
I too found the back-and-forth very educational and suspenseful; many thanks for keeping it on the mailing list.
It reminded me of my own adventure with Josef a while back. :)
Signature · 1 line
真実はいつも一つ!/ Always, there's only one truth!