Operating System - HP-UX
1832591 Members
3136 Online
110043 Solutions
New Discussion

Re: how to check the size of vg00

 
SOLVED
Go to solution
Kryno Bosman
Advisor

Re: how to check the size of vg00

# vgdisplay -v vg00|awk '/Total PE/ {print $3 * 4,"MByte."}'
34720 MByte.
17360 MByte.
17360 MByte.
#

First entry is the total size of vg00. The other two entries are the size of disks in vg00.
Simplicity is too difficult for idiots like you and me...
Nguyen Anh Tien
Honored Contributor

Re: how to check the size of vg00

Hi Karthick

VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 12
Open LV 12
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4350
VGDA 4
PE Size (Mbytes) 8
Total PE 8680
Alloc PE 8680
Free PE 0
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

Free PE is 0 means that your vg00 used all available.
The size of VG00 is Total PE *PE Size (Mbytes)=8680*8MB.
Pls assign points to what you think it is usefull for you.
regard
tienna
HP is simple
Adisuria Wangsadinata_1
Honored Contributor

Re: how to check the size of vg00

Hi,

To extend the root file system, you can use one of the following method :

1. re-install the OS
2. using Ignite/UX software

It's very easy if you using method #2, just do backup the OS using make_tape_recovery command > verify the backup > boot from the tape > interupt the process > increase the file system

The Ignite/UX is a freeware, can be download from this url :

http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=IGNITEUXB

But since you dont have any free PE on your vg00, you either :

1. need to have a space from other file system OR;
2. add another disk on vg00, so there will be free PE again on your vg00 OR;
3. do a housekeeping on your root file system.

Hope this information can help you.

Cheers,
AW
now working, next not working ... that's unix
Geoff Wild
Honored Contributor

Re: how to check the size of vg00

Best way to increase root file system - with ignite.

That said - it is possible to do it under certain circumstances when you boot into lvm maintenance mode:

On one of my systems, I was able to do this - as lvol3 was unused and lvol4 was root:

Increase /stand:

The procedure listed is as follows -

/stand is only 84 MB on my server, for 11i, needs to be at least 112 MB.

Boot your machine in LVM maintenance mode
(hpux -lm at ISL>)

#
# vgchange -a y /dev/vg00
# lvrmboot -r /dev/vg00
# lvremove /dev/vg00/lvol3
# lvremove /dev/vg00/lvol2
# lvextend -L 256 /dev/vg00/lvol1
# extendfs /dev/vg00/rlvol1
# lvcreate -L 1024 -C y -r n -n lvol2 /dev/vg00
# lvlnboot -b /dev/vg00/lvol1
# lvlnboot -r /dev/vg00/lvol4
# lvlnboot -s /dev/vg00/lvol2
# lvlnboot -d /dev/vg00/lvol2
# lvlnboot -R
# reboot -r

Note: lvol3 is unused, lvol4 is /

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.