LVM Question

Robert Locke lists at ralii.com
Wed Sep 24 14:13:42 UTC 2008


On Wed, 2008-09-24 at 19:20 +0530, Kapil Hari Paranjape wrote:
> Hello,
> 
> On Wed, 24 Sep 2008, Gene Poole wrote:
> > I performed an extend (lvextend) on a file system that was running out 
> > of space.  All of the return codes and messages showed a good 
> > completion.  However, when I did a display on the file system (df -m 
> > /work) it didn't show that the file system had been extended.
> 
> lvextend extends the underlying block device. It does not resize the
> filesystem. You will need to resize the file-system. Assuming that you
> are using ext2/3, this would be the following sequence of commands:
> 
>  umount /work
>  e2fsck -f /dev/DataVG00/DataLV01
>  resize2fs /dev/DataVG00/DataLV01
>  mount /work
> 

Actually, we've had "online growing" available for ext3 for quite some
time.

Presuming it's an ext3 filesystem, you can just do:

resize2fs /dev/DataVG00/DataLV01

HTH,

--Rob





More information about the fedora-list mailing list