Re: Is there now a way to migrate FS without losing shared COW blocks between subvolumes?

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

 



Marc MERLIN posted on Fri, 12 Feb 2016 19:28:46 -0800 as excerpted:

> btrfs send lets you keep COW blocks within a subvolume.
> But if I have lots of backups where subvolumes have shared data, and I
> need to migrate this to a new filesystem, is there a decent way?
> 
> I know I can btrfs device add new drive as raid1, but I'm trying to
> migrate off an old filesystem that likely wasn't created well. Is there
> a way to do that?
> I guess ideally I'd need btrfs send on a volume level, not subvolume
> level.

Unless I'm mistaken, what you're looking for is btrfs send -c.  You're 
still sending a subvolume, but the -c says to consider the supplied clone-
src parameter for just that, cloned, aka shared, sources, and unlike
-p parent, multiple such -c cloned-src options are allowed, so...

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