Operating System - HP-UX
1745781 Members
3417 Online
108722 Solutions
New Discussion

Re: /var is 85%, need to bring it to 70%, please help me.

 
Dennis Handly
Acclaimed Contributor

Re: /var is 85%, need to bring it to 70%

>These are the patches that are superseded.

>cleanup -p -c 3

 

Remove the -p and the patch save area for these patches will be removed.

You probably also want to see how much space you save with "-p -c 2".

Gerhard Klein
Occasional Contributor

Re: /var is 85%, need to bring it to 70%

You can prevent swinstall to save patched files by adding the line

patch_save_files = false

to file /var/adm/sw/defaults

 

Regards

Gerhard

Dennis Handly
Acclaimed Contributor

Re: /var is 85%, need to bring it to 70%

>You can prevent swinstall to save patched files by adding the line

 

You do NOT want to do this.  Unless you regularly take ignite backups or have tested the patches on another machine for some time.

 

Better to use cleanup after patching.

praju
Occasional Contributor

Re: /var is 85%, need to bring it to 70%, please help me.

Hi Aparna,

 

  Simply you can use below command and find out what are the files/dir using more space.(If its log file pls take backup and nullify)

 

#find /var -xdev -type f -size +1024 -exec ll {} \; | awk '{print $9, $5}' | sort -rn +1 | awk '{print $1, $2/1024/1024 "MB"}' | more

 

 

Pr@ju!