[Solved] /var directory in HP-UX is showing 95%?


 
Thread Tools Search this Thread
Operating Systems HP-UX [Solved] /var directory in HP-UX is showing 95%?
# 8  
Old 10-13-2011
/var directory in HP-UX is showing 95%?

Hi,

Thanx for the revert.

This is the output i get.


Code:
#  find /var -size +20480 | xargs ls -l | sort +4nr -5 | head -100
-rw-r--r--   1 root       root       77007636 Oct 13 11:51 /var/adm/syslog/syslog.log
-rw-r--r--   1 root       root       67092480 Apr  5  2005 /var/adm/crash/crash.2/image.2.2
-rw-r--r--   1 root       root       67080192 Apr  5  2005 /var/adm/crash/crash.2/image.2.1
-rw-r--r--   1 root       root       67076096 Apr  5  2005 /var/adm/crash/crash.2/image.1.1
-rw-r--r--   1 root       root       67067904 Apr  5  2005 /var/adm/crash/crash.2/image.1.2
-rw-r--r--   1 root       root       49475584 Apr  5  2005 /var/adm/crash/crash.2/image.1.3
-rw-r--r--   1 root       sys        36164214 Feb  5  2011 /var/opt/ignite/recovery/2011-02-05,23:17/flist
-rw-r--r--   1 root       root       33550336 Apr  5  2005 /var/adm/crash/crash.1/image.1.1
-rw-r--r--   1 root       root       33542144 Apr  4  2005 /var/adm/crash/crash.0/image.1.4
-rw-r--r--   1 root       root       33525760 Apr  4  2005 /var/adm/crash/crash.0/image.1.2
-rw-r--r--   1 root       root       33525760 Apr  4  2005 /var/adm/crash/crash.0/image.1.3
-rw-r--r--   1 root       root       33525760 Apr  4  2005 /var/adm/crash/crash.0/image.1.5
-rw-r--r--   1 root       root       33525760 Apr  4  2005 /var/adm/crash/crash.0/image.1.7
-rw-r--r--   1 root       root       33525760 Apr  5  2005 /var/adm/crash/crash.1/image.1.2
-rw-r--r--   1 root       root       33525760 Apr  5  2005 /var/adm/crash/crash.1/image.1.3
-rw-r--r--   1 root       root       33525760 Apr  5  2005 /var/adm/crash/crash.1/image.1.5
-rw-r--r--   1 root       root       33525760 Apr  5  2005 /var/adm/crash/crash.1/image.2.2
-rw-r--r--   1 root       root       33521664 Apr  4  2005 /var/adm/crash/crash.0/image.1.1
-rw-r--r--   1 root       root       33521664 Apr  5  2005 /var/adm/crash/crash.1/image.2.1
-rw-r--r--   1 root       root       33509376 Apr  5  2005 /var/adm/crash/crash.1/image.1.4
-rw-r--r--   1 root       root       33501184 Apr  4  2005 /var/adm/crash/crash.0/image.1.6
-rw-r--r--   1 root       root       29154768 Apr  4  2005 /var/adm/crash/crash.0/vmunix
-rw-r--r--   1 root       root       29154768 Apr  5  2005 /var/adm/crash/crash.1/vmunix
-rw-r--r--   1 root       root       19544656 Sep  2  2008 /var/adm/crash/crash.2/vmunix
-rw-r--r--   1 root       root       16359424 Apr  4  2005 /var/adm/crash/crash.0/image.1.8
-rw-r--r--   1 root       root       14639104 Apr  5  2005 /var/adm/crash/crash.1/image.1.6

These all are the files in /var/adm/crash directory.
Can u please tell me is it OK to delete these files as i don't know about what are the crash files which gets generated.?
Moderator's Comments:
Mod Comment Video tutorial on how to use code tags in The UNIX and Linux Forums.

Last edited by vbe; 10-13-2011 at 08:46 AM..
# 9  
Old 10-13-2011
Crash dumps are created every time, the operating system panics.They are saved when the OS reboots so the cause of the crash can be analyzed. In your case, these dumps are over 6 years old and nobody will ever care about them.

These commands will delete all crash dumps on your system:

Code:
cd /var/adm/crash
rm -r crash.?

After that you will probably have enough free space on /var, so you won't have to bother with all the other files.

Last edited by hergp; 10-13-2011 at 07:06 AM.. Reason: corrected typo
This User Gave Thanks to hergp For This Post:
# 10  
Old 10-13-2011
That said, it could help to know with what you are dealing, by the look of things I doubt its a server or the guy who installed it was a bit nuts (absolutely not HP-UX standard...).
What OS version is it? It could help seeing if there is anything else that could be done, we cant give commands not knowing that... (looks like a very old OS if it is correctly installed (pre HP-UX 9...)
# 11  
Old 10-18-2011
/var directory in HP-UX is showing 95%?

Hi hergp,

Thanx for the help.

After deleting the crash dumps under /var/adm/crash, it reduces a lot of space from 95% to 75 % now in /var directory.
Code:
# bdf -i
Filesystem          kbytes    used   avail %used  iused  ifree %iuse Mounted on

/dev/vg00/lvol8  4194304 3126528 1059496   75%  24891 33349 43% /var

Thanx a ton Smilie

---------- Post updated at 11:19 AM ---------- Previous update was at 11:17 AM ----------

Hi hergp,

Thanx for the help.

After deleting the crash dumps under /var/adm/crash, it reduces a lot of space from 95% to 75 % now in /var directory.

# bdf -i
Filesystem kbytes used avail %used iused ifree %iuse Mounted on

/dev/vg00/lvol8 4194304 3126528 1059496 75% 24891 33349 43% /var


Thanx a ton Smilie

Last edited by vbe; 10-18-2011 at 06:17 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Drive is showing offline in the /var/adm/messages and shows "drive type unknown" in the format outpu

Hi, I am facing issue with one of the drive is solaris 10. it is showing offline in the messages file scsi: WARNING: /pci@2,600000/QLGC,qlc@0/fp@0,0/ssd@w5006016746e00b1b,0 (ssd0): drive offline genunix: WARNING: Page83 data not standards compliant DGC LUNZ 0430 ... (1 Reply)
Discussion started by: Prasanth T K
1 Replies

2. Solaris

/var/adm/sulog does not showing year

Hi, I would like to know is there any way to capture the year in /var/adm/sulog file in solaris 10? Please suggest (2 Replies)
Discussion started by: manoj.solaris
2 Replies

3. Shell Programming and Scripting

Grep showing all files name of the directory

Hi All, Can any one help me here.I'm getting whole files name of the directory along with the grep result. below is the code var=`grep -i '127.3.3.1' _record` echo $var (9 Replies)
Discussion started by: netdbaind
9 Replies

4. HP-UX

Unidentified File on /var Directory

Hi All, I'm having problem with /var directory which is keep increasing. Here's the output of bdf and du command # uname -a HP-UX rppmis1 B.11.11 U 9000/800 1153414645 unlimited-user license # bdf /var Filesystem kbytes used avail %used Mounted on /dev/vg00/lvol8 ... (8 Replies)
Discussion started by: stu33
8 Replies

5. Solaris

./curl -V showing fatal: libldap.so.5: open failed: No such file or directory

Hi Guys, I am facing this Error bash-2.03$ ./curl -V ld.so.1: curl: fatal: libldap.so.5: open failed: No such file or directory Killed bash-2.03$ while executing ./curl -V in /opt/sfw/bin directory. I am using Sun Solaris 10. which package upgrage can give me this missing... (9 Replies)
Discussion started by: manalisharmabe
9 Replies

6. Shell Programming and Scripting

[SOLVED] Read html attachment from /var/mail

Hi, I am receiving an email to the server with a html attachment. When I check the /var/mail the attachment is showing as junk characters. I want to move that html file to a particular location in that server. Please help me. Regards Neethu (4 Replies)
Discussion started by: Neethu
4 Replies

7. SuSE

Suse 8 /var Directory

Hi there, I'm working on a Suse 8 based system and picked up that the crontab was missing. after some investigation i realized that the hole /var directory is missing. :mad: I would like to now if its common for this directory to go missing? Can I copy another Suse 8 /var directory to this... (10 Replies)
Discussion started by: malanve
10 Replies

8. Shell Programming and Scripting

[Solved] Looping var from two files

Hey Guys, I have been searching but unable to find solution for this; Got 2 files: #File A A B C #File B 1 2 3 And would like to 'merge' file and get a out put like; A1 A2 A3 B1 (2 Replies)
Discussion started by: bsdguy
2 Replies

9. Emergency UNIX and Linux Support

[Solved] /var is filling continuously

Hi All, I have Solaris-10 machine. Yesterday I patched it with Solaris-10 patch Cluster. Since then glance software is filling up /var/core continuously. In every few minutes, it will fill /var to 100%. Glance runs through /etc/init.d/mwa and I already stopped it, still core files are... (15 Replies)
Discussion started by: solaris_1977
15 Replies

10. Shell Programming and Scripting

CWD in prompt only showing the directory when set

Hi Gurus, I am working in tcsh and i set the prompt with this. set prompt = "$cwd>" But I see teh prompt only gets reflected with the directory where I set the prompt. After i cd to another directory it still shows the old directory. Please advise (1 Reply)
Discussion started by: kinny
1 Replies
Login or Register to Ask a Question