[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%?
# 1  
Old 10-13-2011
[Solved] /var directory in HP-UX is showing 95%?

Hi Everyone,

My var directory is showing near to 100% ? What are the files should i delete to make it less??

Kindly suggest

Code:
# bdf -i
Filesystem          kbytes    used   avail %used  iused  ifree %iuse Mounted on
/dev/vg00/lvol3    1048576  107616  933616   10%   3342  29394   10% /
/dev/vg00/lvol1     511672   60800  399704   13%   65  50111   0% /stand
/dev/vg00/lvol8    4194304 3997504  195320  95% 24916  6124  80% /var


Last edited by pludi; 10-13-2011 at 05:16 AM..
# 2  
Old 10-13-2011
To find the largest files in /var, try
Code:
find /var -size +20480 -ls | sort +6nr -7 | head

# 3  
Old 10-13-2011
/var directory in HP-UX is showing 95%?

Thanx for the help.

But i'm getting the error in this,

Code:
# find /var -size +20480 -ls | sort +6nr -7 | head
find: bad option -ls


Last edited by vbe; 10-13-2011 at 08:45 AM..
# 4  
Old 10-13-2011
If HP-UXs find does not allow the -ls switch, then this should work:
Code:
find /var -size +20480 | xargs ls -l | sort +4nr -5 | head

This User Gave Thanks to hergp For This Post:
# 5  
Old 10-13-2011
check for this too ..
Code:
$ du -ah | sort -r +4n | head

# 6  
Old 10-13-2011
/var directory in HP-UX is showing 95%?

Yeah it works.,..,

Mentioned below is the output of the same:
Code:
# find /var -size +20480 | xargs ls -l | sort +4nr -5 | head
-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

So,what should i delete from here??there are
/var/adm/syslog/syslog.log consumed a lot of space
Also other files in /var/adm path.,.,

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:45 AM..
# 7  
Old 10-13-2011
I would delete the crash dumps under /var/adm/crash. Most likely, nobody will ever analyze them, especially if they are 6 years old :-)

Then rerun the command and see, what comes up next. You might want to change the trailing "head" to "head -20" or "head -even_bigger_number" to see more files.
This User Gave Thanks to hergp For This Post:
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