- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: /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
Discussions
Discussions
Discussions
Forums
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
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
тАО06-23-2002 05:43 PM
тАО06-23-2002 05:43 PM
/var is full
Andy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2002 06:01 PM
тАО06-23-2002 06:01 PM
Re: /var is full
You'll most likely find that the sizes don't add up because some files from these directories have increased in size but are still in memory. This can also be the case if you run the bdf command and the filesystem has been reduced in size but files have not been released. If you can track down the file(s) you can use fuser and/or lsof to fix your problem. The best place to start looking if you trying to reduce the filesystem from 100%
is /var/tmp, /var/adm/syslog /var/adm/sw, core files
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2002 06:43 PM
тАО06-23-2002 06:43 PM
Re: /var is full
du -k /var | sort -rn > /tmp/du.var
Look at the /tmp/du.var for directories that are very large...there is likely something causing either large files of a massive number of small files. Likely candidates are /var/adm, /var/mail, var/tmp.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2002 07:24 PM
тАО06-23-2002 07:24 PM
Re: /var is full
Andy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2002 07:30 PM
тАО06-23-2002 07:30 PM
Re: /var is full
Use Bill's suggestion to look for files that can be trimmed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2002 07:43 PM
тАО06-23-2002 07:43 PM
Re: /var is full
I use the method to find the file in /var , but still can't find the large file.
Andy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2002 07:45 PM
тАО06-23-2002 07:45 PM
Re: /var is full
Andy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2002 08:16 PM
тАО06-23-2002 08:16 PM
Re: /var is full
in memory, the file location will have moved,
but the space will not be recovered. Suggest
you use the 'lsof' utility to find which
process has ownership of that file. Once the
process has been terminated, the space will
be recovered.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2002 08:45 PM
тАО06-23-2002 08:45 PM
Re: /var is full
As I remember, you can use ipcs to show which files are hold in the shared memory and you can use ipcrm to remove it.
Please man ipcs and ipcrm for more information.
Hope this helps.
Kenny.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2002 08:46 PM
тАО06-23-2002 08:46 PM
Re: /var is full
Andy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2002 08:57 PM
тАО06-23-2002 08:57 PM
Re: /var is full
You can get an already compile version here, as well as the man page. You install it using the 'swinstall' tool.
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.61/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-24-2002 03:00 AM
тАО06-24-2002 03:00 AM
Re: /var is full
If bdf /var and du -sk /var report a significant difference in the size of /var, then it sounds like the file you moved was still opened by a process when you moved it. To all new processes (including du) the file is in the new location. The process that had the file open still thinks it is where it was originally. The space the file originally used remains allocated by the OS until the process closes that file. That's why bdf will report more space used than du does.
This happens often when someone deletes or moves a log file such as /var/adm/syslog/syslog.log.
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-24-2002 03:10 AM
тАО06-24-2002 03:10 AM
Re: /var is full
try
/sbin/init.d/syslogd stop
/sbin/init.d/syslogd start
& see if /var is still full.
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-24-2002 03:23 AM
тАО06-24-2002 03:23 AM
Re: /var is full
Also
#/sbin/init.d/sendmail stop
#/sbin/init.d/sendmail start
For finding the process using /var
#fuser -u /var
27849o(root) 27862o(root) 27872o(root)
where the numbers above are PIDs of processes
running on /var. To find out the process,
#ps -ef | grep 27849
#ps -ef | grep 27862
#ps -ef | grep 27872
Try to kill the process , after this verification only.
A reboot will be of much help.
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-24-2002 05:32 PM
тАО06-24-2002 05:32 PM
Re: /var is full
i tried the following , but still not work
sbin/init.d/syslogd stop
/sbin/init.d/syslogd start
#/sbin/init.d/sendmail stop
#/sbin/init.d/sendmail start
#fuser -u /var
/var:
Andy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-24-2002 06:01 PM
тАО06-24-2002 06:01 PM
Re: /var is full
Now if teh biggest directories look normal, and there is a big difference between du, ll and bdf, the reason is that a large file (or files) has been deleted but it is still open. The space cannot be recovered until the program(s) release the open file.
Bill Hassell, sysadmin