All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dmitry Monakhov <dmonakhov@openvz.org>
To: Theodore Ts'o <tytso@mit.edu>,
	Ext4 Developers List <linux-ext4@vger.kernel.org>
Subject: Re: [PATCH] resize2fs: fix overly-pessimistic calculation of minimum size required
Date: Mon, 28 Apr 2014 11:34:54 +0400	[thread overview]
Message-ID: <87sioxdi01.fsf@openvz.org> (raw)
In-Reply-To: <20140427043537.GC25172@thunk.org>

On Sun, 27 Apr 2014 00:35:37 -0400, "Theodore Ts'o" <tytso@mit.edu> wrote:
> On Sat, Apr 26, 2014 at 10:48:14PM -0400, Theodore Ts'o wrote:
> > For extent-mapped file systems, we need to reserve some extra space in
> > case we need to grow the extent tree.  Calculate the safety margin
> > more intelligently, so we don't overestimate the amount of space
> > required.
> > 
> > Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
> > Reported-by: Dmitry Monakhov <dmonakhov@openvz.org>
> 
> I'm going to have to self-NACK this.  This patch causes the resize2fs
> regression tests to fail.  (In fact, Dmitry's original patch also
> causes the resize2fs regression tests to fail.)
Agree, regressions are not acceptable. Can you please spacify
which tests are failed. As far as i know xfstetsts has no tests
for resize2fs.
> The problem is kind of messy; when the file system starts at some
> insanely large size, and we shrink it very small, we end up releasing
> a lot of inode tables in the first block group (many for other block
> groups).  But until we're 100% sure the resize will be successful, we
> don't want to start overwriting those inode table blocks.
> 
> For this reason, if we try to constrain resize the file system down
> from 2TB to 512MB in one shot, we need to do this in multiple steps.
> I.e. by calling "resize2fs -M /dev/sdXX" multiple times.
> 
> There really isn't a good way around this, and in fact, if people are
> going to be doing silly things like take a file system from 16T down
> to 750MB, if they need to run resize2fs multiple times, that's fine.
> It would be nice if you could shrink the file system down in a single
> shot, but it's not high priority.
> 
> 					- Ted

  reply	other threads:[~2014-04-28  7:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-27  2:48 [PATCH] resize2fs: fix overly-pessimistic calculation of minimum size required Theodore Ts'o
2014-04-27  4:35 ` Theodore Ts'o
2014-04-28  7:34   ` Dmitry Monakhov [this message]
2014-04-28 11:47     ` Theodore Ts'o
2014-04-29 11:30       ` Lukáš Czerner

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=87sioxdi01.fsf@openvz.org \
    --to=dmonakhov@openvz.org \
    --cc=linux-ext4@vger.kernel.org \
    --cc=tytso@mit.edu \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.