Operating System - HP-UX
1834166 Members
3120 Online
110064 Solutions
New Discussion

vgdisplay & bdf outputs inconsistent

 
SOLVED
Go to solution
deepak_9
Frequent Advisor

vgdisplay & bdf outputs inconsistent

Hi,

We have one vg "vg01" on one of the superdome partition which is a database server. This vg has only one logical volume "/dev/vg01/lvdata" . Although the log vol shows free space of 9Gb in "vgdisplay" output it shows only 48 MB [12 PEs of 4 MB each] free space. Typed below is the output of "bdf" as well as "vgdisplay" command.

dbnode:toor-/>vgdisplay -v vg01
--- Volume groups ---
VG Name /dev/vg01
VG Write Access read/write
VG Status available, exclusive
Max LV 255
Cur LV 1
Open LV 1
Max PV 32
Cur PV 6
Act PV 6
Max PE per PV 15000
VGDA 12
PE Size (Mbytes) 4
Total PE 31732
Alloc PE 31720
Free PE 12
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vg01/lvdata
LV Status available/syncd
LV Size (Mbytes) 126880
Current LE 31720
Allocated PE 31720
Used PV 6


--- Physical volumes ---
PV Name /dev/dsk/c3t4d0
PV Name /dev/dsk/c4t4d0 Alternate Link
PV Status available
Total PE 6398
Free PE 0
Autoswitch On

PV Name /dev/dsk/c3t4d1
PV Name /dev/dsk/c4t4d1 Alternate Link
PV Status available
Total PE 6398
Free PE 0
Autoswitch On

PV Name /dev/dsk/c3t4d3
PV Name /dev/dsk/c4t4d3 Alternate Link
PV Status available
Total PE 6398
Free PE 12
Autoswitch On

PV Name /dev/dsk/c3t6d3
PV Name /dev/dsk/c4t6d3 Alternate Link
PV Status available
Total PE 5118
Free PE 0
Autoswitch On

PV Name /dev/dsk/c3t6d4
PV Name /dev/dsk/c4t6d4 Alternate Link
PV Status available
Total PE 5118
Free PE 0
Autoswitch On

PV Name /dev/dsk/c3t6d5
PV Name /dev/dsk/c4t6d5 Alternate Link
PV Status available
Total PE 2302
Free PE 0
Autoswitch On

dbnode:toor-/>bdf | grep -i vg01
/dev/vg01/lvdata 129925120 120201840 9647464 93% /d01

Never Ever give Up !!!!!
3 REPLIES 3
T G Manikandan
Honored Contributor

Re: vgdisplay & bdf outputs inconsistent

Total PE is the number of Physical extents allocated to volume groups.
i.e.31732 is the total

In that you have allocated
31720 to the first volume group.

Free PE is the number of Physical extents which is not allocated to the volume group.

So it means that you have around 12 PE which can be allocated or extended to the volume group.

This is a different thing from the bdf which shows the logical volumes inside the volume group.

Thanks
Tom Geudens
Honored Contributor
Solution

Re: vgdisplay & bdf outputs inconsistent

Hi,
I think you are confusing two different things. There are indeed 12 PE's free in the volumegroup. These are PE's that are NOT allocated to a logical volume (and can be used to extend a logical volume). The vgdisplay output does however NOT indicate how much of the space allocated to the logical volume IS ACTUALLY USED. bdf DOES show how much of the allocated space is actually used.

Hope this explains,
Tom
A life ? Cool ! Where can I download one of those from ?
deepak_9
Frequent Advisor

Re: vgdisplay & bdf outputs inconsistent

Thanks a lot TOM....

Got in loop for some duration but now out of it. Now teh picture is quite clear.

Thanks!!!!
Never Ever give Up !!!!!