1834986 Members
2192 Online
110073 Solutions
New Discussion

logical volumes & space

 
SOLVED
Go to solution
Jeff Hagstrom
Regular Advisor

logical volumes & space

I have 2 volume groups, vg01 and vg02 and inside they have 4 directories. If I look at vg01-a7 and want to increase size, it says that I have 4300 avail. If I look at vg01-a6, it also says that I have 4300 avail. That 4300 available space, is it the same space or is there 2 different 4300 spaces? Because I also have vg01-a5 that says I have 1800 available.
9 REPLIES 9
Chris Wilshaw
Honored Contributor

Re: logical volumes & space

That sounds a bit odd - space is allocated on a per volume group basis.

Can you post your vgdisplay output.
Pete Randall
Outstanding Contributor

Re: logical volumes & space

Jeff,

Is that your volume group name: vg01-a7? Assuming it is, then yes, you have 4300 available in bot vg01-a7 and vg01-a6. It's just coincidental that you happened to have the same in both.


Pete

Pete
Sanjay_6
Honored Contributor

Re: logical volumes & space

Hi Jeff,

Why don't you attach the outpur of "vgdisplay -v /dev/vg_name" for vg01 and 02 and let us take a look at that.

Hope this helps.

Regds
David Child_1
Honored Contributor
Solution

Re: logical volumes & space

Jeff,

You mention you have 2 volume groups (vg01 and vg02), but you then mention you have free space in vg01-a7, vg01-a6, vg01-a5.

If the vg01-a* names are actual volume group names then by running vgdisplay /dev/vg01-a7 you can see how much space is free in that volume group.

If however a5, a6, and a7 are logical volumes in /dev/vg01 then you would run 'vgdisplay /dev/vg01' which would show total space free that can be used for a5, a6, and a7. The thing that makes me doubt this is the senario is you state vg01-a6 and vg01-a7 has 4300 free and vg01-a5 has only 1800 free.

If you could run a 'vgdisplay' without any options it will print the info for all volume groups. Post that if you can.

David
Ralph Grothe
Honored Contributor

Re: logical volumes & space

Jeff,

are you talking about HP-UX LVM volume groups, or about Veritas VxVM volumes of a diskgroup?
Your notation rather sounds like the plex indexes of a VxVM volume to me.

If you're talking about LVM then

/usr/sbin/vgdisplay -v vg01

should list the vital information, and you should attach the output to your thread.

If you are talking about VxVM then a

/usr/sbin/vxdisk -o alldgs list

should list your diskgroups, and a subsequent

/usr/sbin/vxprint -htg

you should issue and post here (where dg_name is a diskgroup from the 1st command)
Madness, thy name is system administration
Jeff Hagstrom
Regular Advisor

Re: logical volumes & space

vgdisplay vg01
Jeff Hagstrom
Regular Advisor

Re: logical volumes & space

vgdisplay vg02
Sanjay_6
Honored Contributor

Re: logical volumes & space

Hi,

Look at the vgdisplay output.

You'll notice,
for vg01
free PE=471 and PE_Size = 4
so free space available under vg01 => 471*4MB => 1884MB
This is the total space availble for all lv's under vg01
you can use this space for extending one lv or share it among other lv's under vg01

for vg02
free PE=1075 and PE_Size = 4
so free space available under vg01 => 1075*4MB => 4300MB
This is the total space availble for all lv's under vg02
you can use this space for extending one lv or share it among other lv's under vg02

hope this helps.

Regds
Pete Randall
Outstanding Contributor

Re: logical volumes & space

Jeff,

The vg01 has 471 free PEs of 4MB each free. The vg02 has 1075 free PEs of 4MB.


Pete

Pete