- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: du -x diff with bdf on FS /
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
04-05-2006 07:01 AM
04-05-2006 07:01 AM
du -x diff with bdf on FS /
I have a strange problem with the / FS on a HPUX 11.23.
When I execute the bdf command, the utilization its a 90%. The size of this FS is 512 MBytes.
When I execute the commando
du -x /
the space utilization its 225 MBytes.
The system lost 280 MBytes aprox. I think that the problem it's the corrupted blocks or damaged blocks of the physical disk.
My Question is: Anybody know a procedure for check the FS / and the Physical Disk ??
Thanks in advanced...
Francisco...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2006 07:07 AM
04-05-2006 07:07 AM
Re: du -x diff with bdf on FS /
Man 2 unlink and then you will never need to ask this question again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2006 07:08 AM
04-05-2006 07:08 AM
Re: du -x diff with bdf on FS /
# lsof +aL1 /
otherwise get lsof from http://hpux.cs.utah.edu/hppd/cgi-bin/search?package=on&description=on&term=lsof
cheers!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2006 07:24 AM
04-05-2006 07:24 AM
Re: du -x diff with bdf on FS /
I review all files of this filesystem and nothing strange appears.
I assume that the association between the open files with a single process it's lost when I reboot the system.
Thanks in advanced...
Francisco.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2006 09:15 AM
04-05-2006 09:15 AM
Re: du -x diff with bdf on FS /
Regds,
Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2006 03:50 PM
04-05-2006 03:50 PM
Re: du -x diff with bdf on FS /
find / -type f -xdev -exec du -sk {} \; | awk ' x+=$1,$0 { } END {print x} '
Using xargs would be faster, but if you have a filename with space(s) it will give errors:
find / -type f -xdev -print |xargs du -sk | awk ' x+=$1,$0 { } END {print x} '
--------
During boot the filesystem should be checked with fsck before it is mounted.
--------
Could it be that you have mounted a filesystem on top of a directory which contain data ?
This could explain why the du command don't calculate these files, and report a lower size than bdf.
/Tor-Arne
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2006 06:45 PM
04-05-2006 06:45 PM
Re: du -x diff with bdf on FS /
If you renbooted the server, the problem with files erased while process is running will not show erroneous information in bdf.
Another possible cause for your trouble is that a mount point is hiding some files...
For example, a file is created in some location - let's say /dir1/dir2/file - and then a filesystem is mounted in a directory of this path - let's say on /dir1.
At this moment, files held in original filesystem under /dir1 are no more visible:
- their used space appears in bdf
- their used space doesn't appear in du
Now how to identify if this is the cause?
- if you cannot move to single user mode, consider using
ff -F vxfs /dev/vg00/lvol3
(assuming that lvol3 is for /)
=> ff command will report all files from physical filesystem, and hidden files if any will appear there.
- if booting in singler user mode, you'll find files by listing contents of each mount point.
hope this helps.
antonio.