Operating System - HP-UX
1834437 Members
2229 Online
110067 Solutions
New Discussion

using free space of one volume group to another volume group

 
Geeta Singh
Occasional Contributor

using free space of one volume group to another volume group

We are using HPUX- 10.20 and having 3 volume groups, each volume group contains only 1 physical disk some logical volumes. Now there are some free disk space in vg00 and we want to use this space in vg01 and vg02.Is possible without corrupting the exsiting logical volumes?
Thanks in advance.
7 REPLIES 7
Vincent Farrugia
Honored Contributor

Re: using free space of one volume group to another volume group

Hello,

Unfortunately, you cannot. Volume Groups can have one or more physical volumes. You cannot have two volume groups sharing one physical volume or part of it.

HTH,
Vince
Tape Drives RULE!!!
Chris Wilshaw
Honored Contributor

Re: using free space of one volume group to another volume group

Unfortunately not.

You can only move whole disks between volume groups, not partial ones.

The best you can hope for is to create extra filesystems on the vg00 disk, and to mount these below the vg01/vg02 directory structures

eg:

/dev/vg01/lvolX /your_mount_point
/dev/vg00/lvolY /your_mount_point/subdirectory
Bill McNAMARA_1
Honored Contributor

Re: using free space of one volume group to another volume group

You can try using a pvmove to clear up lvols from an entire pv in vg2, then assign the freed pv to vg1..

Although, why not just create a new lv with the free space in vg2 and create new mount points in vg1's lv filesystems.... bit messy but will work with least effort.

Later,
Bill
It works for me (tm)
Nick Wickens
Respected Contributor

Re: using free space of one volume group to another volume group

Hi

Sorry but not possible. Physical disk space can't be shared across volume groups.
Hats ? We don't need no stinkin' hats !!
unixdaddy
Trusted Contributor

Re: using free space of one volume group to another volume group

You could create a directory in vg00 and then use ln to link to it from the other volume group.
Trond Haugen
Honored Contributor

Re: using free space of one volume group to another volume group

No it's not possible. A Physical disk can only belong to one volume group. So the free space and thus only be used in that VG. Further more I would also recommend keeping that free space in vg00 as you would probably need it there at some point in time, and buy more disk for the other VG's.

Regards,
Trond
Regards,
Trond Haugen
LinkedIn
Ravi_8
Honored Contributor

Re: using free space of one volume group to another volume group

Hi,

NO.......

different vg's can't share a physical disk
never give up