- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- df -k and du -ks output is not matching
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
06-07-2007 12:27 AM
06-07-2007 12:27 AM
I received a error message from my solaris box as file system 90% full. But when i checked the original utilization of files it varies from the df output.
# df -kh /log
Filesystem size used avail capacity Mounted on
/dev/dsk/c1t0d0s6 3.8G 3.4G 412M 90% /log
# du -khs /log
308M /log
the filesystem is UFS. I think it requires to defrag.
Please suggest me
Thanks and Regards
--MGP--
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2007 12:45 AM
06-07-2007 12:45 AM
Solutiondefragging the filesystem is a good idea. It has nothing to do with this issue.
Unix and Linux do not release space back to the system for re-use until two things happen. The file is deleted and any file handles open on the file are closed.
These discrepencies come from two major areas.
1) Inconsistencies in the writing of the reporting utility.
2) Files deleted without file handles being closed.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2007 12:54 AM
06-07-2007 12:54 AM
Re: df -k and du -ks output is not matching
I dont have much idea about UFS. I am basically from HP platform.
Is it possible to do online defragmentation in UFS?
Can u please tell me the procedure also to do the same?
Thanks and Regards
--MGP--
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2007 12:54 AM
06-07-2007 12:54 AM
Re: df -k and du -ks output is not matching
http://www.solarisforums.com/news.php
http://supportforum.sun.com/
http://forum.java.sun.com/index.jspa?tab=solaris
http://www.opensolaris.org/jive/index.jspa?categoryID=1
2) Regardless of UNIX flavor, this is one of the most common questions that comes up on the ITRC forums. A file has been unlinked (deleted), but one or more processes still have it open. Kill the offending process(es), if safe to do so, and 'df' will report the correct utilization. 'lsof' will help you investigate.
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2007 12:55 AM
06-07-2007 12:55 AM
Re: df -k and du -ks output is not matching
this is an old 'problem' reported on a number of platforms, for example:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=752483
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=565469
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1131830
Please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33
on how to reward any useful answers given to your questions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2007 01:07 AM
06-07-2007 01:07 AM
Re: df -k and du -ks output is not matching
--MGP--