0

Is it possible to create a Logical Volume from more than one Volume Group...

  • ... if the Volume Groups reside on the same Physical Volume?

  • ... if the Volume Groups reside on different Physical Volumes?

OS is RHEL 9.

asked Jun 30 at 11:57
3
  • Not really, unless you vgmerge them together to make a single Volume Group. Also it should not be possible to have multiple VG on the same physical volume either. At most different VG/PV as partitions on the same physical disk. Or you meant something else? Commented Jun 30 at 12:05
  • @StephenKitt, AFAIK PV can belong to only one VG. But on the physical disk you can create several partitions, create on each partition PV and then ass9gn these PVs to different VGs. But what can be the reason to do so and probably there will be performance penalties Commented Jun 30 at 12:38
  • 1
    @RomeoNinov yes, it turns out vgcreate can’t use partial PVs. I don’t think there would be noticeable performance penalties with multiple partitions, but as you say there wouldn’t be much point to it. Commented Jun 30 at 12:50

1 Answer 1

7

No, a logical volume always belongs to a single volume group. See man lvcreate:

lvcreate creates a new LV in a VG.

You can merge separate VGs using vgmerge, which would then allow you to use all the storage in those VGs in one or more logical volumes.

Physical volumes (PVs) also belong to at most one volume group, so

if the Volume Groups reside on the same Physical Volume?

isn’t possible either.

answered Jun 30 at 12:05

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.