Allocating available space to file system

have a VMWARE machine, I have extended it from 20GB to 30GB for Linux box.

The linux box shows this for df -hal:

Filesystem Size Used Avail Use% Mounted on
-dev-mapper-VolGroup00-LogVol00
19G 5.9G 12G 34% -
proc 0 0 0 - -proc
sysfs 0 0 0 - -sys
devpts 0 0 0 - -dev-pts
-dev-sda1 99M 13M 82M 14% -boot
tmpfs 187M 0 187M 0% -dev-shm
none 0 0 0 - -proc-sys-fs-binfmt_misc
sunrpc 0 0 0 - -var-lib-nfs-rpc_pipefs
-dev-hdc 238M 238M 0 100% -media-NEW

So, it still shows only 20GB.

But fdisk -l shows this:

Disk -dev-sda: 32.2 GB, 32212254720 bytes
255 heads, 63 sectors-track, 3916 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
-dev-sda1 * 1 13 104391 83 Linux
-dev-sda2 14 2610 20860402+ 8e Linux LVM

So, -dev-sda shows the full 32.2GB.

Sorry, couldn't use the slash mark so replaced with the dash

How do I take the additional 10GB that it has and allocate it to -dev-mapper-VolGroup00-LogVol00 ?

That way I can use the 10GB of available space in that file system.

Thanks for help!

Hi.

You could try:

lvextend -l +100%FREE /dev-mapper/VolGroup00/LogVol00
resize2fs /dev-mapper/VolGroup00/LogVol00

(I guess this is fairly dependent on some factors, which are not obvious from your post)