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

* Re: Replace missing drive in RAID56 BTRFS without mounting.
  2016-10-25 14:30 Replace missing drive in RAID56 BTRFS without mounting George Chlipala
@ 2016-10-25 15:16 ` Duncan
  0 siblings, 0 replies; 2+ messages in thread
From: Duncan @ 2016-10-25 15:16 UTC (permalink / raw)
  To: linux-btrfs

George Chlipala posted on Tue, 25 Oct 2016 09:30:34 -0500 as excerpted:

> 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

Someone should be along with specific help, but FYI, btrfs raid56 mode is 
bugged at this time and may require a major rewrite to fix properly.  As 
a result it's not recommended for anything but testing, and due to 
immaturity of the raid56 code, deployment with backups ready or otherwise 
with data that can be lost has always been the very strong recommendation 
even before these specific bugs were known.

That being the case and since switching to other than raid56 mode is 
strongly recommended anyway, blowing away the existing filesystem and 
recreating in raid1 or raid10 mode, then restoring from backups if the 
data was worth the trouble of having them, is the shortest and most 
efficient way back to operation.

Saving the data on the raid56 may be possible, but it's likely to require 
serious effort and still may not succeed.  As I said, Chris Murphy or 
someone else with experience at trying to recover raid56 should be along 
with more detail, if you'd still prefer to go to that extra effort 
regardless of the real chance it won't help, in case it can.

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman


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