Operating System - HP-UX
1837103 Members
2234 Online
110112 Solutions
New Discussion

Re: patches gobbling up space

 
Michael Schulte zur Sur
Honored Contributor

patches gobbling up space

Hi,

this is the usage in /var:
/dev/vg00/lvol8 769536 645388 47194 93% /var
517543kb is used by patches in /var/adm/sw/save. What can I do with them, delete? It is stuff from 2002.

thanks for any advice,

Michael
15 REPLIES 15
Robert-Jan Goossens
Honored Contributor

Re: patches gobbling up space

Hi Michael,

The cleanup command will display info about superseeded patches which can be removed from your system.

# cleanup -p -c1
(preseve)
# cleanup -c1

Regards,
Robert-Jan
Fabio Ettore
Honored Contributor

Re: patches gobbling up space

Hi Michael,

S3100002024 - Sys Adm: removing old patches from an HP-UX 11.00 system

On HP-UX 10.20 systems exists the cleanup utility for that reason. But since 11.X it doesn't exist anymore and the only one chance is as doc above.

I hope this helps you.

Best regards,
Ettore
WISH? IMPROVEMENT!
Fabio Ettore
Honored Contributor

Re: patches gobbling up space

Just an annotation...
I wrote that cleanup utility doens't exist anymore on HP-UX 11.00 systems but I was not properly right...

cleanup utility exists on HP-UX 11.00 systems but

"it works for removing old 10.X patches after a 10.X
to 11.0 update, but is not very useful for a cold 11.0 system unless
managing a patch depot."

Michael, if you has an HP-UX system with older 10.X patches then sure cleanup utility can work for you (as Robert said).

Another useful doc about this:

KBRC00000625 - How can I get the same functionality for cleanup command in 11.0?

Best regards,
Ettore

WISH? IMPROVEMENT!
Michael Schulte zur Sur
Honored Contributor

Re: patches gobbling up space

Hi Robert,

the cleanup command shows only 0 bytes used in /var/adm/sw/save.

Hi Ettore,

so I executed a ghost command. ;-) Should I call an exorcist? ;-)) Please tell me, how I get this document.

thanks for the quick responses.

Michael

Massimo Bianchi
Honored Contributor

Re: patches gobbling up space

Just a minor observation for Ettore: it exists and works very weel on 11.0 and 11.11 too :)

DESCRIPTION
The cleanup command provides functions useful when dealing with HP-UX
patches on HP-UX 11.00.

The cleanup command logs all information to /var/adm/cleanup.log.

I think you are messing up with the "-i" option:

-i Remove HP-UX 10.X patches that remain in the Installed
Product Database after an upgrade to HP-UX 11.00.


Check on the man page..



Massimo

Michael Schulte zur Sur
Honored Contributor

Re: patches gobbling up space

Hi,

cleanup -pi shows no leftover patches from 10.X

thanks,

Michael

Re: patches gobbling up space

Cleanup allows you to 'commit' patches. What this means is that once a patch is 'committed' you can't un-install it. This can be serious if a patch is declared bad by HP.

So you need to be fairly carefull about how you use it. The best thing to do is to start with patches that have been superseded several times:

cleanup -p -c 3

Will show you patches that have been superseded 3 times, and how much space you will get back from commiting these patches. You can check for 2 times of course with:

cleanup -p -c 2

If this is still not showing enought patches to commit, you can try it with patches that have only been superseded once:

cleanup -p -c 1

However you should be careful with removing these patches as those patches that supersede these may be declared bad (you can see these patches in the right hand column) and committing these patches will mean you will never be able to back out those in the right hand column.

Once you've decided which to commit, backup your /var filesystem and then just run the command again without the -p option, e.g.

cleanup -c 2

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Robert-Jan Goossens
Honored Contributor

Re: patches gobbling up space

Michael Schulte zur Sur
Honored Contributor

Re: patches gobbling up space

Hi Robert,

I cant see the doc because it is on the european site. :-(

thanks,

Michael
Michael Schulte zur Sur
Honored Contributor

Re: patches gobbling up space

Hi,

I have another problem. On one machine cleanup has only the following options:

greetings,

Michael

HP-UX fra01h B.11.00 U 9000/800 2007307834 unlimited-user license

NAME
cleanup - HP-UX patch cleanup utility

SYNOPSIS
cleanup [-n|-p] -i
cleanup [-n|-p] -d
Fabio Ettore
Honored Contributor

Re: patches gobbling up space

Hi Michael,

I am going to post a doc above (for Massimo too):

*****************************************
How can I get the same functionality for cleanup command in 11.0? DocId: KBRC00000625 Updated: 10/1/02 7:39:00 AM

PROBLEM
In 10.20 the cleanup command would automatically search and remove unneeded
patches. In 11.00 the command does not work the same. How can I get the same
functionality in 11.00 as I had in 10.20 with the cleanup command or some other
command?

RESOLUTION
The cleanup utility in 11.0 is not as "aggressive", in that it doesn't remove
patch files in /var/adm/sw/save as it did in 10.20 to free up disk space.
There are two alternatives that can be used to remove patch files:


1) Install patch PHCO_27779

Patch PHCO_27779 s700_800 11.00 HP-UX Patch Tools and White Paper
is available at http://itrc.hp.com under "Individual Patches".


2) Use the following command for the patch(es) that need to be removed:

swmodify -x patch_commit=true

This command needs to be run for each patch that needs to be removed.


The patch file removal functionality was removed from cleanup in the 11.0
version because the functionality is provided via the swmodify command (using
the '-x patch_commit' option). Due to the difficulty in committing multiple
superceded patches using swmodify, patch PHCO_27779 was released to enhance the
cleanup utility and provide a front-end to swmodify to make it easier to commit
a group of superceded patches. With the application of PHCO_27779, either
swmodify or cleanup can be used to remove superceded patch files.
*****************************************

It indicates swmodify command on HP-UX 11.X, otherwise in order to obtain the same functionality of cleanup command as HP-UX 10.20, you should install PHCO_27779. Maybe (even sure) it is already installed on your system but the concept is that (without this patch) cleanup utility won't work as 10.X on 11.X as I said in previous post.
Without PHCO_27779 cleanup utility could just delete older HP-UX 10.X patches on HP-UX 11.X systems.

Also:
The cleanup command provides two functions useful when dealing
with HP-UX patches on HP-UX 11.X.

- It is used to remove any 10.X patches from the Installed
Product database after updating to HP-UX 11.X.
- It is also used to remove patches from a software depot if
they have been superseded by patches also available in the same
depot.


Best regards,
Ettore
WISH? IMPROVEMENT!
Robert-Jan Goossens
Honored Contributor

Re: patches gobbling up space

Geoff Wild
Honored Contributor

Re: patches gobbling up space

Here's another way to commit patches:

cd /var/adm/sw/save
swmodify -x patch_commit=true *

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.
Michael Schulte zur Sur
Honored Contributor

Re: patches gobbling up space

Hi Robert,

I do come from Germany, however I stumbled into these forums by way of Google search and the url must have been american and so I registered there.

greetings,

Michael
Jeff Ohlhausen
Frequent Advisor

Re: patches gobbling up space

One more FYI. If you commit a patch you need to remove later on the way to go about it is:
1) download the offending patch
2) reinstall it
3) swremove it

Just in case you need to know.
Jeff
Do or do not - there is no try.