Operating System - HP-UX
1825795 Members
3150 Online
109687 Solutions
New Discussion

Re: Installing hpux 11 64 bit, vg00 not using all space ( How to extend it ?? )

 
SOLVED
Go to solution
Henrique Silva_3
Regular Advisor

Installing hpux 11 64 bit, vg00 not using all space ( How to extend it ?? )


Just finished installing hpux 11 64bit onto a K580 ( our sand box server ). We chose to have "/" to be the 4 GB disk containing all other file systems, instaead of separating them. vg00 had a capacity of 4 GB, we used 1.5 GB for swap, 100 MB for /stand and installed the OS. When it came up, the "/" file system was only 1 GB large, and there is only 128 MB left on the device.

How is that so ? There was another 1.5 GB available on vg00. Why is it not under "/" and can we extended a mounted "/" ???? I am not sure.

Any ideas that will prevent us from reinstalling this will be appreciated. I have already created an alternative vg01 and mounted /tmp there, so that I can install oracle and sybase.

Thanks,

Henrique Silva
"to be or not to be, what was the question ???? "
9 REPLIES 9
A. Clay Stephenson
Acclaimed Contributor

Re: Installing hpux 11 64 bit, vg00 not using all space ( How to extend it ?? )

Hi:

Just so we know for sure that things are as you say they are, please do two things:

1) vgdisplay -v /dev/vg00
2) bdf

Post those results and the problem should be obvious.
If it ain't broke, I can fix that.
Henrique Silva_3
Regular Advisor

Re: Installing hpux 11 64 bit, vg00 not using all space ( How to extend it ?? )

Here is vgdisplay of /dev/vg00.

c0t0d0 is a 4GB drive. It looks like there is only 363 MB available on the drive ?

I need to mount the other drives for installing oracle and sybase, and I have created a new vg01, and moved /tmp there, so that there will be enough space fot linking.

However, I would like to have "/" being the full 4 GB drive. I did not install the OS, but was there, and I am not sure if there was an option to physically say how big the "/" should be. I do not remember if they choose a fixed MB or remaining space on disk ( vg ) for "/".

Thanks,

Henrique Silva
"to be or not to be, what was the question ???? "
Henrique Silva_3
Regular Advisor

Re: Installing hpux 11 64 bit, vg00 not using all space ( How to extend it ?? )

I can not see my own attachment, so, I am including the info here. Will be a bit hard to read tough :-(

BDF IS :

bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 1081344 952170 122626 89% /
/dev/vg00/lvol1 83733 17385 57974 23% /stand
/dev/vg01/newtmp 1536000 1487 1438610 0% /tmp


vgdisplay -v /dev/vg00 IS :

vgdisplay -v /dev/vg00
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 3
Open LV 3
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 2500
VGDA 2
PE Size (Mbytes) 4
Total PE 1023
Alloc PE 660
Free PE 363
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) 84
Current LE 21
Allocated PE 21
Used PV 1

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

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


--- Physical volumes ---
PV Name /dev/dsk/c0t0d0
PV Status available
Total PE 1023
Free PE 363
Autoswitch On
"to be or not to be, what was the question ???? "
A. Clay Stephenson
Acclaimed Contributor

Re: Installing hpux 11 64 bit, vg00 not using all space ( How to extend it ?? )

Hi:

The are actually 363 4MB extents free (1452MB) in this VG. I suppose that you are trying to load everything in / so that you combine the leftover space into larger chunks. The preferred method is to have separate filesystems for /opt, /usr, /home, and /tmp. The / filesystem should really never gro so it can be limited to 128MB or so (200MB is very generous).

Because the / lvol must be contiguous, you can't extend it. You can create another lvol in vg00 using the command line or SAM to use your remaining space.
If it ain't broke, I can fix that.
Henrique Silva_3
Regular Advisor

Re: Installing hpux 11 64 bit, vg00 not using all space ( How to extend it ?? )

Thanks, A, Clay.

I understand the concept of separate file systems for "/", "/usr", "/var", etc, and have seen it go from separate to combined and separate again in the last 10 years. I favor the everything under one "/" concept, especially nowadays when root disks are 18 GB or larger. As long as you monitored your system religiously ( scripts, etc ), you should not have a problem.

The question really was WHY I could not get everything under the 4 GB disk and now, have a 1.5 GB available on it at install time ? I do not really care how it is setup, but HOW to setup it at install time !!! I do not want to be reinstalling this just to see if I can get it right !!!!

Thanks,

Henrique Silva
"to be or not to be, what was the question ???? "
A. Clay Stephenson
Acclaimed Contributor

Re: Installing hpux 11 64 bit, vg00 not using all space ( How to extend it ?? )

Hi:

I can't really remember the exact phrasing the the Disks and Filesystems Setup in the Installation but you have to be very careful to choose the desired option under the place where you enter the sizes. I always choose 'Fixed Size' so that I know exactly what is happening. If you are concerned about disk space, I suggest that you configure a much smaller primary swap (256MB) and either leave some spare room for another swap device (at different priority) and running swapmem_on=1 if you know that you are not going to swap much. Anyway, the filesystem setup screen is tricky and you have to watch the numbers AND the option setting.
If it ain't broke, I can fix that.
Eric Ladner
Trusted Contributor
Solution

Re: Installing hpux 11 64 bit, vg00 not using all space ( How to extend it ?? )

Do a vgdisplay vg00. Look for 'Free PE'. If you have any, you can extend a file system like so:

Do an lvdisplay on the volume you want to extend (lvdisplay /dev/vg00/lvol3) and look for the 'Allocated PE'. Add to this number the number of physical extents you want to tack on (from Free PE above), then:

vgchange -a n vg00
lvextend -l /dev/vg00/lvol3
extendfs -F vxfs /dev/vg00/lvol3

The only caveat being that the volume group has to be inactive to extend it. You'll have to boot into single user mode to change most things on vg00 (/ /var /tmp, etc). Even then you might have problems with / that would require booting off of a recover CD to do it, but I think single user mode will work.
Henrique Silva_3
Regular Advisor

Re: Installing hpux 11 64 bit, vg00 not using all space ( How to extend it ?? )

Thanks Clay, Eric.

I am not sure you can extend "/" from single user mode either. You are still using the file system. Maybe from the CD ROM boot !!!

I will try that next week and will let you guys know.

Henrique Silva
"to be or not to be, what was the question ???? "
Sandip Ghosh
Honored Contributor

Re: Installing hpux 11 64 bit, vg00 not using all space ( How to extend it ?? )

I think during Installation someone has selected it as %free for the "/" file system. Now you can can increase this one if you are having Advance vxfs. You should have vxadv in your kernel. fsadm can extend your "/" filesytem to 4GB-(/stand)-(Swap).

Sandip
Good Luck!!!