- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: /var/adm/crash
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2003 12:34 AM
04-04-2003 12:34 AM
Anyone can help me on my unix system I get the above directory full of files that I dont neet on my system and I do not want that directory to grow.When this directory grows all the application processes stops cause the /var dir will be 100% after that.I want to maybe suspend or remove the contents of this directory. Or any other suggestions ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2003 12:37 AM
04-04-2003 12:37 AM
Re: /var/adm/crash
This is the default directory for system panic dumps.
If you do not want a dump analyzed, just remove files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2003 12:42 AM
04-04-2003 12:42 AM
SolutionIf they are system or your files then you could try a cleanup script that deletes old files. Be careful no to delete just any old file. You have to be specific. Lets say you have some logfiles in the /var/adm/whaterver directory then a script like:
find /var/adm/whatever -type f -mtime +14 -exec rm {} \;
That would find all files of type file older than 14 days old and remove them. Once again be careful not to remove things like /var/adm/syslog files.
Good luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2003 01:56 AM
04-04-2003 01:56 AM
Re: /var/adm/crash
If you have any case open with HP for Support then these files may be required by HP to analising the root cause of problem otherwise you can delete these files.
You can write some small script to delete files in this directory and make habit to keep a copy of latest crash it may help..
Sunil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2003 02:05 AM
04-04-2003 02:05 AM
Re: /var/adm/crash
Just my $.02.
I would go into the configuration file /etc/rc.config.d/savecrash and change the default directory to a different than /var/adm/crash to avoid file system full when the system crash in the future. Alos, the best way for now is move those files or perhaps copy them into a tape and then remove them from the system.
Hope this help.
Thanks and good luck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2003 04:09 AM
04-04-2003 04:09 AM
Re: /var/adm/crash
I use this script to monitor my filesystems when it is growing beyond 90% it will issue me the warning. u can set it to according to ur requirements.this
script is scheduled in cron and it runs periodically and if it founds , it sends me a mail.
u can customize according to ur requirements.
the script
#! /bin/sh
bdf | grep -iv filesystem | awk '{ print $6" "$5}' | while read LINE; do
PERC=`echo $LINE | cut -d"%" -f1 | awk '{ print $2 }'`
if [ $PERC -gt 90 ]; then
echo "${PERC}% ALERT" | mailx -s "${LINE} on `hostname` is almost full" mail@user.com
fi
done
thanks
radhakrishnan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2003 04:38 AM
04-04-2003 04:38 AM
Re: /var/adm/crash
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 01:47 AM
04-10-2003 01:47 AM
Re: /var/adm/crash
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 04:53 AM
04-10-2003 04:53 AM
Re: /var/adm/crash
In the file /etc/rc.config.d/savecrash, you can uncomment and set the parameter, "SAVECRASH_DIR".
This will allow you to redirect future system crash files to a directory of your choosing on a file system with more available space.
If you have any recent crash dumps, I would recommend opening a call with HP to have them looked at in order to prevent future failures.
While patching is a good idea, crashes can have many root causes and should be troubleshot by an expert.
Best regards,
Kent M. Ostby
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 05:10 AM
04-10-2003 05:10 AM
Re: /var/adm/crash
You might want to find out WHY the crash is happening.
Run q4 analysis on the files prior to deleteing them all.
DO NOT remove /var/adm/crash directory without redirecting the little buggers someplace else as noted in the above posts.
I do recomend following the attached cheat sheet and figuring out why the dumps.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 05:15 AM
04-10-2003 05:15 AM
Re: /var/adm/crash
That way you don't need to worry about /var filling up.
Do, however, find out why you have crash files in /var/adm/crash
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 05:28 AM
04-10-2003 05:28 AM
Re: /var/adm/crash
Thanks to you guys for you commitment.
Sandile
Points Assigned
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 10:33 AM
04-10-2003 10:33 AM
Re: /var/adm/crash
No points for this post please.
Thanks...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 12:55 PM
04-10-2003 12:55 PM
Re: /var/adm/crash
If you emptied /var/adm/crash and it is beginning to fill again, there is likely an issue that needs to be addressed.
If you are running 11, check out EMS.
You can also load and run STM (if not loaded) and see if it comes up with a problem.
At the very least, you might want to check dmesg and syslog.
Good luck,
Kel