1748128 Members
3537 Online
108758 Solutions
New Discussion юеВ

/var cleanup

 
SOLVED
Go to solution
John McDen
Regular Advisor

/var cleanup

What are the file under /var/adm/sw/save

There are lots of the patch dir files can this be deleted ??
New to HP
6 REPLIES 6
Pete Randall
Outstanding Contributor
Solution

Re: /var cleanup

Sanjay_6
Honored Contributor

Re: /var cleanup

Hi John,

do not delete the file under /var/adm/sw manually. Use the patch cleanup utility "cleanup" to clean unrequired patches.

this utility is available in a patch format if it is not already avaialble on your system. Do "man cleanup" for more info on the utility.

Hope this helps.

Regds
James R. Ferguson
Acclaimed Contributor

Re: /var cleanup

Hi John:

The *ONLY* way to safely manage the /var/adm/sw directory and its contents is with the 'cleanup' utility. If you are on 10.20, use 'cleanup' without any arguments. On 11.x, you can regain space with:

# cleanup -c 1

Have a look at the man pages for 'cleanup' for more information. Essentially the /var/adm/sw/save directory holds superseded patches. The issue is that if you ever need to back out a patch, you will need the patch's prior version -- the version that resides in this directory.

Regards!

...JRF...
S.K. Chan
Honored Contributor

Re: /var cleanup

Basically SDUX keep rollback copies of all
filesets in here. You can house keep it, he only thing is you will not be able to uninstall these fileset/patch with swremove later. So in order to removed these copies, you have to commit these patches.

# swmodify -x patch_commit=true PHNE_XXXXX.\*
# swlist -l patch -a patch_state
==> check to make sure it's "committed"

If you don;t want to do the above manually then download "cleanup" utility and run it like so ..
# cleanup -c <#of-time-superseded>
I usually run it as ..
# cleanup -c 1
John McDen
Regular Advisor

Re: /var cleanup

Thank you all for such a quick response..

New to HP
Helen French
Honored Contributor

Re: /var cleanup

Hi John:

By default at 11.0 during patch installation, SD-UX makes rollback copies of all files and archive library objects modified. These copies are saved under the "/var/adm/sw/save" directory structure.

You should not directly delete thos files. You can use the 'cleanup' command for doing this.

Check this document for more information (TKB #KBRC00002204):

http://us-support.external.hp.com/cki/bin/doc.pl/sid=147ca78702abf50c2e/screen=ckiDisplayDocument?docId=200000049452968

HTH,
Shiju
Life is a promise, fulfill it!