Bug 72221 - hang when using btrfs device add on degraded raid5 volume
Summary: hang when using btrfs device add on degraded raid5 volume
Status: NEW
Alias: None
Product: File System
Classification: Unclassified
Component: btrfs (show other bugs)
Hardware: x86-64 Linux
: P1 normal
Assignee: Josef Bacik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-16 23:52 UTC by Chris Murphy
Modified: 2016-03-20 11:31 UTC (History)
1 user (show)

See Also:
Kernel Version: 3.14.0-0.rc6.git0.1.fc21.x86_64
Tree: Fedora
Regression: No


Attachments
dmesg (250.96 KB, text/plain)
2014-03-16 23:52 UTC, Chris Murphy
Details

Description Chris Murphy 2014-03-16 23:52:15 UTC
Created attachment 129661 [details]
dmesg

VirtualBox VM on OS X. Host is fully up to date Fedora 20 (plus rawhide kernel as noted).

#  Create and populate 3x 8TB virtual devices; sd[bcd]
#  Boot kernel 3.13.6-200.fc20.x86_64

btrfs-progs v3.12
mkfs.btrfs -d raid5 -m raid1 /dev/sd[bcd]
mount /mnt
cp -a <source> /mnt/
umount /mnt
poweroff

## In VM, remove sdd virtual disk and replace with blank image (which becomes sdd).
## Boot kernel 3.14.0-0.rc6.git0.1.fc21.x86_64

btrfs replace start 3 /dev/sdd /mnt
"dev_replace cannot yet handle RAID5/RAID6"
btrfs device add /dev/sdd /mnt
## command hangs cannot be aborted 

ps reports D+ status for btrfs process.

During hang captured sysrq t and w. Attached dmesg.

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