Operating System - HP-UX
1834751 Members
3213 Online
110070 Solutions
New Discussion

Re: Determining the exact amt left on disk

 
SOLVED
Go to solution
Ratzie
Super Advisor

Determining the exact amt left on disk

How do I find out how much room I have on a disk after I created a volume group?

If I do a vgdisplay -v, it does not say how big the drive is and what is left on it to allocate to another vg
6 REPLIES 6
James A. Donovan
Honored Contributor

Re: Determining the exact amt left on disk

You cannot allocate disks to multiple volume groups. A disk will belong to one or none.
Remember, wherever you go, there you are...
Ronelle van Niekerk
Regular Advisor
Solution

Re: Determining the exact amt left on disk

1) Physical devices can belong to one volume group only - you can't split a disk into seperate volume groups.

2) A vgdisplay -v will show you how many PEs (physical extents) you have free in the volume group. Multiply this number by the PE size and you will get the number of MBs free in the volume group.
rm -r /it/managers
Ratzie
Super Advisor

Re: Determining the exact amt left on disk

So what your saying is that I have a 73 GB drive but...

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

My total PE is 4374 x 16 = 69984 MB
I only really have 69.984 GB to use...

So that means that I have 177 x 16 = 2832 MB left on disk...

That does not make sence when I know I only allocated 48 GB to this volume group.

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

--- Logical volumes ---
LV Name /dev/vg00/lvol1
LV Status available/syncd
LV Size (Mbytes) 512
Current LE 32
Allocated PE 32
Used PV 1

LV Name /dev/vg00/lvol2
LV Status available/syncd
LV Size (Mbytes) 4096
Current LE 256
Allocated PE 256
Used PV 1

LV Name /dev/vg00/lvol3
LV Status available/syncd
LV Size (Mbytes) 512
Current LE 32
Allocated PE 32
Used PV 1

LV Name /dev/vg00/lvol4
LV Status available/syncd
LV Size (Mbytes) 22000
Current LE 1375
Allocated PE 1375
Used PV 1

LV Name /dev/vg00/lvol5
LV Status available/syncd
LV Size (Mbytes) 5008
Current LE 313
Allocated PE 313
Used PV 1

LV Name /dev/vg00/lvol6
LV Status available/syncd
LV Size (Mbytes) 5008
Current LE 313
Allocated PE 313
Used PV 1

LV Name /dev/vg00/lvol7
LV Status available/syncd
LV Size (Mbytes) 5008
Current LE 313
Allocated PE 313
Used PV 1

LV Name /dev/vg00/lvol8
LV Status available/syncd
LV Size (Mbytes) 5008
Current LE 313
Allocated PE 313
Used PV 1

LV Name /dev/vg00/vgdb4
LV Status available/syncd
LV Size (Mbytes) 20000
Current LE 1250
Allocated PE 1250
Used PV 1


--- Physical volumes ---
PV Name /dev/dsk/c3t6d0
PV Status available
Total PE 4374
Free PE 177
Autoswitch On
James A. Donovan
Honored Contributor

Re: Determining the exact amt left on disk

I did a quick total of all your listed logical volumes (/dev/vg00/xxxx). You've allocated 4197 PE's, or ~65.6 GB.
Remember, wherever you go, there you are...
Ronelle van Niekerk
Regular Advisor

Re: Determining the exact amt left on disk

Actually, if you add up the MB's allocated to all the logical volumes, you get 67152 MB.

Subtract that from 69984 and you get 2832 free.

It's correct.

What make syou think you've only "allocated" 48Gb to this volume group?

It will use up the entire disk, not just part of it.
rm -r /it/managers
Ratzie
Super Advisor

Re: Determining the exact amt left on disk

AHHHH my mistake!!!
I missed a decimal point when adding you are correct!