-----Original message----- From: Hugo Mills <h...@carfax.org.uk> Sent: Fri 01-23-2015 08:48 pm Subject: Re: Recovery Operation With Multiple Devices Attachment: signature.asc To: Brett King <brett.k...@commandict.com.au>; CC: linux-btrfs@vger.kernel.org; > On Fri, Jan 23, 2015 at 06:53:42PM +1100, Brett King wrote: > > Hi All, > > Just wondering how 'btrfs recovery' operates, when the source device given > > is > one of many in an MD array - I can't find anything documentation beyond a > single device use case. > > > > Does it automatically include all devices in the relevant MD array as > > occurs > when mounting, or does it only restore the data which happened to be written > to > the specific, single device given ? > > Neither. :) > > It automatically includes all devices as occurs when running > btrfsck.
Fantastic - that is very powerful and exactly what I need. OK, it's a relatively pointless distinction, but the > mechanisms are slightly different. > > > From an inverse perspective, how can I restore all data including > > snapshots, > which are spread across a damaged MD FS to a new (MD) FS ? > > btrfs restore -l will show you the list of tree roots, which (for > trees numbered 256 and up) correspond to subvolumes and snapshots. You > can then use -r to select the tree to restore. Great info, will keep that in the tool box ! > > > Can send / receive do this perhaps ? > > Yes, but only if you can mount the FS. > > Hugo. Excellent, much appreciated. > > -- > Hugo Mills | I know of three kinds: hot, cool, and > hugo@... carfax.org.uk | what-time-does-the-tune-start? > http://carfax.org.uk/ | > PGP: 65E74AC0 | Chris Dollin > -- 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