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
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html