On Sat, Sep 12, 2015 at 04:51:18PM -0600, Martin Bakiev wrote: > Hi guys, > > I'm just doing testing with btrfs and I ran into a crash when > simulating a failed drive. I yanked out one (/dev/sdc) of 4 drives and > tried to replace it with another (/dev/sdf) with this command: > > btrfs replace start missing /dev/sdf /mount_point -f > > That seemed to cause a crash, you can check out the attached dmesg > file for stack/more info. I was told to report the crash on from IRC. > I hope this helps. > > Other info: > uname -a: > Linux fedora-nas 4.1.6-201.fc22.x86_64 #1 SMP Fri Sep 4 17:49:24 UTC > 2015 x86_64 x86_64 x86_64 GNU/Linux > > btrfs --version > btrfs-progs v4.1 > > btrfs fi show > Label: 'raid5' uuid: 8b17c1d2-4ef6-4946-b77f-eac57c4e23a6 > Total devices 5 FS bytes used 18.32GiB > devid 0 size 4.55TiB used 7.38GiB path /dev/sdf > devid 1 size 4.55TiB used 7.38GiB path /dev/sdb > devid 3 size 4.55TiB used 7.38GiB path /dev/sdd > devid 4 size 4.55TiB used 7.38GiB path /dev/sde > *** Some devices missing > > btrfs fi df > Data, RAID5: total=21.00GiB, used=18.30GiB > System, RAID5: total=96.00MiB, used=16.00KiB > Metadata, RAID5: total=1.03GiB, used=19.59MiB > GlobalReserve, single: total=16.00MiB, used=0.00B > > dmesg attached. > > Thanks, > Martin Thanks for the report, Martin. This should be fixed in v4.3-rc1 if you want to give that a spin. Specifically, you'll want these commits: 4a770891d9dd Btrfs: fix parity scrub of RAID 5/6 with missing device 73ff61dbe5ed Btrfs: fix device replace of a missing RAID 5/6 device b4ee1782686d Btrfs: add RAID 5/6 BTRFS_RBIO_REBUILD_MISSING operation 7cb2c4202ed5 Btrfs: count devices correctly in readahead during RAID 5/6 replace 03679ade86b2 Btrfs: remove misleading handling of missing device scrub -- Omar -- 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
