Operating System - HP-UX
1836479 Members
1941 Online
110101 Solutions
New Discussion

Re: var/adm/sw/save and diskspace

 
Joe Profaizer
Super Advisor

var/adm/sw/save and diskspace

Trying to clean up disk space and have about 500MB in var/adm/sw/save. Are these files necessary? If not, can I delete them?

..Joe
7 REPLIES 7
A. Clay Stephenson
Acclaimed Contributor

Re: var/adm/sw/save and diskspace

Very bad idea!!!

Use the cleanup command. man cleanup.

It will properly do the work for you.

Clay
If it ain't broke, I can fix that.
boley janowski
Trusted Contributor

Re: var/adm/sw/save and diskspace

you have some logs in there that you will want to maintain to some extent, but you can clean up those logs some.
Patrick Wallek
Honored Contributor

Re: var/adm/sw/save and diskspace

Do NOT manually delete an files in /var/adm/sw/????? directories. For cleaning up disk space in /var/adm/sw check out the cleanup utility.

A patch is required to install cleanup on 11 and I don't remember the patch number right offhand.
Vincenzo Restuccia
Honored Contributor

Re: var/adm/sw/save and diskspace

James R. Ferguson
Acclaimed Contributor

Re: var/adm/sw/save and diskspace

Hi Joe:

The maintenance of files and directories in /var/adm/sw/ is best left to the 'cleanup' utility.

/var/adm/sw/save/ holds prior copies of all
files and objects modified during a 'swinstall'. This allows patches to be rolled-out if necessary.

Use 'cleanup' to properly recover space and committ patches:

# cleanup -c [number_of_time_superseded]

For instance, 'cleanup -c 1' will display all patches that have been superseded at least one time and then prompt for removal of their rollback information thereby recovering disk space.

See the man pages for 'cleanup' for more information.

...JRF...
Patrick Wallek
Honored Contributor

Re: var/adm/sw/save and diskspace

Check out this patch: http://us-support2.external.hp.com/wpsl/bin/doc.pl/screen=wpslDisplayPatch/sid=3ddd6fe91a924a3ae4?PACH_NAM=PHCO_22044&HW=s800&OS=11.00

Download and install this on 11 and you will then have the 'cleanup' command which will help you immensely.
James R. Ferguson
Acclaimed Contributor

Re: var/adm/sw/save and diskspace

Hi again:

The 'cleanup' utility can be added/updated on 10.X with patch PHCO_20824.

For 11.0, patch PHCO_22044 is applicable.

...JRF...