From: Andreas Dilger Subject: Re: how to online resize ext3 when fs does not support it? Date: Wed, 02 Jul 2008 02:15:33 -0600 Message-ID: <20080702081533.GX6239@webber.adilger.int> References: <4868AC09.7050101@wpkg.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7BIT Cc: LKML To: Tomasz Chmielewski Return-path: Received: from sca-es-mail-2.Sun.COM ([192.18.43.133]:61866 "EHLO sca-es-mail-2.sun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751575AbYGBIPh (ORCPT ); Wed, 2 Jul 2008 04:15:37 -0400 Received: from fe-sfbay-10.sun.com ([192.18.43.129]) by sca-es-mail-2.sun.com (8.13.7+Sun/8.12.9) with ESMTP id m628FZR8013257 for ; Wed, 2 Jul 2008 01:15:36 -0700 (PDT) Received: from conversion-daemon.fe-sfbay-10.sun.com by fe-sfbay-10.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) id <0K3D00801DLIOC00@fe-sfbay-10.sun.com> (original mail from adilger@sun.com) for linux-fsdevel@vger.kernel.org; Wed, 02 Jul 2008 01:15:35 -0700 (PDT) In-reply-to: <4868AC09.7050101@wpkg.org> Content-disposition: inline Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Jun 30, 2008 11:48 +0200, Tomasz Chmielewski wrote: > I have a fairly large ext3 filesystem created some time ago, which > doesn't support online resizing. > > # resize2fs -p /dev/sdaz > resize2fs 1.40.2 (12-Jul-2007) > Filesystem at /dev/sdaz is mounted on /mnt/iscsi_backup; on-line > resizing required > old desc_blocks = 77, new_desc_blocks = 87 > resize2fs: Filesystem does not support online resizing > > > Is is possible to add resize_inode feature to an existing ext3 filesystem? > > My tune2fs manual (from e2fsprogs 1.40.2) doesn't state adding > "resize_inode" is possible, and newer e2fsprogs releases only support > removing resize_inode feature. > Will adding resize_inode be supported in the future, or is it definitely > "is not, won't be possible"? Adding "resize_inode" feature to an existing filesystem is possible with an old tool called "ext2prepare", part of "ext2resize" tools I wrote. I've long given up maintaining those tools, but it is possible your filesystem is also old enough to not have any of the incompatible features that might confuse ext2prepare. I'd suggest having a backup of your filesystem in any case, because that is just prudent behaviour, as there is always a non-zero risk of problems during resize. Cheers, Andreas -- Andreas Dilger Sr. Staff Engineer, Lustre Group Sun Microsystems of Canada, Inc.