1833493 Members
2893 Online
110052 Solutions
New Discussion

cleanup /var/adm/sw/save

 
kholikt
Super Advisor

cleanup /var/adm/sw/save

My /var is almost full, I noticed that all the space was used by /var/adm/sw/save. I try to use the cleanup -c 1 command but I think -c is not a valid command. I am running HPUX 11.00

### Cleanup program started at 09/02/05 13:56:44
usage: /usr/sbin/cleanup [-p|-n] -i
/usr/sbin/cleanup [-p|-n] -d

-p : Preview Mode - Report patches that should be removed
but do not actually remove them.
-n : Notify Mode - Prompt the user before removing any
patches.
-i : IPD cleanup - Remove 10.X patch information from the
Installed Product Database and the
/var/adm/sw/patch directory that remain
after a 10.X-to-11.X update.
-d : Depot cleanup - Remove patches from the depot that have
been superseded by newer patches also
available in the same depot.
### Cleanup program completed at 09/02/05 13:56:44
abc
5 REPLIES 5
Muthukumar_5
Honored Contributor

Re: cleanup /var/adm/sw/save

cleanup with -c is supported in 11.11. Man cleanup of 11.11 says for -c option as,

-c
Commit patches superseded at least times.
This option is a front-end to the 'patch_commit'
option of swmodify(1M) that provides an easier
interface to commit multiple patches at once.

Use swmodify with patch_commit.

hth.
Easy to suggest when don't know about the problem!
Yogeeraj_1
Honored Contributor

Re: cleanup /var/adm/sw/save

hi,

Another approach to this problem is to find the biggest space offender
du /var -x -ka | sort -nr | more

This will provide a list of files in size ascending order.

Another interesting guide which may be old, but the explanation of how committing patches affects the system still holds true is found at:
http://docs.hp.com/hpux/pdf/5967-3577.pdf

hope this helps too!

regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Geoff Wild
Honored Contributor

Re: cleanup /var/adm/sw/save

Try this:

cd /var/adm/sw/save

swmodify -x patch_commit=true *

That will commit all patches...

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.
Florian Heigl (new acc)
Honored Contributor

Re: cleanup /var/adm/sw/save

You don't need -c in 11.00, simply call cleanup 1 :)
yesterday I stood at the edge. Today I'm one step ahead.
Cem Tugrul
Esteemed Contributor

Re: cleanup /var/adm/sw/save

Just write;

#cleanup -c 1
OR
# swmodify -x patch_commit=true \*\.*

Good Luck,
Our greatest duty in this life is to help others. And please, if you can't