1844484 Members
4346 Online
110233 Solutions
New Discussion

making space in /var

 
SOLVED
Go to solution
Paul Wright
Advisor

making space in /var

I'm trying to make more space in /var. I noticed in /var/adm/crash, there are several directories (crash.0, crash.1 etc) with dates ranging back as much as 2 years that are reasonably large. Do I need to keep all these directories or can I delete all but the most recent?

Thanks in advance
Paul
9 REPLIES 9
Steven E. Protter
Exalted Contributor
Solution

Re: making space in /var

You can erase the directories in /var/adm/crash without ill effect.


You might want to copy them somewhere first and run crash dump analysis on them first. You might have a problem with your system. If they are old and your system is stable, erase without worries.


Attaching some instructions on how to do q4 analysis.

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
Jeff Schussele
Honored Contributor

Re: making space in /var

Hi Paul,

Those are old crash dumps.
If they don't need to be analyzed anymore, they can be removed.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Patrick Wallek
Honored Contributor

Re: making space in /var

If those crash dirs are 2 years old, and not from any recent crashes, then yes you probably can get rid of them.

The other thing you can do to try and free up space in /var is to utilize the 'cleanup' utility to commit patches. That can free up a whole lot of space. Do a 'man cleanup' for more information.
Brian Bergstrand
Honored Contributor

Re: making space in /var

The crash logs are kernel core dumps from panics. If the issue is resolved, then you delete all of them. If you are still having problems I'd keep the two or three most recent incase HP wants/needs them.

Also, on 11.x (with patches) you can run 'cleanup -c N' (where N is 1 or 2) to free up some space taken up by patch archives.

HTH.
Sundar_7
Honored Contributor

Re: making space in /var


They are crash dumps saved by the system upon panic.

Since they are very old, you are safe to delete and free up the space.

Also look at log files in /var, they tend to grow witout bounds :-)

du -sk /var | sort -n
Learn What to do ,How to do and more importantly When to do ?
James Specht
Trusted Contributor

Re: making space in /var

If you have no need for the information from the crash, kernel panic, then yes you can delete them.

--Jim
"Everyone can be taught to sculpt: Michelangelo would have had to be taught how not to. So it is with the great programmers."

Re: making space in /var

Hi Paul:
A couple of things you can do:
1. If you have never done crash analysis on your crash files in two years, its safe to say they can go.
2. Try and find out why your /var is growing and plan for growth.
3. If you have onlineJFS installed, you can extend the filesystem on the fly
4. You can create another mount point for say /var/adm/sw (for software installs), move all your files from your existing /var/adm/sw to this mount point, and then include the mount point in your /etc/fstab. You can do this on the fly as well.
5. If you can schedule a reboot of the server, then you can either use the ignite procedure to rebuild the server/filesystems or you can just go into single user mode and extend the filesystem.

Good luck
Robert-Jan Goossens
Honored Contributor

Re: making space in /var

Hi Paul,

How about removing superseded patches in /var with the cleanup utility.

# cleanup -p -c1

Robert-Jan.
GK_5
Regular Advisor

Re: making space in /var

Paul,

You can delete those old crash directories. Also you can trim system log files through SAM - routine tasks.
Also you can run cleanup utility which removes older versions of patches. Man cleanup for more details.

-GK-
IT is great!