Re: cloning single-device btrfs file system onto multi-device one

2011-04-17 Thread Hubert Kario
On Monday 21 of March 2011 17:24:50 Stephane Chazelas wrote: Hiya, I'm trying to move a btrfs FS that's on a hardware raid 5 (6TB large, 4 of which are in use) to another machine with 3 3TB HDs and preserve all the subvolumes/snapshots. Is there a way to do that without using a

Re: cloning single-device btrfs file system onto multi-device one

2011-04-06 Thread Helmut Hullen
Hallo, Evert, Du meintest am 05.04.11: I then did a btrfs fi balance again and let it run through. However here is what I get: $ df -h /mnt Filesystem            Size  Used Avail Use% Mounted on /dev/sdb              8.2T  3.5T  3.2T  53% /mnt Only 3.2T left. How would I reclaim the

Re: cloning single-device btrfs file system onto multi-device one

2011-04-06 Thread Helmut Hullen
Hallo, Stephane, Du meintest am 28.03.11: I then did a btrfs fi balance again and let it run through. However here is what I get: $ df -h /mnt FilesystemSize Used Avail Use% Mounted on /dev/sdb 8.2T 3.5T 3.2T 53% /mnt Only 3.2T left. How would I reclaim the

Re: cloning single-device btrfs file system onto multi-device one

2011-04-06 Thread Arne Jansen
On 28.03.2011 15:17, Stephane Chazelas wrote: I then did a btrfs fi balance again and let it run through. However here is what I get: $ df -h /mnt FilesystemSize Used Avail Use% Mounted on /dev/sdb 8.2T 3.5T 3.2T 53% /mnt Only 3.2T left. How would I reclaim

Re: cloning single-device btrfs file system onto multi-device one

2011-04-06 Thread Stephane Chazelas
2011-03-28 14:17:48 +0100, Stephane Chazelas: [...] So here is how I transferred a 6TB btrfs on one 6TB raid5 device (on host src) over the network onto a btrfs on 3 3TB hard drives [...] I then did a btrfs fi balance again and let it run through. However here is what I get: [...] Sorry, it

Re: cloning single-device btrfs file system onto multi-device one

2011-04-06 Thread Arne Jansen
On 06.04.2011 14:05, Stephane Chazelas wrote: 2011-04-06 10:25:00 +0200, Arne Jansen: On 28.03.2011 15:17, Stephane Chazelas wrote: I then did a btrfs fi balance again and let it run through. However here is what I get: $ df -h /mnt FilesystemSize Used Avail Use% Mounted on

Re: cloning single-device btrfs file system onto multi-device one

2011-04-05 Thread Evert Vorster
Hi there. From my limited understanding, btrfs will write metadata in raid1 by default. So, this could be where your 2TB has gone. I am assuming you used raid0 for the three new disks? Also, hard-stopping a btrfs is a no-no... Kind regards, -Evert- On Mon, Mar 28, 2011 at 6:17 AM, Stephane

Re: cloning single-device btrfs file system onto multi-device one

2011-03-28 Thread Stephane Chazelas
2011-03-22 18:06:29 -0600, cwillu: I can mount it back, but not if I reload the btrfs module, in which case I get: [ 1961.328280] Btrfs loaded [ 1961.328695] device fsid df4e5454eb7b1c23-7a68fc421060b18b devid 1 transid 118 /dev/loop0 [ 1961.329007] btrfs: failed to read the system

Re: cloning single-device btrfs file system onto multi-device one

2011-03-28 Thread Stephane Chazelas
2011-03-23 12:13:45 +0700, Fajar A. Nugraha: On Mon, Mar 21, 2011 at 11:24 PM, Stephane Chazelas stephane.chaze...@gmail.com wrote: AFAICT, compression is enabled at mount time and would only apply to newly created files. Is there a way to compress files already in a btrfs filesystem?

Re: cloning single-device btrfs file system onto multi-device one

2011-03-22 Thread Stephane Chazelas
2011-03-21 16:24:50 +, Stephane Chazelas: [...] I'm trying to move a btrfs FS that's on a hardware raid 5 (6TB large, 4 of which are in use) to another machine with 3 3TB HDs and preserve all the subvolumes/snapshots. [...] I tried one approach: export a LVM snapshot of the old fs as a nbd

Re: cloning single-device btrfs file system onto multi-device one

2011-03-22 Thread cwillu
I can mount it back, but not if I reload the btrfs module, in which case I get: [ 1961.328280] Btrfs loaded [ 1961.328695] device fsid df4e5454eb7b1c23-7a68fc421060b18b devid 1 transid 118 /dev/loop0 [ 1961.329007] btrfs: failed to read the system array on loop0 [ 1961.340084] btrfs:

Re: cloning single-device btrfs file system onto multi-device one

2011-03-22 Thread Fajar A. Nugraha
On Mon, Mar 21, 2011 at 11:24 PM, Stephane Chazelas stephane.chaze...@gmail.com wrote: AFAICT, compression is enabled at mount time and would only apply to newly created files. Is there a way to compress files already in a btrfs filesystem? You need to select the files manually (not possible

cloning single-device btrfs file system onto multi-device one

2011-03-21 Thread Stephane Chazelas
Hiya, I'm trying to move a btrfs FS that's on a hardware raid 5 (6TB large, 4 of which are in use) to another machine with 3 3TB HDs and preserve all the subvolumes/snapshots. Is there a way to do that without using a software/hardware raid on the new machine (that is just use btrfs