Can someone explain logical volume size to me?
I don't really understand what the logical volume size does. For example, I create a physical volume from /dev/sda1 and /dev/sda2 that equals 25GB, and then I create a volume group from that, and then a 500MB logical volume. What does it mean that the logical volume is only 500MB? Am I not utilizing the entire 25GB of /dev/sda1 and /dev/sda2?
|
Logical volumes can span accross physical hdd's.
So, if you have 2 physical drives at 1GB a piece,.. you can add them together and access them as a 2GB Logical Volume. |
Quote:
|
Indeed.
The lv is the analogue of a "normal" partition - both appear as block devices and can have a filesystem created on them. At which point you can write files onto them. So "lv == partition" (logically, and ignoring the possibility that pv's can be "real" partitions). Some like to keep free space in vg's for later growth of (or new) lv's, some just add new pv to the vg as needed. Individual choice. |
As syg00 said. You could have a read here http://tldp.org/HOWTO/LVM-HOWTO/
|
From chrism01's link.
3.3. logical volume (LV) The equivalent of a disk partition in a non-LVM system. The LV is visible as a standard block device; as such the LV can contain a file system (eg. /home). So when you created the 500m it is what is reported. It is as if you created a partition out of a disk. In a common partition you can only see what part of the disk that has been utilized. The rest of the drive might later be used or what not. I don't think this posts helps any more than others but I can't delete it. |
Quote:
|
All times are GMT -5. The time now is 12:10 AM. |