[adilger at enel.ucalgary.ca: ext2 online resizer available]

Florian Lohoff flo at rfc822.org
Mon Oct 18 13:03:19 CEST 1999


Hier,
der erste ansatz fuer einen Online-ext2 Resizer - Im zusammenspiel
mit dem LVM und ext3 (aka ext2 + journaling) haben wir die AIX jfs 
funktionalitaet ....


----- Forwarded message from Andreas Dilger <adilger at enel.ucalgary.ca> -----

Return-Path: <owner-linux-fsdevel-outgoing at vger.rutgers.edu>
Delivered-To: flo at paradigm.rfc822.org
Received: by paradigm.rfc822.org (Postfix, from userid 10)
	id 024D69052; Sun, 17 Oct 1999 11:55:51 +0200 (CEST)
Received: from vger.rutgers.edu (vger.rutgers.edu [128.6.190.2])
	by noose.gt.owl.de (Postfix) with ESMTP id C2E177F8
	for <flo at rfc822.org>; Sun, 17 Oct 1999 06:34:17 +0200 (CEST)
Received: by vger.rutgers.edu via listexpand id <S156962AbPJQEd2>;
	Sun, 17 Oct 1999 00:33:28 -0400
Received: by vger.rutgers.edu id <S156944AbPJQEdV>;
	Sun, 17 Oct 1999 00:33:21 -0400
Received: from 24.65.233.117.ab.wave.home.com ([24.65.233.117]:5220 "EHLO
        webber.adilger.net") by vger.rutgers.edu with ESMTP
	id <S156962AbPJQEdO>; Sun, 17 Oct 1999 00:33:14 -0400
Received: (from adilger at localhost) by webber.adilger.net (8.7.5/8.6.9) id WAA26043; Sat, 16 Oct 1999 22:19:23 -0600
From: Andreas Dilger <adilger at enel.ucalgary.ca>
Message-Id: <199910170419.WAA26043 at webber.adilger.net>
Subject: ext2 online resizer available
To: linux-fsdevel at vger.rutgers.edu (Linux FS development list),
	linux-lvm at msede.com (Linux LVM mailing list),
	linux-kernel at vger.rutgers.edu (Linux kernel development list)
Date:   Sat, 16 Oct 1999 22:19:23 -0600 (MDT)
X-Mailer: ELM [version 2.4 PL25]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Sender: owner-linux-fsdevel at vger.rutgers.edu
Precedence: bulk
X-Loop: majordomo at vger.rutgers.edu
X-Orcpt: rfc822;linux-fsdevel-outgoing
Status: RO
Content-Length: 1745
Lines: 36

Hello all,
my online ext2 resizer is now available in a fully functional state.  If
the underlying partition supports it, it is possible to resize an ext2
filesystem while it is mounted and in use by applications.

This capability is provided by a kernel patch (2.2/2.3 and 2.0 versions
available - should apply cleanly to most versions as that part of the
kernel code hasn't changed much in a long time) and some user-space tools.
The amount that you can resize a filesystem depends on the block size and
whether or not you have "prepared" the filesystem for large resizes.  The
ext2 filesystem is maintained as a normal filesystem at all times, and it
can be used by a non-patched kernel at any time, and with one exception
(if you have an old e2fsck) will fsck clean after a resize.

Note that you need some way to resize the underlying partition (via LVM
probably) in order to resize the filesystem.  For testing purposes you
can also create a small filesystem on a large partition, and then resize
to fill the partition.

Patches are available at my web site:
http://www-mddsp.enel.ucalgary.ca/People/adilger/online-ext2/

The user-space tools are now part of Lennert Buytenhek's ext2resize suite:
http://www.dsv.nl/~buytenh/ext2resize/
for which a patch is required from my site.

Please give it a good testing, as I haven't been able to find any problems
while putting a hundred copies of an 11MB filesystem tree into a filesystem
while doing thousands of resizes to the same mounted filesystem.

Cheers, Andreas
-- 
Andreas Dilger  \ "If a man ate a pound of pasta and a pound of antipasto,
                 \  would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/               -- Dogbert


----- End forwarded message -----

-- 
Florian Lohoff		flo at rfc822.org		      	+49-5241-470566
  ...  The failure can be random; however, when it does occur, it is
  catastrophic and is repeatable  ...             Cisco Field Notice




More information about the Linux mailing list