- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- System Administration
- >
- /var is full
-
-
Categories
- Topics
- Hybrid IT with Cloud
- Mobile & IoT
- IT for Data & Analytics
- Transformation
- Strategy and Technology
- Products
- Cloud
- Integrated Systems
- Networking
- Servers and Operating Systems
- Services
- Storage
- Company
- Events
- Partner Solutions and Certifications
- Welcome
- Welcome
- Announcements
- Tips and Tricks
- Feedback
-
Blogs
- Alliances
- Around the Storage Block
- Behind the scenes @ Labs
- Converged Data Center Infrastructure
- Digital Transformation
- Grounded in the Cloud
- HPE Careers
- HPE Storage Tech Insiders
- Infrastructure Insights
- Inspiring Progress
- Internet of Things (IoT)
- My Learning Certification
- Networking
- OEM Solutions
- Servers: The Right Compute
- Telecom IQ
- Transforming IT
-
Quick Links
- Community
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Contact
- Email us
- Tell us what you think
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Enterprise.nxt
- Marketplace
- Aruba Airheads Community
-
Categories
-
Forums
-
Blogs
-
InformationEnglish
/var is full
SOLVED- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
04-26-2012 09:05 PM
04-26-2012 09:05 PM
Hello everybody!
I delete old logs and have 3gb free space on /var. But in some days /var again full!!!
I read all about /var here.
I used cleanup, delete all old logs, cp /dev/null /var/adm/wtmp, and wtmps, btmps... and i have about 200megs of free space, but!!!
after 1-2 minutes /var again was full!! I have no idea why its happens and what to do. Please help!
Sorry for my english...
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
04-26-2012 10:25 PM
04-26-2012 10:25 PM
Re: /var is full
Re: /var is full
Have you used lsof to find deleted files?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
04-27-2012 01:11 AM
04-27-2012 01:11 AM
Re: /var is full
Re: /var is full
No, i've not. I do not understand why i must find deleted files?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
04-27-2012 10:23 AM
04-27-2012 10:23 AM
Re: /var is full
Re: /var is full
>I do not understand why I must find deleted files?
You said it gets full after a few minutes. If this is not the logs and wtmps that you just removed, it could only be someone still writing to a deleted file.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
04-27-2012 10:32 AM
04-27-2012 10:32 AM
SolutionDeleting log files is not always a good idea. If the files are large but you don't need the information, then truncate the files with either:
cat /dev/null > /var/adm/something.log or > /var/adm/something.log
so as to preserve the permission and ownership. If you simply delete a file -- and the file is still open -- the file will disappear from the directory but the space will not be returned. The process(es) keeping the file open must terminate before the space will be returned. Truncating the file reduces the size immediately. Since you deleted active logfiles, they are still growing but you cannot see them -- the name has been removed from the directory. Only a reboot will fix this. And when you have large log files, never delete or truncate them until you look at the most recent messages. You may have a critical disk or memory failure that must be resolved.
In general, start by finding the large directories (not files!). Use this command:
du -kx /var | sort -rn | head -20
which will sort all the directories by size, largest at the top. Then look inside the directory to see what is using all the space. DO NOT delete anything in /var/adm/sw! Use the cleanup command.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-01-2012 07:35 PM
05-01-2012 07:35 PM
Re: /var is full
Re: /var is full
Thanks to all! The problem is solved by rebooting servers.
And you know what? I'm happy!)))
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-03-2012 09:48 PM
05-03-2012 09:48 PM
Re: /var is full
Re: /var is full
And to explain why a reboot fixed the problem, a process was probably creating a large file which you deleted. But as mentioned, the name disappears from the directory so you can't see it but until the process is terminated, the file is still there, continuing to grow. The reboot killed the process, and the space was reclaimed.
Bill Hassell, sysadmin
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2018 Hewlett Packard Enterprise Development LP