- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: The commands df and du indicate different amou...
Operating System - HP-UX
1752793
Members
6133
Online
108789
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
тАО10-26-2004 03:57 AM
тАО10-26-2004 03:57 AM
The commands du and df/bdf report inconsistentes information between itself. Basically, the commands indicate different amounts of available space.
See above:
### df -k /var ####
/var (/dev/vg00/lvol7 ) :
2420306 total allocated Kb
47021 free allocated Kb
2373285 used allocated Kb
98 % allocation used
### du -ks /var ###
1087060 /var
This is very strange and i need some help please, any of you know this problem ? know a patch or a solutions for this problem ?
Thank's
Bruno Lobato - Manaus - Brasil
See above:
### df -k /var ####
/var (/dev/vg00/lvol7 ) :
2420306 total allocated Kb
47021 free allocated Kb
2373285 used allocated Kb
98 % allocation used
### du -ks /var ###
1087060 /var
This is very strange and i need some help please, any of you know this problem ? know a patch or a solutions for this problem ?
Thank's
Bruno Lobato - Manaus - Brasil
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-26-2004 04:00 AM
тАО10-26-2004 04:00 AM
Solution
The difference between bdf/df and du usually is from processes that have allocated diskspace but not yet used it.
Essentially there is a process that may is alive and thinks it has disk space, even if its parent has been killed. Kill the process, the space is released.
Tools:
fuser -cu /filesystem_name
lists processes by owner on a filesystem. Other options let you see the data in other ways.
fuser -cuk /filesystem_name
Big time dangerous, but it will kill all processes on a filesystem, releasing any space.
The typical scenario here is process 10233 is open with a hanle on file /tmp/mydata.dat
You erase the file with rm but the process is still open.
bdf reports the space used, du reports it free. Both are kinda right.
SEP
Essentially there is a process that may is alive and thinks it has disk space, even if its parent has been killed. Kill the process, the space is released.
Tools:
fuser -cu /filesystem_name
lists processes by owner on a filesystem. Other options let you see the data in other ways.
fuser -cuk /filesystem_name
Big time dangerous, but it will kill all processes on a filesystem, releasing any space.
The typical scenario here is process 10233 is open with a hanle on file /tmp/mydata.dat
You erase the file with rm but the process is still open.
bdf reports the space used, du reports it free. Both are kinda right.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
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
тАО10-26-2004 04:06 AM
тАО10-26-2004 04:06 AM
Re: The commands df and du indicate different amounts of available space
Hi Bruno,
this question is a classic !
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=204443
and
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=106307
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=485727
and many more !
Regards
Jean-Luc
this question is a classic !
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=204443
and
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=106307
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=485727
and many more !
Regards
Jean-Luc
fiat lux
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP