On Tue, Aug 11, 2015 at 2:32 PM, Timothy Normand Miller <theo...@gmail.com> wrote: > If I lose the array, I won't cry. The backup appears to be complete. > But it would be convenient to avoid having to restore from scratch, > and I'm hoping this might help you guys too in some way. I really > like btrfs, and I would like provide you with whatever info might > contribute something.
Well it seems fine if it mounts rw,degraded. Just do a 'btrfs replace start...' with a new drive. Or if you're going to try the old drive that's failing, good luck with that. You might want to at least zero out all the superblocks. Check the wiki for their location, wipefs only removes the signature of the 1st superblock. I don't know if that's enough for the purposes of a btrfs replace start (probably is but I haven't tested it). But then you need to fix this nodatacow thing by not using it as a mount option, and setting it as a subvolume or directory option with chattr +C. That way everything else is checksummed. Then you will use btrfs check --init-csum-tree to compute checksums for everything that right now have none due to nodatacow. -- Chris Murphy -- 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