Operating System - HP-UX
1758661 Members
2231 Online
108874 Solutions
New Discussion юеВ

Freeing Space for Patch Install

 
Adrian Sobers2
Super Advisor

Freeing Space for Patch Install

I have an old production machine that I want to install the latest pathsets for. Problem is that the install halts at the disk-space analysis step because of insufficent space. I've mananged to free space under /var however /usr is the culprit. I need to free like 215MB before patching under /usr. Any suggestions on what could go.

It's not a production machine. Runs HP-UX 11.00 with like no patches installed since OS was loaded in what 1995 I think they said. Running Oracle 8.0.5 64-bit old production database in archivelog more and 287MB total RAM on machine. Yes it's ancient.

Any help would be greatly appreciated. Attached is output from bdf command.
10 REPLIES 10
Geoff Wild
Honored Contributor

Re: Freeing Space for Patch Install

usr is quite small - any space left in vg00?

vgdisplay vg00 |grep PE

Typically, usr these days is like 2GB.

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.
Steve Steel
Honored Contributor

Re: Freeing Space for Patch Install

Hi

do

du -s /usr/*|sort -n

Post the last 10 lines


It looks like you have to extend /usr or remove somthing

/usr/share/doc and /usr/share/man are candidates to be backed up and removed


Otherwise if you have room on other lvol move /usr/share to say /opt/share and then

ln -s /opt/share /usr/share


Steve STeel
If you want truly to understand something, try to change it. (Kurt Lewin)
Prashant Zanwar_4
Respected Contributor

Re: Freeing Space for Patch Install

You can do cleanup -p -c 2 or 1.

It will get rid of supersaded patches on your system making some space for you.

Also you can see

/usr/contrib/bin/patch_check to see corrupted patches or filesets..Get rid of those also.

Hope above helps
Prashant
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."
Pete Randall
Outstanding Contributor

Re: Freeing Space for Patch Install

Adrian,

Do you have any free space that you could use to expand /usr? That would probably be better than removing stuff that you might need later on.

If you can't expand, try taking a look at the contents with du:

du -sk /usr/* |sort -n

That will show you the largest directories in /usr and you can drill down into them further with additional du commands to see if you can clean anything out. Candidates that I see might by /usr/examples and /usr/old. I would suggest you back up everything before you remove it.


Pete

Pete
Adrian Sobers2
Super Advisor

Re: Freeing Space for Patch Install

Here is vgdisplay vg00 |grep PE

in a text file
Adrian Sobers2
Super Advisor

Re: Freeing Space for Patch Install

Here is du -s /usr/*|sort -n

in a text file
Sanjay_6
Honored Contributor

Re: Freeing Space for Patch Install

Hi,

I think the best suggestion would be to increase the size of /var & /usr if you have room in vg00.

Try this link as an example on how to increase the size of /var & /usr,

http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000075563685

The itrc doc id is AUSRCKBRC00001468.

Hope this helps.

Regds
Geoff Wild
Honored Contributor

Re: Freeing Space for Patch Install

That's what I was afraid of - only a 4GB drive....you have no space left in vg00 to increase size of /usr. There will be no way to free up 215 MB on /usr....

cleanup patches only affects /var...

You must have 2GB of swap on vg00...

2 possible solutions:

Remove swap from vg00 and out it on another vg, then increase size of /usr.

Or, replace your system disk with a larger one - say 9 or 18 GB.

In both case, you will most likely have to do a make_tape_recovery...

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.
bhavin asokan
Honored Contributor

Re: Freeing Space for Patch Install


hi,

bdf shows you have a total of 385MB in your /usr mount point.in this to free 215 MB is difficult.you should have to extend /usr partition.
take a ignite backup before activity.
check the free space in root VG by vgdisplay command.
#vgdisplay vg00

free space=total free extents*size of one extent.

if enough space is available reboot the server in single user mode.(from ISL
ISL>hpux -is

then check the /usr is unmounted.

#/sbin/lvextend -L size /dev/vg00/lvol7
#/sbin/extendfs -F vxfs /dev/vg00/rlvol7

mount it and check.(size you are giving should in MB and more than that of the existing size)
reboot the server.

regds,