B.H. On Sun, Jun 28, 2015 at 9:50 PM, Noah Massey <noah.massey@xxxxxxxxx> wrote: > On Sun, Jun 28, 2015 at 2:02 PM, Mordechay Kaganer <mkaganer@xxxxxxxxx> wrote: >> To recover the old device, that's what i'm trying to do. Asked on IRC >> also, no reply. As stated above, the device passes btrfs check without >> errors but cannot mount because it complains about "ongoing replace" >> and the replace device is missing. > > Standard disclaimer, not a dev, just a user. > The following worked for me to recover the old device after > reproducing your situation: > (where loop0 is my "old" device) > > # mount -t btrfs -o degraded /dev/loop0 /mnt > # btrfs replace cancel /mnt > # btrfs umount /mnt > # mount -t btrfs /dev/loop0 /mnt > > mount now succeeds without error. Yeah! That worked even with my old kernel/btrfs-progs. Thank you very much. Now the old volume mounts OK. The next step for me is to run scrub on it to see if the data is actually intact. Then (if it's OK, hopefully) we'll see how to redo the replace. Maybe, unmount and do a simple "dd" will be the best option? At least it's not going to corrupt the original data :-). -- משיח NOW! Moshiach is coming very soon, prepare yourself! יחי אדוננו מורינו ורבינו מלך המשיח לעולם ועד! -- 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
