linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Replace missing drive in RAID56 BTRFS without mounting.
@ 2016-10-25 14:30 George Chlipala
  2016-10-25 15:16 ` Duncan
  0 siblings, 1 reply; 2+ messages in thread
From: George Chlipala @ 2016-10-25 14:30 UTC (permalink / raw)
  To: linux-btrfs

We had a major failure in one drive in a RAID56 BTRFS volume and that
drive is no longer accessible.   How can I replace the drive without
mounting the filesystem?  I have tried using a degraded mount but I
receive the following error messages

ROOT [prometheus:/root] # mount -v -t btrfs -o
compress=zlib,space_cache,noatime,degraded,ro,recovery
/dev/mapper/crypt10 /mnt2/new_pool/
mount: wrong fs type, bad option, bad superblock on /dev/mapper/crypt10,
       missing codepage or helper program, or other error

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

Here is the output from dmesg...

[938397.877203] BTRFS info (device dm-16): allowing degraded mounts
[938397.879023] BTRFS info (device dm-16): disk space caching is enabled
[938397.880817] BTRFS: has skinny extents
[938397.898619] BTRFS: failed to read chunk tree on dm-16
[938397.911256] BTRFS: open_ctree failed

I have tried a btrfs check...

ROOT [prometheus:/root] # btrfs check -p /dev/mapper/crypt10
warning, device 3 is missing
checksum verify failed on 21561344 found 01354400 wanted E5D6F9B6
checksum verify failed on 21561344 found 790DBB66 wanted 6B6043A7
checksum verify failed on 21561344 found 790DBB66 wanted 6B6043A7
bytenr mismatch, want=21561344, have=3637706752
Couldn't read chunk tree
Couldn't open file system

I have also tried btrfs restore...

ROOT [prometheus:/root] # btrfs restore -l /dev/mapper/crypt10
warning, device 3 is missing
checksum verify failed on 21561344 found 01354400 wanted E5D6F9B6
checksum verify failed on 21561344 found 790DBB66 wanted 6B6043A7
checksum verify failed on 21561344 found 790DBB66 wanted 6B6043A7
bytenr mismatch, want=21561344, have=3637706752
Couldn't read chunk tree
Could not open root, trying backup super
warning, device 12 is missing
warning, device 11 is missing
warning, device 10 is missing
warning, device 9 is missing
warning, device 8 is missing
warning, device 7 is missing
warning, device 6 is missing
warning, device 5 is missing
warning, device 4 is missing
warning, device 3 is missing
warning, device 2 is missing
checksum verify failed on 21020672 found 4EE9E0C6 wanted 7BF0006E
checksum verify failed on 21020672 found 4EE9E0C6 wanted 7BF0006E
bytenr mismatch, want=21020672, have=3637709824
ERROR: cannot read chunk root
Could not open root, trying backup super
warning, device 12 is missing
warning, device 11 is missing
warning, device 10 is missing
warning, device 9 is missing
warning, device 8 is missing
warning, device 7 is missing
warning, device 6 is missing
warning, device 5 is missing
warning, device 4 is missing
warning, device 3 is missing
warning, device 2 is missing
checksum verify failed on 21020672 found 4EE9E0C6 wanted 7BF0006E
checksum verify failed on 21020672 found 4EE9E0C6 wanted 7BF0006E
bytenr mismatch, want=21020672, have=3637709824
ERROR: cannot read chunk root
Could not open root, trying backup super

Is there anything I can do?  Even a partial recovery would be helpful.

Thanks!

- George Chlipala

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

end of thread, other threads:[~2016-10-25 15:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-25 14:30 Replace missing drive in RAID56 BTRFS without mounting George Chlipala
2016-10-25 15:16 ` Duncan

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).