linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Marcin Solecki <solo@alfazone.pl>
To: linux-btrfs@vger.kernel.org
Subject: recovery problem raid5
Date: Fri, 18 Mar 2016 18:41:32 +0100	[thread overview]
Message-ID: <56EC3DCC.6060101@alfazone.pl> (raw)

[-- Attachment #1: Type: text/plain, Size: 4602 bytes --]

Hello all,
I give up for this problem at restore my data


# uname -a
Linux jarvis.home 4.5.0-1.el7.elrepo.x86_64

# btrfs --version
btrfs-progs v3.19.1

# btrfs fi show
warning, device 4 is missing
bytenr mismatch, want=21020672, have=21217280
Couldn't read chunk root
Label: none  uuid: 27ef2638-b50a-4243-80ed-40c3733ec11d
         Total devices 4 FS bytes used 2.50TiB
         devid    1 size 931.51GiB used 899.71GiB path /dev/sdd
         devid    2 size 931.51GiB used 899.69GiB path /dev/sdb
         devid    3 size 931.51GiB used 899.69GiB path /dev/sdc
         *** Some devices missing

# mount  -o recovery /dev/sda /srv/
mount: wrong fs type, bad option, bad superblock on /dev/sda,
        missing codepage or helper program, or other error

        In some cases useful info is found in syslog - try
        dmesg | tail or so.

dmesg after :
[ 4886.521315] BTRFS info (device sdc): enabling auto recovery
[ 4886.521320] BTRFS info (device sdc): disk space caching is enabled
[ 4886.522853] BTRFS: failed to read chunk tree on sdc
[ 4886.528789] BTRFS: open_ctree failed

#btrfs check --repair /dev/sda
enabling repair mode
warning, device 4 is missing
bytenr mismatch, want=21020672, have=21217280
Couldn't read chunk root
Couldn't open file system

# btrfs rescue chunk-recover -v /dev/sda
All Devices:
         Device: id = 3, name = /dev/sdc
         Device: id = 2, name = /dev/sdb
         Device: id = 1, name = /dev/sda

[ 5164.468272] btrfs[3653]: segfault at 7f454014172e ip 0000000000423479 
sp 00007f4482cec880 error 4 in btrfs[400000+83000]
[ 5168.928317] btrfs[3657]: segfault at 7fd18c14172e ip 0000000000423479 
sp 00007fd0d5858880 error 4 in btrfs[400000+83000]
[ 5173.812457] btrfs[3662]: segfault at 7fd76c14172e ip 0000000000423479 
sp 00007fd6b0e59880 error 4 in btrfs[400000+83000]

# btrfs rescue super-recover -v /dev/sda
All Devices:
         Device: id = 3, name = /dev/sdc
         Device: id = 2, name = /dev/sdb
         Device: id = 1, name = /dev/sda

Before Recovering:
         [All good supers]:
                 device name = /dev/sdc
                 superblock bytenr = 65536

                 device name = /dev/sdc
                 superblock bytenr = 67108864

                 device name = /dev/sdc
                 superblock bytenr = 274877906944

                 device name = /dev/sdb
                 superblock bytenr = 65536

                 device name = /dev/sdb
                 superblock bytenr = 67108864

                 device name = /dev/sdb
                 superblock bytenr = 274877906944

                 device name = /dev/sda
                 superblock bytenr = 65536

                 device name = /dev/sda
                 superblock bytenr = 67108864

                 device name = /dev/sda
                 superblock bytenr = 274877906944

         [All bad supers]:

All supers are valid, no need to recover

# btrfs-show-super /dev/sda
superblock: bytenr=65536, device=/dev/sda
---------------------------------------------------------
csum                    0x61b509bb [match]
bytenr                  65536
flags                   0x1
magic                   _BHRfS_M [match]
fsid                    27ef2638-b50a-4243-80ed-40c3733ec11d
label
generation              69462
root                    1648640000
sys_array_size          290
chunk_root_generation   48545
root_level              1
chunk_root              21020672
chunk_root_level        1
log_root                0
log_root_transid        0
log_root_level          0
total_bytes             4000819544064
bytes_used              2743528714240
sectorsize              4096
nodesize                16384
leafsize                16384
stripesize              4096
root_dir                6
num_devices             4
compat_flags            0x0
compat_ro_flags         0x0
incompat_flags          0xe1
                         ( MIXED_BACKREF |
                           BIG_METADATA |
                           EXTENDED_IREF |
                           RAID56 )
csum_type               0
csum_size               4
cache_generation        69462
uuid_tree_generation    69462
dev_item.uuid           70f4650c-e01d-4613-bd7a-a6834c1c44bb
dev_item.fsid           27ef2638-b50a-4243-80ed-40c3733ec11d [match]
dev_item.type           0
dev_item.total_bytes    1000204886016
dev_item.bytes_used     966057263104
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

thx for helps

-- 


[-- Attachment #2: dmesg.log.txt --]
[-- Type: text/plain, Size: 3382 bytes --]

[   88.423604] BTRFS warning (device sdc): devid 4 uuid c24f39f8-c73c-4a17-bbef-cb8988adcbf7 is missing
[   88.455607] BTRFS info (device sdc): bdev (null) errs: wr 921, rd 164889, flush 0, corrupt 0, gen 0
[   88.800609] BTRFS error (device sdc): bad tree block start 0 1619525632
[   88.800648] BTRFS: Failed to read block groups: -5
[   88.809756] BTRFS: open_ctree failed
[  143.792547] BTRFS info (device sdc): allowing degraded mounts
[  143.792552] BTRFS info (device sdc): disk space caching is enabled
[  143.802719] BTRFS info (device sdc): bdev (null) errs: wr 921, rd 164889, flush 0, corrupt 0, gen 0
[  143.874370] BTRFS error (device sdc): bad tree block start 0 1619525632
[  143.874410] BTRFS: Failed to read block groups: -5
[  143.883571] BTRFS: open_ctree failed
[  402.564374] BTRFS info (device sdc): enabling auto recovery
[  402.564379] BTRFS info (device sdc): disk space caching is enabled
[  402.565551] BTRFS: failed to read chunk tree on sdc
[  402.570197] BTRFS: open_ctree failed
[  604.273452] btrfs[2536]: segfault at 7f7fe014172e ip 0000000000423479 sp 00007f7f21358880 error 4 in btrfs[400000+83000]
[ 1101.315762] BTRFS info (device sdc): enabling auto recovery
[ 1101.315766] BTRFS info (device sdc): disk space caching is enabled
[ 1101.316980] BTRFS: failed to read chunk tree on sdc
[ 1101.323006] BTRFS: open_ctree failed
[ 1124.008691] BTRFS info (device sdc): enabling auto recovery
[ 1124.008695] BTRFS info (device sdc): disk space caching is enabled
[ 1124.009859] BTRFS: failed to read chunk tree on sdc
[ 1124.013344] BTRFS: open_ctree failed
[ 1151.424614] btrfs[2666]: segfault at 7f8ff414172e ip 0000000000423479 sp 00007f8f3bcf3880 error 4 in btrfs[400000+83000]
[ 1191.661205] btrfs[2677]: segfault at 7f060014172e ip 0000000000423479 sp 00007f0545789880 error 4 in btrfs[400000+83000]
[ 2368.120700] BTRFS info (device sdc): enabling auto recovery
[ 2368.120704] BTRFS info (device sdc): disk space caching is enabled
[ 2368.121924] BTRFS: failed to read chunk tree on sdc
[ 2368.126591] BTRFS: open_ctree failed
[ 2370.738712] BTRFS info (device sdc): enabling auto recovery
[ 2370.738717] BTRFS info (device sdc): disk space caching is enabled
[ 2370.740003] BTRFS: failed to read chunk tree on sdc
[ 2370.744624] BTRFS: open_ctree failed
[ 2373.002807] BTRFS info (device sdc): enabling auto recovery
[ 2373.002811] BTRFS info (device sdc): disk space caching is enabled
[ 2373.004001] BTRFS: failed to read chunk tree on sdc
[ 2373.007651] BTRFS: open_ctree failed
[ 2513.800271] BTRFS info (device sdc): enabling auto recovery
[ 2513.800276] BTRFS info (device sdc): disk space caching is enabled
[ 2513.802181] BTRFS: failed to read chunk tree on sdc
[ 2513.808614] BTRFS: open_ctree failed
[ 2972.448037] btrfs[3152]: segfault at 7f454c14172e ip 0000000000423479 sp 00007f4494305880 error 4 in btrfs[400000+83000]
[ 3123.647370] BTRFS info (device sdb): enabling auto recovery
[ 3123.647375] BTRFS info (device sdb): disk space caching is enabled
[ 3123.648233] BTRFS: failed to read chunk root on sdb
[ 3123.655235] BTRFS: open_ctree failed
[ 3131.574580] BTRFS info (device sdb): enabling auto recovery
[ 3131.574585] BTRFS info (device sdb): disk space caching is enabled
[ 3131.575360] BTRFS: failed to read chunk root on sdb
[ 3131.582234] BTRFS: open_ctree failed

             reply	other threads:[~2016-03-18 17:49 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-18 17:41 Marcin Solecki [this message]
2016-03-18 18:02 ` recovery problem raid5 Hugo Mills
2016-03-18 18:08   ` Marcin Solecki
2016-03-18 23:31   ` Chris Murphy
2016-03-18 23:34     ` Hugo Mills
2016-03-18 23:40     ` Chris Murphy
2016-03-19  8:21       ` Marcin Solecki
2016-03-19  0:39   ` Duncan
  -- strict thread matches above, loose matches on Subject: below --
2016-04-29 11:24 Pierre-Matthieu anglade
2016-04-30  1:25 ` Duncan
2016-05-03  9:48   ` Pierre-Matthieu anglade

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56EC3DCC.6060101@alfazone.pl \
    --to=solo@alfazone.pl \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).