On Oct 6, 2013, at 5:10 AM, Alfredo Esteban <aedelatorre@xxxxxxxxx> wrote: > >> btrfs device delete /dev/sdh1 /mnt/raid-data/ > ERROR: error removing the device '/dev/sdh1' - Inappropriate ioctl for device It's sortof a generic error, I think it's fixed since I haven't seen this recently with newer kernels. What do you get in dmesg? Any other messages at the time this command was issued? > > Raid has been working fine for a long time. Both devices are present > but /dev/sdh1 is a new empty btrfs partition at the moment. >From your post: >> devid 2 size 149.05GB used 109.01GB path /dev/sdh1 109GB used isn't exactly empty. > I should like to know whether this is an error or "btrfs device > delete" command is not the appropriate one. I just want to know how to > delete sdh1 from raid, add a new partition and balance. > > My kernel version is: 3.8.0-31 I'd upgrade the kernel to 3.10.14 or wait for some balance fixes to get into 3.11.x and the next 3.12 rc. Chris Murphy-- 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
