1845797 Members
4316 Online
110250 Solutions
New Discussion

Re: /var fs filled up

 
SOLVED
Go to solution
Craig Basham
Occasional Contributor

/var fs filled up

The /var filesystem on many of my machines is nearing bursting. Is it safe to delete the patches in /var/adm/sw/patch without affecting the functioning of the patch? Are there any other files or directories that are of no particular use and can be deleted without causing problems?
Cheers
6 REPLIES 6
HSW Support
Advisor
Solution

Re: /var fs filled up

Don't just delete the files. Download the 'cleanup' utility from the patch database, this will do the job safely for you.

Mike
Bill McNAMARA_1
Honored Contributor

Re: /var fs filled up

Just before you do, make a backup.
http://software.hp.com/products/IUX/

Now with 11.00 and 10.20 the var/adm/patch directory structure changed.

with 11
/var/adm/sw/save is a copy of all previous patches that you superseded. Ie installed later revisions of. Just in case you need to swremove a patch, the earlier copy of the files are located there.

You can touch a PATCH_NOSAVE file in /var/adm/sw/ that will not save any replaced software, thus you can't swremove, but you save space.

The 'cleanup' utility can be added/updated on 10.X with patch PHCO_20824.


Later,
Bill
It works for me (tm)
Shahul
Esteemed Contributor

Re: /var fs filled up


Hi

I am giving some options here to tackle /var problem.

OPTION 1

Do U have free space in ur root HDD. If yes go to lvm maintanace mode and extend the file system.

OPTION 2

As U told U can delete /var/adm/sw/patch, But take a backup of the same in a dat.

OPTIN 3

There are some log files getting extended day by day in /var file system, U can trim those things

Eg

#>/var/adm/wtmp
#>/var/adm/btmp
#>/var/adm/sulog
#>/var/sam/log/samlog
#>/var/sam/log/samlog.old

Some times in /var/spool/cron/tmp directory some big files used to get created. If it is there U can delete.

Best of luck

Shahul
Bill McNAMARA_1
Honored Contributor

Re: /var fs filled up

/var/tmp can also get quite big.
/var/adm/crash similarly
core files may also be lying around unwanted.

Later,
Bill
It works for me (tm)
Vincenzo Restuccia
Honored Contributor

Re: /var fs filled up

If you can't extend /var:
#find /var -size +xxx
#swlist -l product|grep -i ph|more (Search for olds patches and remove it with swremove).
Magdi KAMAL
Respected Contributor

Re: /var fs filled up

Hi Craig,

Try having a look under /var/adm/crash. If you find any directories and/or files in, you may move them some where else or simply delete them.
All generated crash files in it is to be used in order to debug unnormal situations.