Hi,

I'm getting an error when trying to delete a device from a raid1 (data
and metadata mirrored).

> btrfs filesystem show
failed to read /dev/sr0
Label: none  uuid: 78b5162b-489e-4de1-a989-a47b91adef50
    Total devices 2 FS bytes used 107.64GB
    devid    2 size 149.05GB used 109.01GB path /dev/sdh1
    devid    1 size 156.81GB used 109.03GB path /dev/sdb6

Btrfs v0.20-rc1

> btrfs device delete /dev/sdh1 /mnt/raid-data/
ERROR: error removing the device '/dev/sdh1' - Inappropriate ioctl for device

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.

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

Thanks,

Alfredo
--
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

Reply via email to