On 7 April 2018 at 10:56, Qu Wenruo <quwenruo.bt...@gmx.com> wrote:
>
>
> On 2018年04月07日 08:35, Ben Parsons wrote:
>>> btrfs inspect-internal dump-super -Ffa /path
>>
>> superblock: bytenr=65536, device=/dev/sda
>> ---------------------------------------------------------
>> csum_type        0 (crc32c)
>> csum_size        4
>> csum            0x00000000 [DON'T MATCH]
>> bytenr            0
>> flags            0x0
>> magic            ........ [DON'T MATCH]
>> fsid            00000000-0000-0000-0000-000000000000
>
> First super block is completely gone.
>
>> label
>> generation        0
>> root            0
>> sys_array_size        0
>> chunk_root_generation    0
>> root_level        0
>> chunk_root        0
>> chunk_root_level    0
>> log_root        0
>> log_root_transid    0
>> log_root_level        0
>> total_bytes        0
>> bytes_used        0
>> sectorsize        0
>> nodesize        0
>> leafsize (deprecated)        0
>> stripesize        0
>> root_dir        0
>> num_devices        0
>> compat_flags        0x0
>> compat_ro_flags        0x0
>> incompat_flags        0x0
>> cache_generation    0
>> uuid_tree_generation    0
>> dev_item.uuid        00000000-0000-0000-0000-000000000000
>> dev_item.fsid        00000000-0000-0000-0000-000000000000 [match]
>> dev_item.type        0
>> dev_item.total_bytes    0
>> dev_item.bytes_used    0
>> dev_item.io_align    0
>> dev_item.io_width    0
>> dev_item.sector_size    0
>> dev_item.devid        0
>> dev_item.dev_group    0
>> dev_item.seek_speed    0
>> dev_item.bandwidth    0
>> dev_item.generation    0
>> sys_chunk_array[2048]:
>> backup_roots[4]:
>>
>> superblock: bytenr=67108864, device=/dev/sda
>> ---------------------------------------------------------
>> csum_type        65178 (INVALID)
>> csum_size        32
>> csum
>> 0x24f2057c939118ef8cf9c276a05ff294223c99ec79e0b5cfe8ed795fe0a96715
>> [DON'T MATCH]
>> bytenr            6481065229944367737
>
> Neither this backup superblock is valid.
>
>> flags            0x527ffc9117fc11
>>             ( WRITTEN |
>>               CHANGING_FSID |
>>               METADUMP_V2 |
>>               unknown flag: 0x527ff09117fc10 )
>> magic            ...;)... [DON'T MATCH]
>> fsid            7011f2d5-0afe-5dc6-fce2-70e04b80939d
>> label
>> ;.."`....8..8.x.?.N../....z....F..H.......|h].i.C........)........j....<?P..&.......4.(.}'.)....n...9....G..D..^....g.X....g)....L..G...z.|R.V.0...K.~..!..~..C................pO..........@U.>....).......4....d_..5.../.......1.?.r....r5.E..
>> generation        7112314448606197494
> [snip]
>>
>>
>> superblock: bytenr=274877906944, device=/dev/sda
>> ---------------------------------------------------------
>> csum_type        63651 (INVALID)
>> csum_size        32
>> csum
>> 0x39db30683b693c000000004ff05c0073a1fa00db390c32963bae3c0000000037
>> [DON'T MATCH]
>> bytenr            6341162744368070656
>
> 2nd backup is also gone.
>
>> flags            0x9731d639d900f69a
>>             ( RELOC |
>>               CHANGING_FSID |
>>               SEEDING |
>>               unknown flag: 0x9731d630d900f698 )
>> magic            ;.<..... [DON'T MATCH]
>> fsid            e25b006e-a0f9-00df-390a-32923bae3c00
>> label            .9~2.;.<
>> generation        15852938566880484858
>> root            17063576824041017
>> sys_array_size        2956094009
>> chunk_root_generation    9223372036858758203
>> root_level        0
>> chunk_root        2305935309654720512
>> chunk_root_level    212
>> log_root        12624074888383091845
>> log_root_transid    9583660007048386619
>> log_root_level        57
>> total_bytes        14916195329329095163
>> bytes_used        17051482582002489
> [snip]
>
> unfortunately, the filesystem seems to be totally corrupted.
>
>>
>>> Despite that, any extra info on how this happened is also appreciated,
>>> as similar problem happened twice, which means we need to pay attention
>>> on this.
>>
>> I dont know exactly what happened but here is some background:
>>
>> i am running Arch Linux on mainline kernel (4.16.0-1) and mesa-git
>> (101352.498d9d0f4d-1) as I have a rx vega 64
>
> Vega is nice, however I would wait until mesa in extra/ repo get updated.
>
>> over the past few months I have been getting hard locks when opening
>> certain programs (usually due to a bad versions of mesa-git /
>> llvm-git, etc).
>>
>> i was at the time trying to open the program "cheese" and when I did,
>> my machine hard locked and only alt+shift+sysrq+b got my screen to go
>> black - and then did nothing else, so I held the power button for 3
>> seconds and then my machine rebooted.
>
> Pretty common hard power reset.
>
>> looking at journalctl, there is a large stacktrace from kernel: amdgpu
>> (see attached).
>> then when I booted back up the pool (2 disks, 1TB + 2TB) wouldn't mount.
>
> I'd say such corruption is pretty serious.
>
> And what's the profile of the btrfs? If metadata is raid1, we could at
> least try to recovery the superblock from the remaining disk.

I am not sure what the metadata was but the two disks had no parity
and just appeared as a single disk with total space of the two disks

how would i got about recovering the 2nd disk? attached is

btrfs inspect dump-super -Ffa

for the second disk

> And is there special mount options used here like discard?

compress=lzo, noauto

> Thanks,
> Qu
>

Thank you for all your help so far.
Does this mean that the first disk is definatly gone? is there any way
to recover?


Thank,
Ben

>>
>> Thanks,
>> Ben
>>
>> On 7 April 2018 at 09:44, Qu Wenruo <quwenruo.bt...@gmx.com> wrote:
>>>
>>>
>>> On 2018年04月07日 01:03, David Sterba wrote:
>>>> On Fri, Apr 06, 2018 at 11:32:34PM +1000, Ben Parsons wrote:
>>>>> Hi,
>>>>>
>>>>> I just had an unexpected restart and now my btrfs pool wont mount.
>>>>> The error on mount is:
>>>>>
>>>>>     "ERROR: unsupported checksum algorithm 41700"
>>>>>
>>>>> and when running
>>>>>
>>>>>     btrfs inspect-internal dump-super /dev/sda
>>>>>     ERROR: bad magic on superblock on /dev/sda at 65536
>>>>>
>>>>> I saw a thread in the mailing list about it:
>>>>> https://www.spinics.net/lists/linux-btrfs/msg75326.html
>>>>> However I am told on IRC that Qu fixed it using magic.
>>>>>
>>>>> Any help would be much appreciated.
>>>>
>>>> In the previous report, there were 2 isolated areas of superblock
>>>> damaged. Please post output of
>>>>
>>>>       btrfs inspect dump-super /path
>>>
>>> And don't forget -Ffa option.
>>> -F to force btrfs-progs to recognize it as btrfs no matter what the magic is
>>> -f shows all data so we could find all corruption and fix them if possible
>>> -a shows all backup superblocks, and if some backup is good, "btrfs
>>> rescue super-recovery" mentioned by Nikolay would be the best solution.
>>>
>>> Despite that, any extra info on how this happened is also appreciated,
>>> as similar problem happened twice, which means we need to pay attention
>>> on this.
>>>
>>> Thanks,
>>> Qu
>>>
>>> Thanks,
>>> Qu
>>>
>>>>
>>>> so we can see if it's a similar issue.
>>>>
>>>> In case it is, there's a tool in the btrfs-progs repo that can fix the
>>>> individual values.
>>>> --
>>>> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
>>>> the body of a message to majord...@vger.kernel.org
>>>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>>>
superblock: bytenr=65536, device=/dev/sdc1
---------------------------------------------------------
csum_type               41700 (INVALID)
csum_size               32
csum                    
0x3b252d3a00000000000000000000000000000000000000000000000000000000 [match]
bytenr                  65536
flags                   0x1
                        ( WRITTEN )
magic                   _BHRfS_M [match]
fsid                    08e51c76-0068-45ba-bac8-9c1f57363ec6
label                   
generation              1285351
root                    6485326479360
sys_array_size          129
chunk_root_generation   1273669
root_level              1
chunk_root              5518540881920
chunk_root_level        1
log_root                0
log_root_transid        0
log_root_level          0
total_bytes             2979127844864
bytes_used              2924699414528
sectorsize              4096
nodesize                16384
leafsize (deprecated)           16384
stripesize              4096
root_dir                6
num_devices             2
compat_flags            0x0
compat_ro_flags         0x0
incompat_flags          0x5b22400000000169
                        ( MIXED_BACKREF |
                          COMPRESS_LZO |
                          BIG_METADATA |
                          EXTENDED_IREF |
                          SKINNY_METADATA |
                          unknown flag: 0x5b22400000000000 )
cache_generation        1285351
uuid_tree_generation    1285351
dev_item.uuid           9a4489cd-5aee-41e9-925e-7c8c354dd53f
dev_item.fsid           08e51c76-0068-45ba-bac8-9c1f57363ec6 [match]
dev_item.type           0
dev_item.total_bytes    1978922958848
dev_item.bytes_used     1978921910272
dev_item.io_align       4096
dev_item.io_width       4096
dev_item.sector_size    4096
dev_item.devid          1
dev_item.dev_group      0
dev_item.seek_speed     0
dev_item.bandwidth      0
dev_item.generation     0
sys_chunk_array[2048]:
        item 0 key (FIRST_CHUNK_TREE CHUNK_ITEM 5518540865536)
                length 33554432 owner 2 stripe_len 65536 type SYSTEM|RAID1
                io_align 65536 io_width 65536 sector_size 4096
                num_stripes 2 sub_stripes 1
                        stripe 0 devid 1 offset 1014723772416
                        dev_uuid 9a4489cd-5aee-41e9-925e-7c8c354dd53f
                        stripe 1 devid 2 offset 6477053952
                        dev_uuid a409aae3-fafd-49d5-b589-d54eedca628f
backup_roots[4]:
        backup 0:
                backup_tree_root:       6485326479360   gen: 1285351    level: 1
                backup_chunk_root:      5518540881920   gen: 1273669    level: 1
                backup_extent_root:     6485326430208   gen: 1285351    level: 2
                backup_fs_root:         6485326364672   gen: 1285351    level: 2
                backup_dev_root:        4601730236416   gen: 1281190    level: 1
                backup_csum_root:       6485326561280   gen: 1285351    level: 3
                backup_total_bytes:     2979127844864
                backup_bytes_used:      2924699414528
                backup_num_devices:     2

        backup 1:
                backup_tree_root:       6485324480512   gen: 1285348    level: 1
                backup_chunk_root:      5518540881920   gen: 1273669    level: 1
                backup_extent_root:     6485324398592   gen: 1285348    level: 2
                backup_fs_root:         6485324283904   gen: 1285348    level: 2
                backup_dev_root:        4601730236416   gen: 1281190    level: 1
                backup_csum_root:       6485324333056   gen: 1285348    level: 3
                backup_total_bytes:     2979127844864
                backup_bytes_used:      2924699414528
                backup_num_devices:     2

        backup 2:
                backup_tree_root:       6485324955648   gen: 1285349    level: 1
                backup_chunk_root:      5518540881920   gen: 1273669    level: 1
                backup_extent_root:     6485324873728   gen: 1285349    level: 2
                backup_fs_root:         6485324824576   gen: 1285349    level: 2
                backup_dev_root:        4601730236416   gen: 1281190    level: 1
                backup_csum_root:       6485325053952   gen: 1285349    level: 3
                backup_total_bytes:     2979127844864
                backup_bytes_used:      2924699414528
                backup_num_devices:     2

        backup 3:
                backup_tree_root:       6485325922304   gen: 1285350    level: 1
                backup_chunk_root:      5518540881920   gen: 1273669    level: 1
                backup_extent_root:     6485325807616   gen: 1285350    level: 2
                backup_fs_root:         6485325381632   gen: 1285350    level: 2
                backup_dev_root:        4601730236416   gen: 1281190    level: 1
                backup_csum_root:       6485326053376   gen: 1285350    level: 3
                backup_total_bytes:     2979127844864
                backup_bytes_used:      2924699414528
                backup_num_devices:     2


superblock: bytenr=67108864, device=/dev/sdc1
---------------------------------------------------------
csum_type               41700 (INVALID)
csum_size               32
csum                    
0x9b4405f400000000000000000000000000000000000000000000000000000000 [DON'T MATCH]
bytenr                  67108864
flags                   0x1
                        ( WRITTEN )
magic                   _BHRfS_M [match]
fsid                    08e51c76-0068-45ba-bac8-9c1f57363ec6
label                   
generation              1285351
root                    6485326479360
sys_array_size          129
chunk_root_generation   1273669
root_level              1
chunk_root              5518540881920
chunk_root_level        1
log_root                0
log_root_transid        0
log_root_level          0
total_bytes             2979127844864
bytes_used              2924699414528
sectorsize              4096
nodesize                16384
leafsize (deprecated)           16384
stripesize              4096
root_dir                6
num_devices             2
compat_flags            0x0
compat_ro_flags         0x0
incompat_flags          0x5b22400000000169
                        ( MIXED_BACKREF |
                          COMPRESS_LZO |
                          BIG_METADATA |
                          EXTENDED_IREF |
                          SKINNY_METADATA |
                          unknown flag: 0x5b22400000000000 )
cache_generation        1285351
uuid_tree_generation    1285351
dev_item.uuid           9a4489cd-5aee-41e9-925e-7c8c354dd53f
dev_item.fsid           08e51c76-0068-45ba-bac8-9c1f57363ec6 [match]
dev_item.type           0
dev_item.total_bytes    1978922958848
dev_item.bytes_used     1978921910272
dev_item.io_align       4096
dev_item.io_width       4096
dev_item.sector_size    4096
dev_item.devid          1
dev_item.dev_group      0
dev_item.seek_speed     0
dev_item.bandwidth      0
dev_item.generation     0
sys_chunk_array[2048]:
        item 0 key (FIRST_CHUNK_TREE CHUNK_ITEM 5518540865536)
                length 33554432 owner 2 stripe_len 65536 type SYSTEM|RAID1
                io_align 65536 io_width 65536 sector_size 4096
                num_stripes 2 sub_stripes 1
                        stripe 0 devid 1 offset 1014723772416
                        dev_uuid 9a4489cd-5aee-41e9-925e-7c8c354dd53f
                        stripe 1 devid 2 offset 6477053952
                        dev_uuid a409aae3-fafd-49d5-b589-d54eedca628f
backup_roots[4]:
        backup 0:
                backup_tree_root:       6485326479360   gen: 1285351    level: 1
                backup_chunk_root:      5518540881920   gen: 1273669    level: 1
                backup_extent_root:     6485326430208   gen: 1285351    level: 2
                backup_fs_root:         6485326364672   gen: 1285351    level: 2
                backup_dev_root:        4601730236416   gen: 1281190    level: 1
                backup_csum_root:       6485326561280   gen: 1285351    level: 3
                backup_total_bytes:     2979127844864
                backup_bytes_used:      2924699414528
                backup_num_devices:     2

        backup 1:
                backup_tree_root:       6485324480512   gen: 1285348    level: 1
                backup_chunk_root:      5518540881920   gen: 1273669    level: 1
                backup_extent_root:     6485324398592   gen: 1285348    level: 2
                backup_fs_root:         6485324283904   gen: 1285348    level: 2
                backup_dev_root:        4601730236416   gen: 1281190    level: 1
                backup_csum_root:       6485324333056   gen: 1285348    level: 3
                backup_total_bytes:     2979127844864
                backup_bytes_used:      2924699414528
                backup_num_devices:     2

        backup 2:
                backup_tree_root:       6485324955648   gen: 1285349    level: 1
                backup_chunk_root:      5518540881920   gen: 1273669    level: 1
                backup_extent_root:     6485324873728   gen: 1285349    level: 2
                backup_fs_root:         6485324824576   gen: 1285349    level: 2
                backup_dev_root:        4601730236416   gen: 1281190    level: 1
                backup_csum_root:       6485325053952   gen: 1285349    level: 3
                backup_total_bytes:     2979127844864
                backup_bytes_used:      2924699414528
                backup_num_devices:     2

        backup 3:
                backup_tree_root:       6485325922304   gen: 1285350    level: 1
                backup_chunk_root:      5518540881920   gen: 1273669    level: 1
                backup_extent_root:     6485325807616   gen: 1285350    level: 2
                backup_fs_root:         6485325381632   gen: 1285350    level: 2
                backup_dev_root:        4601730236416   gen: 1281190    level: 1
                backup_csum_root:       6485326053376   gen: 1285350    level: 3
                backup_total_bytes:     2979127844864
                backup_bytes_used:      2924699414528
                backup_num_devices:     2


superblock: bytenr=274877906944, device=/dev/sdc1
---------------------------------------------------------
csum_type               41700 (INVALID)
csum_size               32
csum                    
0x66c353c500000000000000000000000000000000000000000000000000000000 [DON'T MATCH]
bytenr                  274877906944
flags                   0x1
                        ( WRITTEN )
magic                   _BHRfS_M [match]
fsid                    08e51c76-0068-45ba-bac8-9c1f57363ec6
label                   
generation              1285351
root                    6485326479360
sys_array_size          129
chunk_root_generation   1273669
root_level              1
chunk_root              5518540881920
chunk_root_level        1
log_root                0
log_root_transid        0
log_root_level          0
total_bytes             2979127844864
bytes_used              2924699414528
sectorsize              4096
nodesize                16384
leafsize (deprecated)           16384
stripesize              4096
root_dir                6
num_devices             2
compat_flags            0x0
compat_ro_flags         0x0
incompat_flags          0x5b22400000000169
                        ( MIXED_BACKREF |
                          COMPRESS_LZO |
                          BIG_METADATA |
                          EXTENDED_IREF |
                          SKINNY_METADATA |
                          unknown flag: 0x5b22400000000000 )
cache_generation        1285351
uuid_tree_generation    1285351
dev_item.uuid           9a4489cd-5aee-41e9-925e-7c8c354dd53f
dev_item.fsid           08e51c76-0068-45ba-bac8-9c1f57363ec6 [match]
dev_item.type           0
dev_item.total_bytes    1978922958848
dev_item.bytes_used     1978921910272
dev_item.io_align       4096
dev_item.io_width       4096
dev_item.sector_size    4096
dev_item.devid          1
dev_item.dev_group      0
dev_item.seek_speed     0
dev_item.bandwidth      0
dev_item.generation     0
sys_chunk_array[2048]:
        item 0 key (FIRST_CHUNK_TREE CHUNK_ITEM 5518540865536)
                length 33554432 owner 2 stripe_len 65536 type SYSTEM|RAID1
                io_align 65536 io_width 65536 sector_size 4096
                num_stripes 2 sub_stripes 1
                        stripe 0 devid 1 offset 1014723772416
                        dev_uuid 9a4489cd-5aee-41e9-925e-7c8c354dd53f
                        stripe 1 devid 2 offset 6477053952
                        dev_uuid a409aae3-fafd-49d5-b589-d54eedca628f
backup_roots[4]:
        backup 0:
                backup_tree_root:       6485326479360   gen: 1285351    level: 1
                backup_chunk_root:      5518540881920   gen: 1273669    level: 1
                backup_extent_root:     6485326430208   gen: 1285351    level: 2
                backup_fs_root:         6485326364672   gen: 1285351    level: 2
                backup_dev_root:        4601730236416   gen: 1281190    level: 1
                backup_csum_root:       6485326561280   gen: 1285351    level: 3
                backup_total_bytes:     2979127844864
                backup_bytes_used:      2924699414528
                backup_num_devices:     2

        backup 1:
                backup_tree_root:       6485324480512   gen: 1285348    level: 1
                backup_chunk_root:      5518540881920   gen: 1273669    level: 1
                backup_extent_root:     6485324398592   gen: 1285348    level: 2
                backup_fs_root:         6485324283904   gen: 1285348    level: 2
                backup_dev_root:        4601730236416   gen: 1281190    level: 1
                backup_csum_root:       6485324333056   gen: 1285348    level: 3
                backup_total_bytes:     2979127844864
                backup_bytes_used:      2924699414528
                backup_num_devices:     2

        backup 2:
                backup_tree_root:       6485324955648   gen: 1285349    level: 1
                backup_chunk_root:      5518540881920   gen: 1273669    level: 1
                backup_extent_root:     6485324873728   gen: 1285349    level: 2
                backup_fs_root:         6485324824576   gen: 1285349    level: 2
                backup_dev_root:        4601730236416   gen: 1281190    level: 1
                backup_csum_root:       6485325053952   gen: 1285349    level: 3
                backup_total_bytes:     2979127844864
                backup_bytes_used:      2924699414528
                backup_num_devices:     2

        backup 3:
                backup_tree_root:       6485325922304   gen: 1285350    level: 1
                backup_chunk_root:      5518540881920   gen: 1273669    level: 1
                backup_extent_root:     6485325807616   gen: 1285350    level: 2
                backup_fs_root:         6485325381632   gen: 1285350    level: 2
                backup_dev_root:        4601730236416   gen: 1281190    level: 1
                backup_csum_root:       6485326053376   gen: 1285350    level: 3
                backup_total_bytes:     2979127844864
                backup_bytes_used:      2924699414528
                backup_num_devices:     2


Reply via email to