Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Each Volume Group can have many resizeable Logical Volumes. each of Logical Volume can have different filesystem, encryption options etc. that means having a single Volume Groups is enough. so why LVM introduced the concept of Volume Groups? isn't it just an unnecessary abstraction layer? aren't Logical Volumes enough?

share|improve this question

2 Answers 2

Volume Groups have their uses; they keep PV separate, so things don't mix where they shouldn't be mixed. For example adding an external disk to your internal VG may be a bad idea since LVM does not particularly like missing disks.

You could just as well argue that a single partition or single filesystem was enough. Why use several LV when one is enough to store all the files? People just like to divide, group, manage things, and Volume Groups are useful for that. In terms of performance, it makes no difference either way.

I use two volume groups on my machine, one for SSD and another for HDD. I could do this with one VG, but then I'd have to tell LVM where to allocate new space for every lvcreate/lvresize operation. It would make those commands more cumbersome to use.

Nobody forces you to use more than one VG, if one is all you need.

share|improve this answer

Since physical and logical volumes can't span different volume groups, the volume group becomes important when you want to take if offline or move it between different systems. The volume group is another way of subdividing and managing resources.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.