From: Andreas Dilger <adilger@turbolabs.com>
To: Andrew Morton <akpm@zip.com.au>,
Jamie Lokier <lk@tantalophile.demon.co.uk>,
"Theodore Ts'o" <tytso@mit.edu>, Brian <hiryuu@envisiongames.net>,
linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: File server FS?
Date: Sat, 17 Nov 2001 15:38:08 -0700 [thread overview]
Message-ID: <20011117153808.U1308@lynx.no> (raw)
In-Reply-To: <200111132203.fADM3jW03006@demai05.mw.mediaone.net> <20011113175348.B24864@mikef-linux.matchmail.com> <20011117181253.B5003@kushida.jlokier.co.uk>, <20011117181253.B5003@kushida.jlokier.co.uk> <20011117135542.H21354@mikef-linux.matchmail.com> <3BF6E039.923E0577@zip.com.au> <20011117142326.I21354@mikef-linux.matchmail.com>
In-Reply-To: <20011117142326.I21354@mikef-linux.matchmail.com>; from mfedyk@matchmail.com on Sat, Nov 17, 2001 at 02:23:26PM -0800
On Nov 17, 2001 14:23 -0800, Mike Fedyk wrote:
> That's what I meant by "as long as the inode number is the same". Since it
> is a normal file, the only thing ext2resize might overlook would be the
> inode number for the jounal that's kept in the super block. If, in fact
> ext2resize does decide to change inode numbers for some reason. I don't
> know if it does.
ext2resize will only move inodes at the end of the fs, and only if you are
shrinking the fs. I suppose in some cases (creating a journal on an old
fs) there might be a journal not in the first group, but it is unlikely,
since ext2 will always allocate files in the same group as the parent
(the root inode), so it would always be in the first group, unless you
were out of inodes there (unlikely). With newer e2fsck's, it also moves
the journal to the reserved inode (#8) so it would remove that problem.
With online resizing (not that it works with ext3 yet, but) since you are
only ever growing the fs, you would also not renumber the inodes.
> Can ext2resize change the block size too? If the journal is larger than
> 100MB then it would need to be made smaller for 1k blocks 200MB for 2k
> blocks, and left at 400MB for 4k blocks.
No, that is a very difficult problem (especially growing the blocksize,
which is what most people would want to do), because none of the 1kB
blocks would be aligned properly. You would need to move basically all
of the data in the filesystem, at which point you are far better off to
create a new fs and copy over the data - faster and much less likely to
have any problems.
Cheers, Andreas
--
Andreas Dilger
http://sourceforge.net/projects/ext2resize/
http://www-mddsp.enel.ucalgary.ca/People/adilger/
next prev parent reply other threads:[~2001-11-17 22:40 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 [this message]
2001-11-18 1:34 ` Jamie Lokier
2001-11-17 22:27 ` Andreas Dilger
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=20011117153808.U1308@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