1752661 Members
6217 Online
108788 Solutions
New Discussion юеВ

Re: /var housekeeping

 
SOLVED
Go to solution
S.S.
Super Advisor

/var housekeeping

Hi,

I am doing housekeeping for the /var filesystem.

Can i remove the older patches which are under the /var/patch directory?
8 REPLIES 8
Johnson Punniyalingam
Honored Contributor
Solution

Re: /var housekeeping

NO. NOO.

#cleanup -c2

it prompts you ..Would you still like to commit these patches? y

man cleanup
Problems are common to all, but attitude makes the difference
Johnson Punniyalingam
Honored Contributor

Re: /var housekeeping

You can also use "SAM" for HPUX 11.11

SAM->Routine Tasks->System Log Files->Select Logs->Actions-Trim -To the Recommended Size
Problems are common to all, but attitude makes the difference
Prasanth Thomas
Valued Contributor

Re: /var housekeeping

Hi,
You can use the below command.
# swa clean {usercache | swcache | all}
When the swa command runs, it produces cache files for its use. Run swa clean to free up disk
space after your swa session is complete.

Please find the below link to clarrify more.
http://docs.hp.com/en/5992-5125/5992-5125.pdf

Regards,
Prasanth Thomas.
madhuchakkaravarthy
Trusted Contributor

Re: /var housekeeping

Hi

better what u do is stop the auditing logs if not necessary if ur system is trusted.

vi /etc/rc.config.d/auditing

set the value to zero

or

u have to trim

for example

check with du -sk* and most probably u will have lot more in mail.

cd /var/mail
ll
oracle
root
#> oracle
#> root
which sets to zero
Kapil Jha
Honored Contributor

Re: /var housekeeping

don just remove anything from /var/adm/sw

use take backup of ur server make sure /var/adm/sw is backed up, its necessary if later you need to remove sm patch (it smtimes kills).

then..
#cleanup -c 2 (would remove patch superceded twice)
if you need more space
#cleanup -c 1 (would remove patch superceded once)

BR,
Kapil+
I am in this small bowl, I wane see the real world......
madhuchakkaravarthy
Trusted Contributor

Re: /var housekeeping

HI

for futher assistance

can u post the output of du -sk* from var.

--------------

REGARDS

MC
madhuchakkaravarthy
Trusted Contributor

Re: /var housekeeping

for further INFO abt deleting files under

/var/adm

http://forums13.itrc.hp.com/service/forums/questionanswer.do?threadId=1400613

I think this might help u a little

regards

mc
S.S.
Super Advisor

Re: /var housekeeping

Dear Experts,

If i definitely needs more space then i will follow your advices.

Currently i have nullified the mail file.

Now the usage is 85%