Hello, I have 2 disks in RAID1, each one having 2 partitions: - 1 for / (BtrFS) - 1 for /home (MD/XFS) For some reasons, 1 disk was removed and readded. I had no issue at readding it to the MD array, but for BtrFS, I had to reboot. Then, I tried to investigate more using qemu with systemrescuecd (kernel 4.9.30 and btrfs-progs v4.9.1). From: /sys/devices/pci0000:00/0000:00:01.1/ata1/host0 I use: # echo 1 > target0:0:1/0:0:1:0/delete to remove sdb and after some changes in the mount point: # echo '- - -' > scsi_host/host0/scan to readd it. Then I executed # btrfs scrub start -B -d /mnt/tmp to fix things but I only get uncorrectable errors and the dmesg is full of 'i/o error' lines Maybe some command is required so that BtrFS accept to reuse the device. I tried: # btrfs replace start -B -f 2 /dev/sdb /mnt/tmp ERROR: ioctl(DEV_REPLACE_STATUS) failed on "/mnt/tmp": Inappropriate ioctl for device Julien -- 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
