Create a linux partition, make it a LVM by toggling the linux partitions id to
Convert it to a physical volume by issuing the command
Then, make the volume group in that physical volume,
Then make logical volumes in the volume group,
#lvcreate -L size
Make a linux filesystem in the logical volume,
This device is a softlink to the device /dev/mapper/vgname-lvname
Then mount that logical volume,
LVM format 2.0 is now implemented which supports online resizing of filesystems.
check the current size of the filesystem by 'df -h'
Extend the above created logical volume BY X MB,
#lvextend -L +XM /dev/
we are doing it without unmounting the filesystem
Now to make the extension effective, issue
now recheck the filesystem size by 'df -h',
now the filesystem will be extended by X MB.
Now if u want to reduce the logical volume TO X MB,
u must first umount the device, online reducing of logical volumes cannot be done..!
then u need to scan the filesystem for integrity.
#e2fsck -f /dev/vgname
now resize the filesystem
then reduce the volume with lvreduce and mount it..
#lvreduce -L XM /dev/vgname