linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Marc Joliet <marcec@gmx.de>
To: linux-btrfs@vger.kernel.org
Subject: Re: btrfs convert running out of space
Date: Fri, 23 Jan 2015 08:54:41 +0100	[thread overview]
Message-ID: <20150123085441.79265c9a@marcec.fritz.box> (raw)
In-Reply-To: <pan$92dfe$2be12b41$73cefff0$d3e7dbcf@cox.net>

[-- Attachment #1: Type: text/plain, Size: 1540 bytes --]

Am Fri, 23 Jan 2015 04:34:19 +0000 (UTC)
schrieb Duncan <1i5t5.duncan@cox.net>:

> 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?
> 
[...]
> 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.

With current coreutils, wouldn't that also work if he moves the files to
another (temporary) subvolume? (And with future coreutils, by copying the files
without using reflinks and then removing the originals.)

[...]
-- 
Marc Joliet
--
"People who think they know everything really annoy those of us who know we
don't" - Bjarne Stroustrup

[-- Attachment #2: Digitale Signatur von OpenPGP --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

  reply	other threads:[~2015-01-23  7:55 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-19 23:45 btrfs convert running out of space Gareth Pye
2015-01-20  0:13 ` Gareth Pye
2015-01-20  5:39   ` Lakshmi_Narayanan_Du
2015-01-20  7:38   ` Chris Murphy
2015-01-20 21:25     ` Gareth Pye
2015-01-20 21:41       ` Chris Murphy
2015-01-20 21:49         ` Gareth Pye
2015-01-20 22:53           ` Chris Murphy
2015-01-20 23:04             ` Gareth Pye
2015-01-21  4:03               ` Chris Murphy
2015-01-22 21:58                 ` Gareth Pye
2015-01-22 21:58                   ` Gareth Pye
2015-01-23  4:34                   ` Duncan
2015-01-23  7:54                     ` Marc Joliet [this message]
2015-01-23  8:46                       ` Duncan
2015-01-25 15:23                         ` Marc Joliet
2015-01-27  3:24                           ` Gareth Pye
2015-01-27  6:20                             ` Duncan
2015-01-27 21:53                               ` Gareth Pye
2015-01-28  0:18                                 ` Duncan
2015-01-20 23:33         ` Hugo Mills

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150123085441.79265c9a@marcec.fritz.box \
    --to=marcec@gmx.de \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).