Operating System - HP-UX
1855729 Members
6471 Online
104103 Solutions
New Discussion

cleanup and patch directories

 
SOLVED
Go to solution
Scott Dunkley
Regular Advisor

cleanup and patch directories

can someone explain what has happened in HP-UX 11.00 to the /var/adm/sw/patch directory. On my 10.20 system this is there and cleanup works ok, but ../../../patch has now gone, and the patches appear to be listed under /var/adm/sw/save and I cant find the .superceded directory, and cleanup doesnt appear to work correctly. Can someone tell me why ? Thanks in advance.
Better to regret something you have done, than something you havn't
6 REPLIES 6
Frederic Sevestre
Honored Contributor
Solution

Re: cleanup and patch directories

Hi,

Have a look there :
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x5b24cbaac6dcd5118ff40090279cd0f9,00.html


Fr??d??ric
Crime doesn't pay...does that mean that my job is a crime ?
Steve Steel
Honored Contributor

Re: cleanup and patch directories

Hi

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_24347/PACHRDME/English]

Patch [PHCO_24347/PACHRDME/English] 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_24347/PACHRDME/English] 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_24347/PACHRDME/English] , either
swmodify or cleanup can be used to remove superceded patch files.


Hope this explains it



Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Helen French
Honored Contributor

Re: cleanup and patch directories

Hi Scott,

You may have to use the '-c' options with cleanup command. Check this out:

http://us-support2.external.hp.com/cki/bin/doc.pl/sid=30584cac1af7251b76/screen=ckiDisplayDocument?docId=200000049452968

HTH,
Shiju

Life is a promise, fulfill it!
Helen French
Honored Contributor

Re: cleanup and patch directories

Darrell Allen
Honored Contributor

Re: cleanup and patch directories

Hi Scott,

Look for current patches in /var/adm/sw/products. /var/adm/sw/save is for superseeded filesets that are replaced when installing patches. They are "restored" when a patch is removed.

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
James R. Ferguson
Acclaimed Contributor

Re: cleanup and patch directories

Hi Scott:

A major overhaul of the patch management architecture occured with the advent of 11.0 and continues in 11.11.

You need to get a current version of the 'cleanup' utility for most functionality.

For 11.0 this is PHCO_24347.

For 11.11 use PHCO_24630.

An execellent tool in 11.x for superseded patch analysis is the 'show_patches' utility. Hava a look at its man pages.

# show_patches -s

Have a look at the Patch Management whitepaper for details:

http://docs.hp.com/hpux/pdf/5967-3578.pdf

Regards!

...JRF...