Rasmus Abrahamsen
2014-Aug-13 05:35 UTC
delete missing /dev/sdd which is now added as /dev/sdd1
I have a BTRFS mirrored raid on three disks: 500 GB, 1000 GB, 1500 GB. The 1500 GB is going bad. I bought a 4000 GB and wanted to make a 1500 GB and also a 2500 GB partition. By mistake I made a 1.5 GB and did not realize it until much later. I added the 1.5 GB to my raid and tried removing the 1500 GB, I obviously coudn't. I ended up turning off the machine and unplugging the 1500 GB and tried the btrfs delete missing, but that failed too because delete missing needs new space available otherwise it will fail. So I reformatted my 1500 GB and added it to the raid again, it showed up... but twice... I had one empty /dev/sdd and one non-empty /dev/sdd. I figured I could fix it by removing and formatting it again, this time creating a partition using fdisk, it would change the device to /dev/sdd1. I added the /dev/sdd1 to my raid and deleted the missing. Now the /dev/sdd does not show up anymore and I have a /dev/sdd1. But I still have the **** Some devices missing and the command btrfs delete missing /mnt does not actually do anything. I tried btrfs delete /dev/sdd /mnt but it said that /dev/sdd was busy. How can I tell btrfs that it is NOT the same drive? Here is a screenshot from the machine: https://www.dropbox.com/s/f33l4ncsni7wd0s/2014-08-13%2007.31.42.jpg I figured I could somehow change the /dev/ name, but I am not sure how. Rasmus -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html