Skip to contentSkip to conversation

add, remove; how about merge?

DISCUSSION Gene Czarcinski 3 participants 3 messages Dec 21, 2012 Btrfs file system

lore
Share & tools
lore
#0 lore raw

I am new at this btrfs stuff!

As I understand it, you can add a physical disk or partition and have data spread into the new space. You can also move data off a disk or partition and then remove it.

Has any though been given to being able merge to existing (separate) btrfs "volumes" into a single volume?

Alternatively, how about at tool for transfering a subvolume from one pool to another? I tried using fsarchiver but that did not work out too well.

Gene

#1 lore raw
Quoted 8 lines · Gene Czarcinski

I am new at this btrfs stuff!

As I understand it, you can add a physical disk or partition and have data spread into the new space. You can also move data off a disk or partition and then remove it.

Has any though been given to being able merge to existing (separate) btrfs "volumes" into a single volume?

This would be difficult to do in kernel space -- you'd have to
change the UUIDs on all the metadata on at least one of the filesystems, plus handle (correctly) all of the numberspace clashes correctly -- subvolume trees, virtual address space, and probably a load that I've forgotten as well. Given what I'm about to say, I can't see this happening any time soon.

Quoted 3 lines

Alternatively, how about at tool for transfering a subvolume from one pool to another? I tried using fsarchiver but that did not work out too well.

You want send/receive. It's in the mainline kernel, and you'll need
a recent userspace, but it allows you to transfer subvolumes cleanly and losslessly between filesystems.

Hugo.

Signature · 3 lines
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
  PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
        --- "You are not stuck in traffic:  you are traffic." ---        
#2 lore raw
In reply to Gene Czarcinski

I think thats possible with btrfs-send/receive

Remco

Quoted 13 lines · Gene Czarcinski

I am new at this btrfs stuff!

As I understand it, you can add a physical disk or partition and have data spread into the new space. You can also move data off a disk or partition and then remove it.

Has any though been given to being able merge to existing (separate) btrfs "volumes" into a single volume?

Alternatively, how about at tool for transfering a subvolume from one pool to another? I tried using fsarchiver but that did not work out too well.

Gene
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html