raid 10 drive replacement on old raid6 btrfs volume

2014-11-18 Thread Craig Yoshioka
I started experimenting with an 8 drive BTRFS RAID6, but rebalanced it a while 
ago as RAID10.  Recently though I’ve run into problems when trying to replace a 
drive.

 Nov 18 10:18:44 ganymede kernel: BTRFS warning (device sdk): dev_replace 
 cannot yet handle RAID5/RAID6

Even though df shows RAID10:

 Data, RAID10: total=4.65TiB, used=4.62TiB
 System, RAID10: total=64.00MiB, used=432.00KiB
 Metadata, RAID10: total=34.00GiB, used=31.36GiB
 GlobalReserve, single: total=512.00MiB, used=0.00B

Am I out of luck and need to copy everything off and start over?

Thanks,
-Craig

--
To unsubscribe from this list: send the line unsubscribe linux-btrfs in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: raid 10 drive replacement on old raid6 btrfs volume

2014-11-18 Thread Chris Murphy

On Nov 18, 2014, at 11:22 AM, Craig Yoshioka crai...@gmail.com wrote:

 I started experimenting with an 8 drive BTRFS RAID6, but rebalanced it a 
 while ago as RAID10.  Recently though I’ve run into problems when trying to 
 replace a drive.
 
 Nov 18 10:18:44 ganymede kernel: BTRFS warning (device sdk): dev_replace 
 cannot yet handle RAID5/RAID6
 
 Even though df shows RAID10:
 
 Data, RAID10: total=4.65TiB, used=4.62TiB
 System, RAID10: total=64.00MiB, used=432.00KiB
 Metadata, RAID10: total=34.00GiB, used=31.36GiB
 GlobalReserve, single: total=512.00MiB, used=0.00B
 
 Am I out of luck and need to copy everything off and start over?

Interesting, seems like a bug.

Anyway you should be able to do one of two things: ‘btrfs device add’ to add 
new device, and ‘btrfs device delete’ the old device; OR
you can physically remove the old device, connect the new device, and then 
‘btrfs device add’ new, and ‘btrfs device delete missing’ since you won’t be 
able to designate the disconnected old device.

Chris Murphy--
To unsubscribe from this list: send the line unsubscribe linux-btrfs in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html