- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /var is full
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-03-2006 08:54 PM
04-03-2006 08:54 PM
/var is full
I have server that sometime /var is full (100%) in bdf command.
# du -sk /var
526264 /var
# bdf /var
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol7 2097152 2097152 0 100% /var
why ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2006 08:59 PM
04-03-2006 08:59 PM
Re: /var is full
Most likely there is a file deleted but a process still has the filehandle open. Therefore the space is not available.
Id the processes on /var
fuser -cu /var
Kill the procs on /var
# NOTE: This may kill your entire system.
fuser -cuk /var
Identify actual files
cd /var
du -k | sort -rn | more
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-03-2006 09:05 PM
04-03-2006 09:05 PM
Re: /var is full
Find out what occupies more on /var by the following command.
# du -skx /usr/* | sort -nr | head -25
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2006 09:14 PM
04-03-2006 09:14 PM
Re: /var is full
Hi Sapi,
Check which folder/file is taking more space in /var using command,
du -skx /var/* |sort -nr | head -25
it will list the folders with size in kb.
delete the unwanted files from these.Check also
/var/adm/crash folder and clear if there is crash dumb created.
Cheers!!
sysadm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2006 09:42 PM
04-03-2006 09:42 PM
Re: /var is full
since your du shows about 500 Mb used while bdf says /var is 2Gb check for deleted but still allocated files:
# lsof +L1 /var | grep VREG | grep -v mem | sort -k7n
You my need to restart the process holding the biggest ones.
rgds
HGH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2006 03:12 PM
04-04-2006 03:12 PM
Re: /var is full
/var is full at 12:00 AM and at 03:00 PM, /var is back to normal (27%). I don't do anything.
hoe to check that there are some applications that used /var for instant time?you know that, with du -sk and bdf command have different yield.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2006 08:08 PM
04-04-2006 08:08 PM
Re: /var is full
/var/tmp is used to vi files. If someone was vi-ing a large file it could have temporarily filled up var.
Regards,
JASH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2006 10:14 PM
04-04-2006 10:14 PM
Re: /var is full
do you have scheduled jobs at those times? what is in your crontab?
crontab -l
regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2006 10:23 PM
04-04-2006 10:23 PM
Re: /var is full
# fuser -u /var
will give that /var/ directory usage.
Another reason may be transferring files to that directory or log file(s) are getting filled.
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2006 02:21 AM
04-05-2006 02:21 AM
Re: /var is full
Because installation of patches, I suggest also to use the cleanup command. See man page for more details.
Roland
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2006 02:52 AM
04-06-2006 02:52 AM
Re: /var is full
there is normal condition in /var:
$ sudo du -sk *
16 X11
11176 ace
127368 adm
408 asx
3408 dmi
304 dt
0 empty
0 home
104 hponly
0 ifor
0 lost+found
14608 mail
0 news
0 obam
162384 opt
0 parmgr
6952 preserve
712 rbootd
24 run
656 sam
8 sdconf.rec
472 spool
16 statmon
50240 stm
149824 tmp
2176 tombstones
0 uucp
400 vx
96 yp
$ bdf /var
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol7 2097152 545816 1548456 26% /var
there are applications that used /var/tmp but in cronjob, there is a job that deleted file under directory /var/tmp every 5 minutes.