Re: [Hampshire] LVM Unmounting

Top Page

Reply to this message
Author: Adrian Bridgett
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] LVM Unmounting
On Mon, Oct 4, 2010 at 18:10:51 +0100 (+0100), Hugo Mills wrote:
> On Mon, Oct 04, 2010 at 06:01:36PM +0100, Samuel Penn wrote:
> >
> > Hi all,
> >
> > Quick LVM question - is it necessary to unmount an ext3 partition
> > before growing it?
>
>    No. resize2fs will do online resizing for you.


FYI on redhat you need resize4fs if it's an ext4 volume, resize2fs for
ext2 or ext3. Dunno why they needed a new binary - Debian works using
resize2fs for both.

lvresize -L +1G /dev/rootvg/varlv
resize2fs /dev/rootvg/varlv

Adrian
--
bitcube.co.uk - Expert Linux infrastructure consultancy
Puppet, Debian, Red Hat, Ubuntu, CentOS