1840014 Members
1737 Online
110159 Solutions
New Discussion

/var/adm/sw/save

 
fiorenzo monteleone
Occasional Advisor

/var/adm/sw/save

I have /var full and I can't install any patches, can I remove save directory?
I used cleanup but without succesfull and I haven't disk space free.
Can I move save directory to another file system and then create a link?
6 REPLIES 6
Fabio Ettore
Honored Contributor

Re: /var/adm/sw/save

Ciao Fiorenzo,

what is the O.S. version? How to you launch cleanup command?
Check this thread:

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

I hope this helps you.

Best regards,
Ettore
WISH? IMPROVEMENT!
T G Manikandan
Honored Contributor

Re: /var/adm/sw/save

What is the size of the var file system.

check using as what is utilizing the space

du -k /var|sort -nr|more

check for
/var/crash,
/var/adm
/var/mail
/var/tmp
/var/preserve.

Revert
MarkSyder
Honored Contributor

Re: /var/adm/sw/save

Have you looked in /var/tmp? As the name implies, this is a temporary directory so you should be able to delete any old files.

cd /var/tmp
find . -mtime +7 -exec rm {} \;

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
Mark Grant
Honored Contributor

Re: /var/adm/sw/save

You can use the "cleanup" command to erase patches that have been superceded. The following root crontab entry will remove patches that have been superceded at least twice. You can, of course, run this from the command line instead.

# Cleanup patches that have been superceded twice
0 0 1 * * echo "y" | /usr/sbin/cleanup -c 2 > /var/adm/cleanup.log 2>&1
Never preceed any demonstration with anything more predictive than "watch this"
Sridhar Bhaskarla
Honored Contributor

Re: /var/adm/sw/save

Hi,

Since you used 'cleanup' command already, I would try to see what is occupying /var filesystem.

cd /var

du -sk * |sort -n

and see the the directory that offends the space much. /var contains most of the log files and deleting opened files can cause confusion on space.

Regarding the other question, you *cannot* remove save directory. But you can move the it to another filesystem and then create a link. However, make sure this filesystem is accessible in single user mode. You will need to have this directory if you have to backout patches.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Paul Sperry
Honored Contributor

Re: /var/adm/sw/save

Also look at /var/adm/wtmp it logs logins and can grow very large. You can safely zero it out by doing the following.

cat /dev/null > /var/adm/wtmp


Good Luck