Hi Roman I almost understand :-) - however, I need a bit more information: How do I copy the image file to the 6TB without screwing the existing btrfs up when the fs is not mounted? Should I remove it from the raid again? Also, as you might have noticed, I have a bit of an issue with the entire space of the 6TB disk being added to the btrfs when I added the disk. There's something kinda basic about using btrfs that I haven't really understodd yet. Maybe you - or someone else - can point me in the right direction in terms of documentation. Thanks /klaus On Tue, Nov 14, 2017 at 1:48 PM, Roman Mamedov <rm@xxxxxxxxxxx> wrote: > On Tue, 14 Nov 2017 10:36:22 +0200 > Klaus Agnoletti <klaus@xxxxxxxxxxxx> wrote: > >> Obviously, I want /dev/sdd emptied and deleted from the raid. > > * Unmount the RAID0 FS > > * copy the bad drive using `dd_rescue`[1] into a file on the 6TB drive > (noting how much of it is actually unreadable -- chances are it's mostly > intact) > > * physically remove the bad drive (have a powerdown or reboot for this to be > sure Btrfs didn't remember it somewhere) > > * set up a loop device from the dd_rescue'd 2TB file > > * run `btrfs device scan` > > * mount the RAID0 filesystem > > * run the delete command on the loop device, it will not encounter I/O > errors anymore. > > > [1] Note that "ddrescue" and "dd_rescue" are two different programs for the > same purpose, one may work better than the other. I don't remember which. :) > > -- > With respect, > Roman -- Klaus Agnoletti -- 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
