From: Duncan <1i5t5.duncan@cox.net>
To: linux-btrfs@vger.kernel.org
Subject: Re: ENOSPC errors during raid1 rebalance
Date: Fri, 7 Mar 2014 10:18:17 +0000 (UTC) [thread overview]
Message-ID: <pan$1c266$c782ec3d$ca8afa67$2f440bea@cox.net> (raw)
In-Reply-To: 20140307080213.GC6318@carfax.org.uk
Hugo Mills posted on Fri, 07 Mar 2014 08:02:13 +0000 as excerpted:
> On Fri, Mar 07, 2014 at 01:13:53AM +0000, Michael Russo wrote:
>> Duncan <1i5t5.duncan <at> cox.net> writes:
>>
>> > But if you're not using compression, /that/ can't explain it...
>> >
>> >
>> Ha! Well while that was an interesting discussion of fragmentation, I
>> am only using the default mount options here and so no compression.
>
> I _think_ the problem here is that there may have been some extents
> created during the conversion which were over 1 GiB in size (or at least
> which run across two or more chunks). This causes problems, because
> there's nowhere that they can be written to by the balance --
> which preserves extents -- because none of the allocation units (chunks)
> are big enough.
>
> The defrag operation, by its nature, _doesn't_ preserve extents,
> and thus can act to break up the large extents, making it possible to
> balance the chunks that the offending extents live on.
Now /that/ would explain the issue, or at least all I've read of it from
here. Nice job! =:^)
Obviously >1 GB files break/fragment on 1-gig data-chunk lines when
(re)written on btrfs, since that's the biggest allocation unit btrfs has,
and at least once the filesystem has been (near) full once, btrfs is
extremely unlikely to be able to place those gig-chunks contiguously,
thus triggering the issue.
Meanwhile, the move-to-tmpfs-and-back should indeed break up those >1-gig
blocks too, since the that would force a rewrite and thus a reallocation,
which would then follow btrfs 1-gig-chunk rules.
--
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
next prev parent reply other threads:[~2014-03-07 10:18 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-03 17:23 ENOSPC errors during raid1 rebalance Mike Russo
2014-03-03 18:16 ` Duncan
2014-03-03 18:24 ` Michael Russo
2014-03-03 18:48 ` Chris Murphy
2014-03-03 19:24 ` Michael Russo
2014-03-03 20:41 ` Chris Murphy
2014-03-03 20:50 ` Michael Russo
2014-03-03 21:02 ` Chris Murphy
2014-03-03 18:39 ` Hugo Mills
2014-03-04 15:55 ` Michael Russo
2014-03-04 17:29 ` Chris Murphy
2014-03-04 18:54 ` Michael Russo
2014-03-04 19:30 ` Chris Murphy
2014-03-05 0:27 ` Mike Russo
2014-03-05 3:32 ` Chris Murphy
2014-03-05 22:13 ` Michael Russo
2014-03-06 7:41 ` Duncan
2014-03-07 1:13 ` Michael Russo
2014-03-07 8:02 ` Hugo Mills
2014-03-07 10:18 ` Duncan [this message]
2014-03-07 14:17 ` Mike Russo
2014-03-08 1:46 ` Mike Russo
2014-03-05 4:08 ` Chris Murphy
2014-03-05 22:13 ` Michael Russo
2014-03-06 17:07 ` Chris Murphy
-- strict thread matches above, loose matches on Subject: below --
2014-03-13 22:38 Eugene Crosser
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='pan$1c266$c782ec3d$ca8afa67$2f440bea@cox.net' \
--to=1i5t5.duncan@cox.net \
--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