- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- FS /var is full but is not 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
07-08-2003 02:43 AM
07-08-2003 02:43 AM
FS /var is full but is not FULL
I have a problem, my /var is 100% full, but:
/var# du -ks .
592868 .
/var# bdf .
../lvol7 2097152 2097152 0 100% /var
using lsof utility i found this process
tnslsnr 4075 ora817 2w REG 64,0x7 1593196544 8933 /var (/dev/vg00/lvol7)
after this operetation the situation returned regular. The problem is, this situation has succeeded various times with always various processes (oracle, application etc). What can be?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2003 02:50 AM
07-08-2003 02:50 AM
Re: FS /var is full but is not FULL
Try checking that files are not in used before removing them and if you can't stop the process first empty the file.
Did the space get freed after you stopped the tnslsnr ? Is that the operation you are talking about ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2003 02:53 AM
07-08-2003 02:53 AM
Re: FS /var is full but is not FULL
lsof shows the opened ports but occupied by process which can be removed (killed)
in your case tnslsnr (TNS listerner) with pid 4075 is using the port 8933 which is open.
o/p of lsof no where connected to your file system being full
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2003 02:54 AM
07-08-2003 02:54 AM
Re: FS /var is full but is not FULL
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2003 02:57 AM
07-08-2003 02:57 AM
Re: FS /var is full but is not FULL
Start with the housekeeping. Use SAM to clean up log files. Use "du -sk /var/*" to identify the largest subdirectories under /var and drill down into them (again with du) to find large files that can be removed. Most everything in /var/tmp can be removed. Run the cleanup command ("cleanup -c 1", for example) to commit patches occupying space in /var/adm/sw (do not manually delete anything under /var/adm/sw). Use the find command to find and remove core files ("find /var -name core -exec rm {} \;"). Probably the best advice I can give you is to proceed cautiously and make sure you have a backup first so that you can restore anything that shouldn't have been removed.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2003 03:04 AM
07-08-2003 03:04 AM
Re: FS /var is full but is not FULL
Pete is right, this typically occurs when files are in use (typically logfiles) and while being in use they are deleted.
The space gets available to the filesystem only after the process writing to that file
has been stopped.
So I would suggest you check your run-scripts
which are executed at boot time e.g. /sbin/init.d/oracle and see what is being logged to which file.
Next you should watch all files that are constantly being written to. For that you use lsof (I take it you have been using this tool).
You can also use find with the -mtime option and check sizes
e.g.
find /var -type f -mtime 0 | xargs ll | awk '{print $5" "$9}' | sort -nr
This will list and sort all files in /var which have been modified today by their size and print size and name.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2003 03:19 AM
07-08-2003 03:19 AM
Re: FS /var is full but is not FULL
- Oracle does not write (and after to cancel) a log of 1,5Gb in /var.
- Not there are crontab.
- I have not cancelled file in the var.
- already it has succeeded (with a called program Spazio) of Sunday to the 6:00.....
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2003 03:25 AM
07-08-2003 03:25 AM
Re: FS /var is full but is not FULL
The other are rights, your problem is that you have somewhere on your system one or several process that have some file open, but the inode has been removed from, so the space will not be free until the process end. I've attache a small binary named uli (for UnLInked files). It browse the entire process table for file descriptor with unliked inode. With this small tool you will be able to find wich process is using this kind of files, and so stop it.
Cheers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2003 03:41 AM
07-08-2003 03:41 AM
Re: FS /var is full but is not FULL
also check /var/adm/crash, if there are subdirectories core.1, core.2 ...
These directories take much space (core dump) and are written if something is not ok with the workstation (for example at shutdown). If they are with a newer date you should open a call at HP. If they are older HP told me to delete them. More interesting for HP would be the files from /var/tombstones, which also show errors of a workstation, written by online diagnostics.
Regards
Volkmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2003 06:32 AM
07-09-2003 06:32 AM
Re: FS /var is full but is not FULL
All days in the morning, I copy files from server A to server B, about 10Gb. Before, I do a rm *
Sometimes, my disk is at 100%, but the real % is 10%.
I do a shutdown of server and then it come up, the space are correct, of course, this server is for backup only.
I don't know Why it happend. NO files open, no active cron. Actually, I don't know How can I fix it?
On one thead that I saw, it tell about to apply a patch.
This is a reference to u.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2003 06:40 AM
07-09-2003 06:40 AM
Re: FS /var is full but is not FULL
are oracle log files pointing to the /var filesystem ?
Expecially the listener can log many many lines, and space is not released untill you stop/start it.
Can you post a bdf and a du -ks /var* ?
just to see what is installed...
Other things that logs very much are the performance monitor of the middaemon, they spool to the /var/opt/perf...something.
Other temporary occupation may arrive from the spool, they lay in the /var/spool, and a big spool can fill your system pretty fast.
HTH,
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2003 06:47 AM
07-09-2003 06:47 AM
Re: FS /var is full but is not FULL
I'd also cron a process to run lsof and fuser to look for delete but not yet space-freed files in these directories. I'd run every 5 minutes for about 8 hours and log the results. Then you can see how random or not this is.
HTH
mark