Operating System - HP-UX
1835922 Members
3912 Online
110088 Solutions
New Discussion

Extending LV across two different VG

 
Sundar G
Frequent Advisor

Extending LV across two different VG

Hi Gurus,

I am using HP UX 11i. And i am having a LV which currently assigned to VG01. Now I need to extend the LV with another volume group VG02.

Please suggest the steps that I need to follow to accomplish this.

Thanks and Regards

Sundar
7 REPLIES 7
A. Clay Stephenson
Acclaimed Contributor

Re: Extending LV across two different VG

That is not permitted. LVOL's must reside within a single volume group. You can create a new larger LVOL in either VG and copy the old to the new.
If it ain't broke, I can fix that.
Jeff_Traigle
Honored Contributor

Re: Extending LV across two different VG

Simple... you can't. Each LV can be defined in one and only one VG. They cannot span multiple VGs.
--
Jeff Traigle
Ninad_1
Honored Contributor

Re: Extending LV across two different VG

Sundar,

As already mentioned above , a logical volume cannot span across Volume groups .
I can think of an anology.
Can you extend a file in one directory to another directory - no you cannot - you need to have 2 seperate files in 2 directories. Similarly a logical volume which uses space from the disks configured in a particular volume group cannot use space from disks used by other volume group.

Regards,
Ninad
Stefano Ferri
Frequent Advisor

Re: Extending LV across two different VG

Sundar,

You can also reduce vg02 and use the disk reduced for extend vg01. If u can try this method remember that you must use pvmove first.

Stefano
Mridul Shrivastava
Honored Contributor

Re: Extending LV across two different VG

One LV can be part of one vg so you need to create one more LV and then assign that to vg02.
Other option is if this lv is no more required by vg01 and you want it to assign to vg02 then use lvreduce/lvremove so this will not be part of vg01 then recreate the lv for vg02.
Keep one thing in mind that PV/LV can belong to one vg only, its not feasible to create/extend two vgs on single PV/LV.
Time has a wonderful way of weeding out the trivial
Sivakumar TS
Honored Contributor

Re: Extending LV across two different VG

Hi Sundar,

It is not possible !

may be you can add a disk to the VG01 and extend with in the VG

Regards,

Siva.
Nothing is Impossible !
Sundar G
Frequent Advisor

Re: Extending LV across two different VG

Thanks gurus, for clarification,
Closing the thread