- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /var filesystem 100% 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
03-28-2007 12:45 AM
03-28-2007 12:45 AM
I've an HP-UX 11i with /var filesystem full:
# bdf /var
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol8 2609152 2609152 0 100% /var
#
But when I execute du -ks * from /var I see files use less than filesystem capacity:
# du -ks /var
271088 /var
#
I think it could be due some files had been deleted but any process was using them yet.
What do you think?
Is there any way to fix it without rebooting system (this is the only solution I've found till now)?
Thanks in advance for your help.
Regards,
Carles
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2007 12:50 AM
03-28-2007 12:50 AM
Re: /var filesystem 100% full
If you want to clear space look at the following:
/var/adm/btmp
/var/adm/sulog
/var/adm/wtmp
Do not delete these files! Safest to empty them thus:
> /var/adm/btmp
/var/adm/cron/log and OLDlog - particularly OLDlog. If you haven't rebooted in a while, you can safely get rid of this.
/var/adm/lp/log and oldlog - see above comment
/var/adm/syslog/mail.log, syslog.log, and OLDsyslog.log
Log files can be trimmed in sam - this way you keep the most recent information in case you need to refer to it.
Mark Syder (like the drink but spelt different)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2007 12:53 AM
03-28-2007 12:53 AM
Re: /var filesystem 100% full
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2007 12:55 AM
03-28-2007 12:55 AM
Re: /var filesystem 100% full
you can also search for large files:
cd /var
find . | xargs ll -d | sort -nrk5 | more
bdf and du are notorious for showing different space.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2007 12:56 AM
03-28-2007 12:56 AM
Re: /var filesystem 100% full
and you could think about cleaning up /var/adm/sw/save
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2007 01:01 AM
03-28-2007 01:01 AM
Re: /var filesystem 100% full
;^)
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2007 02:20 AM
03-28-2007 02:20 AM
Re: /var filesystem 100% full
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2007 02:20 AM
03-28-2007 02:20 AM
Re: /var filesystem 100% full
In fact I already did all you suggested and /var filesystem is still 100% full.
As I wrote in my 1st post, filesystem is 2,5 GB size and when I execute "du -ks /var" output is just 270 MB(!).
We deleted some temp files this morning and we decreases /var to less than 20%, but few minutes later we detected it increases to 100% again.
Could deletion failed due other processes were using them and space won't be available till these processes finish?
Thanks again for your help.
regards,
Carles
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2007 02:28 AM
03-28-2007 02:28 AM
Re: /var filesystem 100% full
Yes.
fuser will help. I'm no expert in the use of fuser, but plenty of people on here are. Or you could use the man page if you don't want to wait for an expert.
If space if filling up quickly you might like to try the following commands:
cd /var
find . -mtime -1 -print
or, in an affected directory,
ll -tr
which will show the most recent files at the bottom of the screen.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2007 02:31 AM
03-28-2007 02:31 AM
Solutionlsof should help you find the processes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2007 02:42 AM
03-28-2007 02:42 AM
Re: /var filesystem 100% full
Finally I used "lsof +aL1 /var" command and I found processes were locking deleted files. I killed them and all is fine now.
Thanks to all for your suggestions.
Regards,
Carles