Operating System - HP-UX
1821808 Members
3421 Online
109638 Solutions
New Discussion юеВ

/var/adm/sw/save - cleanup HPUX 11.0

 
SOLVED
Go to solution
Tim Killinger
Regular Advisor

/var/adm/sw/save - cleanup HPUX 11.0

I'm running tight on space in /var and I've noticed a significant number of files in /var/adm/sw/save that appear to be copies of patches from previous installs of QPKs....

Can anyone tell me if this can be cleaned up, or any other opportunities to free space in /var? i.e. log files, etc.

Thanks!!
6 REPLIES 6
Robert-Jan Goossens
Honored Contributor
Solution

Re: /var/adm/sw/save - cleanup HPUX 11.0

Hi,

You can use the cleanup command.

Check if you have superseded patches installed.

# cleanup -p -c1

# cleanup -c1

HTH,
Robert-Jan
Robert Binkhorst
Trusted Contributor

Re: /var/adm/sw/save - cleanup HPUX 11.0

Hi,

These files can be cleaned using the cleanup command. If you want to remove patches that were superceded once or more, use the following command to check how much space you'll save:
cleanup -p -c 1

Read the man page for more details.

Remember, these files are here to allow you to fall-back if required. If you're sure you won't need to roll these back, go ahead. Otherwise, use more caution!

HTH,

Robert
linux: the choice of a GNU generation
Geoff Wild
Honored Contributor

Re: /var/adm/sw/save - cleanup HPUX 11.0

Yes - use the cleanup command or just:

cd /var/adm/sw/save
swmodify -x patch_commit=true *

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.
MarkSyder
Honored Contributor

Re: /var/adm/sw/save - cleanup HPUX 11.0

Other things in /var that can be cleared:

> /var/adm/btmp (note use of >, not rm)
> /var/adm/cron/OLDlog
> /var/adm/cron/log
> /var/adm/lp/log
> /var/adm/sulog
> /var/adm/syslog/mail.log
> /var/adm/syslog/OLDsyslog.log
> /var/adm/syslog/syslog.log (check for error messages before nulling syslog)
> /var/adm/wtmp

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
Shyjith P K
Frequent Advisor

Re: /var/adm/sw/save - cleanup HPUX 11.0

Hi,

You can find out large files using
find /var -xdev -size +10000000c -exec ll {} \;

Also, you can look for few log files in /var/adm/sw.
Keith Bevan_1
Trusted Contributor

Re: /var/adm/sw/save - cleanup HPUX 11.0

Hi,

Great minds think alike !

I have just completed a question on the forum and received feedback on a very similar matter.

Have a look at the following post :-

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=533406

It may have some other useful pointers.

Keith
You are either part of the solution or part of the problem