- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /var usage
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
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
тАО01-04-2006 01:28 PM
тАО01-04-2006 01:28 PM
I'm trying to find out what is filling up /var on my server.
du and df commands gives me contrasting information... and I cannot find what it is that is filling up the filesystem...
# du -sk /var
148 /var
# df -k /var
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c0d0s5 498271 445570 2874 100% /var
Thanks in advance for your help,
Rm
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2006 01:33 PM
тАО01-04-2006 01:33 PM
Re: /var usage
I use a iterative process to track which file/directory are using up the space.
# du -sk /var/* | sort -rn | more
This will list the directory/file with the highest usage.
jov
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2006 01:35 PM
тАО01-04-2006 01:35 PM
Re: /var usage
du -kx /var | sort -n
Then check individual dirs to know more.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2006 01:37 PM
тАО01-04-2006 01:37 PM
Re: /var usage
This is what I get from the command that you've given me. The sum is far less than what the df command is giving me... where is the rest of the space being used??
# du -sk /var/* | sort -rn | more
44 /var/spool
36 /var/dmi
22 /var/locale
14 /var/adm
10 /var/uucp
3 /var/preserve
2 /var/smtp-poplock
2 /var/lp
2 /var/log
2 /var/crash
1 /var/tmp
1 /var/ntp
1 /var/nis
1 /var/mail
1 /var/cron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2006 01:42 PM
тАО01-04-2006 01:42 PM
Re: /var usage
did you delete any file from var?? Looks like there was a file that was deleted, when process was still accessing it. In that case space will not be released till that process is stopped.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2006 01:45 PM
тАО01-04-2006 01:45 PM
Re: /var usage
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2006 01:53 PM
тАО01-04-2006 01:53 PM
Re: /var usage
You missed something. I asked you you to
do du -kx /var|sort -nr
and not
du -sk
do du -kx /var | sort -rn and check dir that are occupying most of the space.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2006 01:54 PM
тАО01-04-2006 01:54 PM
Solution- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2006 02:15 PM
тАО01-04-2006 02:15 PM
Re: /var usage
Found the culprit and restarted it. Which did the trick! Thank you very much!
And thanks to everyone else for giving me advise.
Regards,
Rm