Operating System - HP-UX
1748213 Members
2974 Online
108759 Solutions
New Discussion юеВ

VAR File system currently 79%

 
SOLVED
Go to solution
Johnson Punniyalingam
Honored Contributor

VAR File system currently 79%

Hi All,

Could anyone advice me , Can we delete files under /var/stm/logs/os

mentioned in the attachment,

Currently i am facing "disk spcae" issue under /var File system ,

Thanks,
Johnson
Problems are common to all, but attitude makes the difference
5 REPLIES 5
Jeeshan
Honored Contributor

Re: VAR File system currently 79%

what is your /var/adm/syslog folder size?

is there any crash files in /var/adm/crash folder or it's in separate mount point?
a warrior never quits
Jeeshan
Honored Contributor

Re: VAR File system currently 79%

Jeeshan
Honored Contributor
Solution

Re: VAR File system currently 79%

All of the files in the /var/stm/logs/os directory can be removed
EXCEPT for the following two files:

logN.raw.cur <---- DO NOT REMOVE THIS FILE

memlog <---- DO NOT REMOVE THIS FILE

However, if the files are removed, then information in old logs will be lost.

"When the logging daemon detects an event, it logs an entry in a system log file located - by default - in the directory
'/var/stm/logs/os'. The raw log file names have the format 'logN.raw,' where N is a number that starts at 1 and is incremented each time a new log file is created with the command Switch Log. The only exception to the raw log file naming convention is the log file to which the logging daemon is currently logging data; this file is called 'logN.raw.cur.'

"Memory errors, when detected by the memory logging daemon, are logged into the memory log file called memlog."
a warrior never quits
Ganesan R
Honored Contributor

Re: VAR File system currently 79%

Hi,

All *.raw files can be removed safely. As mentioned in the previous reply, these are all old events generated by OS.

However 79% of var utilisation is not an big deal. You still have enough space. You can look into other directories as well to free up the space. use this command to find out which dir consumes majority of space.

#du -sx /var |sort -nr |head -20

Then go to that directory and free up the space.
Best wishes,

Ganesh.
Johnson Punniyalingam
Honored Contributor

Re: VAR File system currently 79%

Bunch of Thanks, For all ,

Rgds,
Johnson
Problems are common to all, but attitude makes the difference