I have some doubts while studying about LVM. what is requirement to create physical volume and volume group separately. Means is it not possible to make LV on directly physical volume.
2 Answers
Creating a Logical Volume directly over a Physical Volume would not give much avantage over a simple partitioning of a disk and would negate one of the most useful features of LVM, that is grouping together several PVs into a single VGs.
For instance, you can group three physical disks of 100 Gb each into a single VG, then create a 300 Gb volume (as a LV) out of it. Or two 150 Gb volumes.
This is how it was done before : you just "slice" a disk into partition, each partition holding a filesystem (aka files and directories).
/dev/sda1 => / from 0 to 12
/dev/sda2 => swap from 13 to 53
/dev/sda3 => /usr from 54 to 114
/dev/sda4 => /var from 115 to 156
free    from 157 to end of disk
(number are pseudo block)
Now the problem is when you want to increase, say /usr, you will overlap /var. Having free space after, but still needing a cumbersome move to extend /usr.
Now the whole LVM paradigm have been set up as to allow use of multiple disk, and dynamic growing of logical volume (and filesystem that support it).
Also keep in mind that logical volume are seldom use alone, most of the time a filesystem (ext4, xfs, and many other) is put in top of it.
LVM stack (from physical to logical) looks like
- disk (PV: Physical Volume)
- Volume Group (VG) : one or more PV
- Logical Volume (LV) : a part on a LV, can be mirrored if need be, can be dynamically moved from a PV to another (in same VG).
Not part of LVM:
- Below LVM are SAN device, local disk or Virtual disk
- Above LVM are filesystem or swap.
- Some program may use direct access to LV (I don't have example in mind tho).
