7. Logical Volume Manager in Graphical environment

LVM gives more flexible way than partitions for disk managements. It allow you to create a logical volume larger than any disk, adding and removing space from a logical volume and dividing a single disk to more than 14 file systems.

Definitions
-----------
Physical volume: Physical disk or Partitions that initialized by lvm.
logical volume : Its a virtual partition of the volume group.  It can be formatted and used as a partition.
volume group   : Collection of one or more physical volumes.It can be treated as a virtual disk.
physical extent: Its the unit of space allocation to logical  volume from a physical volume

LVM can be managed using logical volume management.
Go system -> administration -> logical volume management

The physical volumes are combined into logical volumes, with the exception of the /boot/ partition. The /boot/ partition cannot be on a logical volume group because the boot loader cannot read it. If the root (/) partition is on a logical volume, create a separate /boot/ partition which is not a part of a
volume group.

Deployment
-----------
1. Create a new partition
This is done in disk utility. Make sure that the file system selected is empty when you are creating the disk and later edit partition and select Linux lvm as file type. Now the disk will be available in LVM.

2. Initialize the new partition.
Go to logical volume management, expand the uninitialized entities and initialize the new volume. It will now move to unallocated entities.

3. Create a volume group
Select the entity from unallocated entities, the options to create a new logical volume and also to add the new disk to as existing group will be there. While creating give a name and associated details.

4. Create logical volume
Expand the new volume group, and select logical view. Now click on create a new logical volume and give name and details like file-system and mount point. Check mount when rebooted to make an entry in /etc/fstab.

Done!

To extend a volume group follow step 1 and two of the above as it is and in the third step select add to an existing group option. Now the existing volume group has got one more disk.

To extend a logical volume select the logical volume from the logical view and click on edit properties. It will display all the properties of the logical volume which could be edited.

To delete a logical volume simply select the volume and delete it.All data is gone!

To remove a physical volume you have an option to move all the used extents from that particular physical volume to other existing volumes of the same group. To do it, select 'migrate selected  extent(s) from volume' option from the physical view.