Gareth Pye posted on Fri, 23 Jan 2015 08:58:08 +1100 as excerpted:

> What are the chances that splitting all the large files up into sub gig
> pieces, finish convert, then recombine them all will work?

[Further context removed due to the hassle of trying to sort the
top-posting into proper order to reply in /proper/ context.]

A likely easier alternative would be to temporarily move those files off 
the filesystem in question.

Option 1: Do that (thumb drives work well for this if you're not talking 
/terabytes/ and don't have a spare hard drive handy), finish the convert, 
and move them back.

Option 2: Since new files should be created using the desired target mode 
(raid1 IIRC), you may actually be able to move them off and immediately 
back on, so they appear as new files and thus get created in the desired 
mode.  Of course the success here depends on how many you have to move 
vs. the amount of free space available that will be used when you do so, 
but with enough space, it should "just work".

Note that with this method, if the files are small enough to entirely fit 
one-at-a-time or a-few-at-a-time in memory (I have 16 gig RAM, for 
instance, and don't tend to use more than a gig or two for apps, so could 
in theory do 12-14 gig at a time for this), you can even use a tmpfs as 
the temporary storage before moving them back to the target filesystem.  
That should be pretty fast since the one side is all memory.

This is actually the solution recommended when a btrfs from ext* 
conversion didn't have the recommended defrag and balance done afterward, 
or when even after a defrag, the balance fails due to overly large ext* 
extents, compared to the normally 1-gig extents that btrfs usually works 
with.  Move all the gig-plus files off the filesystem, thus eliminating 
the old overly large extents, and back, so the files get created with 
native btrfs sized extents.  The solution is known to work for that, so 
assuming a similar issue here, it should work here as well.

-- 
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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to