Re: Copying a disk containing a btrfs filesystem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



George Eleftheriou posted on Thu, 10 Apr 2014 16:00:06 +0200 as excerpted:

> Maybe there is another much more complicated solution:
> 
> Plug the old disk in a USB dock/case, do the same for the new disk in
> another dock/case, plug both docks/cases in another linux system running
> recent kernel and btrfs-progs and convert to a "-dconvert=raid1
> -mconvert=raid1" profile with a balance. Then degrade it by removing the
> old disk and rebalance-convert back to single or DUP profile (i am not
> quite sure this is even possible).
> 
> Just an idea. I wouldn't trust me.

Creative idea, actually, and one I've seen come up here before tho if you 
read my earlier response I didn't mention it myself, as I failed to 
recall it.

But yes, it is somewhat more complicated, and sort of an abuse of 
existing features for a purpose they weren't intended for.  It should 
still work and such unintended purpose uses are a good thing, but because 
it is unintended usage, it won't have been tested much if at all, and 
given that btrfs isn't itself fully stable yet, there's a fair likelihood 
that some unanticipated complexities would arise while doing it, as well.

Meanwhile, by the very fact that btrfs is /not/ yet entirely stable, 
there's even more reason than normal to have good, tested backups.  Given 
that, there should be no harm in trying this, since even if it somehow 
kills the working copy, one can still restore from those already tested 
backups.  And someone's gotta be the first to test this method and report 
on how it went, right?

Meanwhile (2), given the existence of those tested backups, there's yet 
another way to accomplish things.  Simply restore from the backups the 
same way you would if the working copy went down and you had to restore 
it, only restore to the new device instead of the old one.  =:^)

(Actually, given my usual insistence on this key point, that btrfs isn't 
yet fully stable and that as a result by definition, you either have 
tested backups or you're demonstrating by practice that you simply don't 
care about losing the data anyway whatever your words might otherwise 
claim, I really should have thought of and mentioned the restoring from 
backups method first, instead of having it occur to me as an after-
thought.  I must be getting sloppy and careless in my thinking! =:^( )

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman

--
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




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux