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 software/hardware raid > on the new machine (that is just use btrfs multi-device). > > If fewer than 3TB were occupied, I suppose I could just resize > it so that it fits on one 3TB hd, then copy device to device > onto a 3TB disk, add the 2 other ones and do a "balance", but > here, I can't do that. > > I suspect that if compression was enabled, the FS could fit on > 3 TB, but 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 can compress files already on disk using btrfs filesystem defragment -c /path/to/file but defragmenting breaks snapshotting (at least it did 2 months ago, dunno if it's still true) > > Any help would be appreciated. > Stephane -- Hubert Kario QBS - Quality Business Software ul. Ksawerów 30/85 02-656 Warszawa POLAND tel. +48 (22) 646-61-51, 646-74-24 fax +48 (22) 646-61-50 -- 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
