1846833 Members
10392 Online
110256 Solutions
New Discussion

Clubbing of LVs

 
YOGI_3
Frequent Advisor

Clubbing of LVs

Hi all,
I have 500gb free space on one vg, say vg1.
I have 900gb free space on other vg, say vg2.
can we make club the free space as a single lv of 1.4tb.
If yes.....please let me know the steps for the steps.

Thanks,
Yogesh
There is never a wrong time to do the right things
8 REPLIES 8
Stephen Keane
Honored Contributor

Re: Clubbing of LVs

A logical volume can only exist in a single volume group. You cannot take space from two VGs and put it in the same LV.
Devender Khatana
Honored Contributor

Re: Clubbing of LVs

Hi,

It can not be created as it is. But there are some other workarounds possible if your situations permits them. You can remove one or more free physical volumes from one VG and add it to other then it would be possible. Just post the output of vgdisplay -v /dev/vgname of both the VGs.

HTH,
Devender
Impossible itself mentions "I m possible"
Robert-Jan Goossens
Honored Contributor

Re: Clubbing of LVs

Hi Yogesh,

No, you can not combine free spaces from two volume groups into one logical volume.

You could create two logical volumes into two mountpoints.

/app 500mb mountpoint lvol1 vg1
/app/data 900mb mountpoint lvol1 vg2

Regards,
Robert-Jan
Henk Geurts
Esteemed Contributor

Re: Clubbing of LVs

hi YOGI.

no way possible....
a LV is always part of 1 VG....
you 'll just have to create 2 LV's and 2 fs-en.
regards.
Devender Khatana
Honored Contributor

Re: Clubbing of LVs

Hi,

Another idea would be to create a symbolic link to files which points to other LV.

HTH,
Devender
Impossible itself mentions "I m possible"
YOGI_3
Frequent Advisor

Re: Clubbing of LVs

hi deven...
thanks a lot for ur reply of symbolic linl..
herewith iam attached the o/p of vgdisplay of the vgs.
pl find the same...

yogesh
There is never a wrong time to do the right things
Devender Khatana
Honored Contributor

Re: Clubbing of LVs

Hi Yogesh,

Your current config does not allow reconfiguration of adding and removing PV's across VGs because you have only one PV in each VG. This is why either symbolic link or mounting two file systems(Two mount points) within one directory as described earlier will be feasible.

Choice is yours.

HTH,
Devender
Impossible itself mentions "I m possible"
Colin Gomes
Advisor

Re: Clubbing of LVs

hey yogi,
Since u have 1 PV in each VG , it is not possible to span a LV across 2 VG's . Similarly 2 VG's cannot span across a single disk.
try clubbing the disk of vg2 in vg1 or vice-versa.
thanks ,
bye