public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andreas Dilger <adilger@turbolabs.com>
To: Jamie Lokier <lk@tantalophile.demon.co.uk>,
	"Theodore Ts'o" <tytso@mit.edu>, Brian <hiryuu@envisiongames.net>,
	linux-kernel <linux-kernel@vger.kernel.org>,
	Andrew Morton <akpm@zip.com.au>
Subject: Re: File server FS?
Date: Sat, 17 Nov 2001 15:27:47 -0700	[thread overview]
Message-ID: <20011117152747.S1308@lynx.no> (raw)
In-Reply-To: <200111132203.fADM3jW03006@demai05.mw.mediaone.net> <20011113175348.B24864@mikef-linux.matchmail.com> <20011117181253.B5003@kushida.jlokier.co.uk> <20011117135542.H21354@mikef-linux.matchmail.com>
In-Reply-To: <20011117135542.H21354@mikef-linux.matchmail.com>; from mfedyk@matchmail.com on Sat, Nov 17, 2001 at 01:55:42PM -0800

On Nov 17, 2001  13:55 -0800, Mike Fedyk wrote:
> On Sat, Nov 17, 2001 at 06:12:53PM +0000, Jamie Lokier wrote:
> > Mike Fedyk wrote:
> > > There are two utilities to resize ext2, which ext3 is except for an
> > > additional file (journal) after umount.
> > 
> > Two questions:
> > 
> >   1. Does the size of the "appropriately sized journal (given the size
> >      of the filesystem)" vary with filesystem size?

Only vaguely.  The current size of the journal is mostly guesswork, because
we don't have any tools to measure if the journal is full or not anyways.

> Journal size has more to do with activity when you are in data journaling
> mode.  Otherwise you will be hard pressed to fill a 32MB journal with
> meta-data.

Correct.

> >   2. If so, does resize2fs change the journal size properly?

No, neither does ext2resize.

> As long as resize2fs doesn't change the inode of the journal file you should
> be fine.

Correct.

> > When I have resized ext3 filesystems, I have removed then recreated the
> > journal manually because it wasn't clear from the documentation whether
> > resize2fs does the appropriate thing.

Like Mike says, there should be very minimal impact to the filesystem
operation, unless you are going from, say, a 16MB filesystem to a 500GB
filesystem.  You also have to watch out if you start with a filesystem
smaller than 500MB - you will get 1kB blocks, and you don't want to have
a large filesystem (10's of GB) with a 1kB blocksize.  There is nothing
that resize2fs or ext2resize can do about that, unfortunately.

> I haven't actually resized any ext2/3 partitions.  Didn't need to.  I'll do
> some tests though.

It works just fine with ext2resize, and I'm pretty sure resize2fs also
works on ext3 filesystems.

Cheers, Andreas
--
Andreas Dilger
http://sourceforge.net/projects/ext2resize/
http://www-mddsp.enel.ucalgary.ca/People/adilger/


  parent reply	other threads:[~2001-11-17 22:29 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-13 22:03 File server FS? Brian
2001-11-14  1:53 ` Mike Fedyk
2001-11-14  2:05   ` Sean Elble
2001-11-14 10:41     ` Robert Szentmihalyi
2001-11-14 15:10       ` Steve Lord
2001-11-14 16:09         ` Robert Szentmihalyi
2001-11-17 18:12   ` Jamie Lokier
2001-11-17 21:55     ` Mike Fedyk
2001-11-17 22:10       ` Andrew Morton
2001-11-17 22:23         ` Mike Fedyk
2001-11-17 22:31           ` Andrew Morton
2001-11-17 22:38           ` Andreas Dilger
2001-11-18  1:34             ` Jamie Lokier
2001-11-17 22:27       ` Andreas Dilger [this message]
2001-11-16 10:19 ` Pavel Machek

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=20011117152747.S1308@lynx.no \
    --to=adilger@turbolabs.com \
    --cc=akpm@zip.com.au \
    --cc=hiryuu@envisiongames.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lk@tantalophile.demon.co.uk \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox