cancel
Showing results for 
Search instead for 
Did you mean: 

Var file system full

trilok_pvp
Frequent Advisor

Var file system full

Hi

I have HP UX server running oracle database.
var file system increases daily and reaches 90% today. pls suggest if it reaches 100%, it will create a new var file system automatically or we need to do any proactive task.
10 REPLIES
James R. Ferguson
Acclaimed Contributor

Re: Var file system full

Hi:

> if it reaches 100%, it will create a new var file system automatically or we need to do any proactive task.

There is no automatic file system extension. This is something you would need to do.

There are many, many threads dealing with how to handle full filesystems. For '/var' you might look for old crash dumps to remove (in '/var/adm/crash'. A likely source of space recovery may be achieved by running:

# cleanup -c 1

This recovers space in '/var/adm/sw' by removing the roll-back images for patches that have been superseded at least once.

NEVER manually muddle with '/var/adm/sw' and its contents. To do so may render your system un-patchable.

Regards!

...JRF...
Lijeesh N G_1
Respected Contributor

Re: Var file system full

Hi,

==>100%, it will create a new var file system automatically?
No,It will not create a new var file system automatically.
==>We need to do any proactive task??
1)Observe why it is getting increase daily.
2)Remove unwanted files if any.
3)Extend the /var file system.

Regards,
LIJEESH N G
Pete Randall
Outstanding Contributor

Re: Var file system full

Extension and/or housecleaning is entirely up to you - nothing is automatic.

To get a good idea of where the problem lies, run "du -sk /var/* |sort -n". This will list the largest files and directories and sort them so the last ones you see are the worst offenders. A careful examination of this list will show you where your efforts need to be concentrated.


Pete

Pete
SoorajCleris
Honored Contributor

Re: Var file system full

Hi,

or we need to do any proactive task?

Very important .. if you are not able to find out any least wanted files ( mostly old crash dumps) you need to do.

1. If you don't have online JFS installed then you plan for your downtime.

If you have online JFS and enough free extends in vg00 then it is 2 minutes job to extend it.

Regards,
Sooraj

"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
trilok_pvp
Frequent Advisor

Re: Var file system full

Hi

I have observerd, only files in \var\mails and \var\tmp is having lot of files from 2002 and this folder updated upt to time.
Now it is 91%

Can you pls suggest us
Steven E. Protter
Exalted Contributor

Re: Var file system full

Shalom,

/var/spool/mail is probably a collection of emails piling up.

You might make the situation a little better by periodically trimming your log files. You can do it with sam or a > logfilename command, even with cron

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Pete Randall
Outstanding Contributor

Re: Var file system full

Normally /var/tmp can be trimmed at re-boot - see /sbin/init.d/clean_tmps. As far as the mails (I have no /var/mails, so I'm assuming you're making a generic reference to the mail queue), you should probably make an effort to find out what is accumulating in there, for whom was it intended and why was it not cleaned up.


Pete

Pete
trilok_pvp
Frequent Advisor

Re: Var file system full

Hi,

i have lot of raw files in the folder var/stm/logs/os folder in var file system.
files are generated from 2005 to still date.

shall i remove the files from this folder.

files name example log02.raw

Lijeesh N G_1
Respected Contributor

Re: Var file system full

Hi,

This file contains STM Logs.You can remove this file,
but remember if you do this, old log information will be lost.

Review the log file and proceed with either delete or trimming the file.

Reagrds,
LIJEESH N G
SoorajCleris
Honored Contributor

Re: Var file system full

Hi,

These are log files by STM. you may refer this.

http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1249313439845+28353475&threadId=1088802

Regards,
Sooraj
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie