Operating System - HP-UX
1753512 Members
5383 Online
108795 Solutions
New Discussion юеВ

how to check the size of vg00

 
SOLVED
Go to solution
Karthick K S
Frequent Advisor

how to check the size of vg00

Hi all,

I have vg00 vg i want to check the disk space of this vg,pls tell how to check
28 REPLIES 28
Arunvijai_4
Honored Contributor

Re: how to check the size of vg00

#vgdisplay

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Luk Vandenbussche
Honored Contributor

Re: how to check the size of vg00

Hi,

vgdisplay -v vg00

Free space (MB) = free PE x 4 PE size

Check this for each Physical volume

LV size in MB is given for each lvol

If used PV = 2 or greater, then you have a mirrored disk
Mel Burslan
Honored Contributor

Re: how to check the size of vg00

vgdisplay vg00

look at the output and note these values

PE size
Total PEs

multiply these two numbers the result is tha total capacity of the vg00 in megabytes.

if you want to calculate free space, instead of Total PEs, use Free PEs.

Hope this helps
________________________________
UNIX because I majored in cryptology...
Rajesh SB
Esteemed Contributor

Re: how to check the size of vg00

Hi,

Just run the cmd like

# vgdisplay vg00
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 6
Open LV 6
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 4350
VGDA 2
PE Size (Mbytes) 8
Total PE 4340
Alloc PE 4340
Free PE 0
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

In the output observe for Alloc PE (eg:4340), and PE Size (Mbytes).
Caluclate now
actual size=Alloc PE * PE Size (Mbytes)

CHeers,
Rajesh
Devender Khatana
Honored Contributor

Re: how to check the size of vg00

Hi,

#vgdisplay -v /dev/vg00

will give you all details.

Check

PE Size (Mbytes) 16
Total PE 17496
Alloc PE 14256
Free PE 3240

Total size of vg00 is

=Total PE * PE Size

HTH,
Devender
Impossible itself mentions "I m possible"
Rajesh SB
Esteemed Contributor

Re: how to check the size of vg00

Just a correction here.
Look for Total PE and PE Size (Mbytes)

Actual Size = Total PE * PE Size (Mbytes)

Regards,
Rajesh
Orhan Biyiklioglu
Respected Contributor

Re: how to check the size of vg00

vgdisplay vg00 | awk '/PE Size \(Mbytes\)/{s=$4}; /Free PE/{f=$3}; END{print s*f" Mbytes free space available on volume group."}'

vgdisplay vg00 | awk '/PE Size \(Mbytes\)/{s=$4}; /Total PE/{f=$3}; END{print s*f" Mbytes total space on volume group."}'

hth
Adisuria Wangsadinata_1
Honored Contributor
Solution

Re: how to check the size of vg00

Hi,

Use 'vgdisplay' command :

# vgdisplay /dev/vg00

--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 14
Open LV 14
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4384
VGDA 4
PE Size (Mbytes) 32
Total PE 8748
Alloc PE 1830
Free PE 6918
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

From the example above, the size of vg00 is [Alloc PE x Free PE] = 1830 x 32 = 58560 Mbytes.

You need also to check if the vg00 is mirrored or not. Check by using lvdisplay onto the logical volume at vg00.

# lvdisplay /dev/vg00/lvol1

If mirrored, you need to devide it by the number of mirror + 1.

Let say if from lvdisplay, you find mirror copies is 1, so the vg00 size above is 58560 / (1+1) = 58560 / 2 = 29280 MBytes.

The condition above if all logical volume in vg00 is mirrored.

Hope this information can help you.

Cheers,
AW
now working, next not working ... that's unix
Karthick K S
Frequent Advisor

Re: how to check the size of vg00

how to check free space