From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Dilger Subject: Re: [linux-lvm] extending a logical volume Message-Id: <20020121192859.H4014@lynx.turbolabs.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: ; from ppons@cvf.fr on Mon, Jan 21, 2002 at 07:09:31PM +0100 Sender: linux-lvm-admin@sistina.com Errors-To: linux-lvm-admin@sistina.com Reply-To: linux-lvm@sistina.com List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: Date: Mon Jan 21 20:29:01 2002 List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Pierrick PONS Cc: linux-lvm@sistina.com On Jan 21, 2002 19:09 +0100, Pierrick PONS wrote: > I've read the extending logical volume section and I can't believe this. > According to the doc, it would be impossible to extend a logical volume > without unmounting it first. LV resize != fs resize. > I'm using a ext3 (with a 2.4.17 kernel) filesystem and I'd like to extend my > logical volume without unmounting it first. This would be used on a > production server, so I can't unmount any logical volume. Currently, you cannot online resize ext3, but that is only because the code which I wrote to do this for 2.2 was never released, and it has not been ported to 2.4/2.5 yet. > I've seen that a ext2online patch does exist, maybe this fonctionnality is > still implemented in a newer kernel ? No, still only available as a patch. The ext2 online resizing patch is very solid. The ext3 code is, by necessity, a total rewrite of the code to work with ext3 journaling, but the fundamental concepts are the same. > Could you give me, if it exists, a method to extend the size without unmount > the logical volume ? Use ext2 + ext2online patch (not great, because you probably crash more often than you need to resize), use ext3 but no online resizing (offline resizing works just fine with ext2resize), or work on porting the ext3 resizing code to 2.4. Cheers, Andreas -- Andreas Dilger http://sourceforge.net/projects/ext2resize/ http://www-mddsp.enel.ucalgary.ca/People/adilger/