Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have 3 RAID arrays in my server, mapped to 2 PVs in my lvm2 setup.

apollo:~# pvs
  PV         VG      Fmt  Attr PSize PFree
  /dev/sda1  apollo  lvm2 a-   3.64T    0 
  /dev/sda2  apollo  lvm2 a-   1.14T    0 
  /dev/sdb   apollo1 lvm2 a-   2.05T    0 
apollo:~# lvs
  LV        VG      Attr   LSize   Origin Snap%  Move Log Copy% 
  lvol0     apollo  -wi-ao   4.77T                              
  ling-ling apollo1 -wi-ao 895.41G                              
  lvol0     apollo1 -wi-ao   1.17T                              
  lvol1     apollo1 -wi-a-  32.00M                              

I want to remove the LV "ling-ling" to free up some space, however I want to expand lvol0 with that free space, which is residing on the other VG.

Is there a way in LVM to allocate a percentage of a PV to different VGs without repartitioning? The only solution I can think of is to repartition /dev/sdb but I would prefer not to, since this is a live server.

Thanks :)

share|improve this question
up vote 1 down vote accepted

No. VGs consume PVs whole.

share|improve this answer
As I thought. Ah well. – bobinabottle Aug 9 '10 at 6:27

If you want to split a drive/LUN between VGs, you'd have to create two partitions and a PV on each. This has a number of drawbacks, not least of which is that you'd need to destroy the PVs and repartition to change the layout!

share|improve this answer

Other than repartitioning the drive there is no clean way to get exactly what you wanted.

A quick and dirty solution is to create a LV and use that as a PV. This is not something used much and as such was not tested a lot, so you may run into problems for example with activation at boot. This could be as simple as:

vgextend apollo /dev/apollo1/ling-ling

Other alternative is to use vgmerge and make single VG apollo:

vgmerge apollo apollo1

You should update any links in fstab (if using device names and not LABEL/UUID)

share|improve this answer
Hehe, got this open in a tab and have not checked a date :-) It may help someone... – Martian Jun 21 at 17:29

Your Answer


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.