Bug 121471 - degraded raid5, rescue chunk-recover always fails
Summary: degraded raid5, rescue chunk-recover always fails
Status: NEW
Alias: None
Product: File System
Classification: Unclassified
Component: btrfs (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Josef Bacik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-04 22:57 UTC by Chris Murphy
Modified: 2016-07-04 22:57 UTC (History)
0 users

See Also:
Kernel Version: 4.6.3-300.fc24.x86_64
Tree: Fedora
Regression: No


Attachments

Description Chris Murphy 2016-07-04 22:57:26 UTC
btrfs-progs-4.6-1.fc25.x86_64

1. Create 3 50G thinp LV's
2. mkfs.btrfs -m raid5 -d raid5 /dev/VG/[123]
3. mount /dev/VG/1 /mnt/0
4. copy a file to /mnt/0
5. umount /mnt/0
6. lvchange -an /dev/VG/1  ## to simulate failure
7. btrfs dev scan
8. btrfs rescue chunk-recover /dev/VG/2
Scanning: DONE in dev0, DONE in dev1                              
open with broken chunk error
Chunk tree recovery failed

Expected one of these results:
1. The chunk tree is not damaged, recovery not needed.
2. The chunk tree is damaged (seems impossible in this case), but should be fixed.
3. The state of the chunk tree can't be determined or can't be fixed, because it's degraded and currently the tool doesn't support degraded raid56, so fail before scanning and state that it's not a supported configuration.

Note You need to log in before you can comment on or make changes to this bug.