On Mar 16, 2014, at 6:51 PM, Marc MERLIN <m...@merlins.org> wrote: > > > polgara:/mnt/btrfs_backupcopy# btrfs device delete /dev/mapper/crypt_sde1 > `pwd` > ERROR: error removing the device '/dev/mapper/crypt_sde1' - Invalid argument
You didn't specify a mount point, is the reason for that error. But also, since you're already effectively degraded with 1 disk you can't remove a 2nd without causing array collapse. You have to add a new device first *and* you have to "rebuild" with balance. Then presumably we can remove the device. But I'm stuck adding so I can't test anything else. > > So from here, it sounds like I can try: > 1) unmount the filesystem > 2) hope that remounting it without that device will work > 3) btrfs device add to recreate the missing drive. > > Before I do #1 and get myself in a worse state than I am (working > filesystem), does that sound correct? > > (again, the data is irrelevant, I have a btrfs receive on it that has > been running for hours and that I'd have to restart, but that's it). Well at this point I'd leave it alone because at least for me, device add hangs that command and all other subsequent btrfs user space commands. So for all I know (untested) the whole volume will block on this device add and is effectively useless. 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