Operating System - HP-UX
1836840 Members
2213 Online
110110 Solutions
New Discussion

Re: /var/adm/sw/save and cleanup

 
Charles McCary
Valued Contributor

/var/adm/sw/save and cleanup

group,

Hi - ran cleanup -c 1
### Cleanup program started at 07/11/02 11:01:07
Commit patches superseded at least 1 time(s) on 'lmxap03s'.
Obtaining superseded patch information...done.
No non-committed patches superseded at least 1 time(s) are present.
All information has been logged to /var/adm/cleanup.log.
### Cleanup program completed at 07/11/02 11:01:07

The output shows no patches...
However, there are still numerous patches in the save dir, it is my understanding that the save dir only contains superceded patches.

Any ideas?

tx,

c
6 REPLIES 6
James R. Ferguson
Acclaimed Contributor

Re: /var/adm/sw/save and cleanup

Hi Charles:

The concept is to have (and you do) the immediately prior version of a patch. You *want* to be able to roll-back (i.e. swremove and as a part of that removal, restore the prior state).

Regards!

...JRF...

Charles McCary
Valued Contributor

Re: /var/adm/sw/save and cleanup

James,

thanks I was afraid that was the answer.

c
S.K. Chan
Honored Contributor

Re: /var/adm/sw/save and cleanup

That's because you do not have any more patches in /var/adm/sw/save that were superseeded only once (since you use "-c 1"). The syntax ..

# cleanup -c <#-of-time-superseded>
Sanjay_6
Honored Contributor
Martin Johnson
Honored Contributor

Re: /var/adm/sw/save and cleanup

cleanup gets rid of no longer needed patches. What you have left are patches that have been superceded but are needed in case of a rollback (i.e. swremove).

HTH
Marty
Martin Johnson
Honored Contributor

Re: /var/adm/sw/save and cleanup

I have /var/adm/sw/save in its own file system. That way if I need more space, I can easily extend it (especially helpful on HFS only systems).

HTH
Marty