- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- discrepancy between bdf and du on migrating filesy...
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
11-28-2003 02:37 AM
11-28-2003 02:37 AM
Hi guys and girls,
We do have a problem. We are running omnistorage (OST) 3.12 on 11.0 which uses a filesystem which is 36 GB in size (vxfs). The command du shows that approx. 5 GB is in use, bdf shows about 33 GB. The remaining 28 GB seems te be lost.
We've asked HP about this, but the experts have no clue. The question pops up that the DNLC keeps the open files from being released and talks about fsdb etc. etc.
Does anybody have a clue ? About OST and missing GB's ? About fsdb ?
Any suggestions are welcome.
Thanks in advance,
INCS
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2003 02:46 AM
11-28-2003 02:46 AM
Re: discrepancy between bdf and du on migrating filesystem - DNLC
Just some things that i'm thinking. But I must say 28 GB is a large discrepancy (:-)
open files
You could use lsof to check.
files underneath the filesystem.
umount the filesystem and check the mountpoint (directory)
Maybe more later.
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2003 02:50 AM
11-28-2003 02:50 AM
Re: discrepancy between bdf and du on migrating filesystem - DNLC
the explaination is the following:
'du' checks for file existence, whereas 'bdf' also accounts for reserved
space. The 'bdf' command will not report available disk space until the
process that reserved the space closes. For example, if you remove the
syslog.log file, 'bdf' will not report the space until syslogd dies.
This is an example, anyway if you search in technical knowledge base with keybords 'du and bdf' you should find many many docs about this gap between two commands.
fsck or a reboot should delete this gap.
Anyway 28 GB is really big!!!
Have you deleted very big files in latest days?
Best regards,
Ettore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2003 03:03 AM
11-28-2003 03:03 AM
Re: discrepancy between bdf and du on migrating filesystem - DNLC
This has been discussed many times previously.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=138609
HTH,
Umapathy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2003 03:03 AM
11-28-2003 03:03 AM
Re: discrepancy between bdf and du on migrating filesystem - DNLC
The difference is due to sparse files. These are files that are only
partially populated with data.
"bdf" shows the directory structure
info which includes data areas that could be occupied if the areas
were filled in.
"du" shows the actual space.
If you copy the /home
directory to another location, the sparse files will be filled in
and then bdf and du will agree.
HTH
Bruno
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2003 03:06 AM
11-28-2003 03:06 AM
Re: discrepancy between bdf and du on migrating filesystem - DNLC
No big files (filesystem contains about 3.6 million small files, lsof did not work, unmounting and a reboot did not work either.
We installed the latest patches for du, bdf, zdf, zdu, vxfs, etc.
There are no other filesystems mounted on top of this filesystem, so no files are hidden.
Yes, I know the difference between bdf and du. I've read lots about this.
So, nothing that is mentioned above gives a clue. I start thinking about DNLC and debugging.
Anybody ?
Thanks,
INCS.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2003 04:31 AM
11-28-2003 04:31 AM
Re: discrepancy between bdf and du on migrating filesystem - DNLC
Just a wild guess still 28 GB is a bit high !
lsof |grep "
Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2003 08:25 PM
11-28-2003 08:25 PM
Re: discrepancy between bdf and du on migrating filesystem - DNLC
have you checked the filesystem for inconsistencies, and the mountpoint directory for otherwise hidden files as Robert suggested? Though I would tend to think, that in this case the loss would accounted to root. One radical advice, move the file to another place and redo the filesystem. Can you post the output of bdf and du -k as attachment?
greetings,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2003 09:15 PM
11-28-2003 09:15 PM
Re: discrepancy between bdf and du on migrating filesystem - DNLC
In documentation i read:
dnlc_hash_locks - number of locks for the Directory Name Lookup Cache
The minimum value allowed is 16. The maximum value allowed is 8192.
The value is further constrained in that it must be be a power of 2, and it must be equal to or less than one eighth the number of DNLC entries (ncsize >= 8 * dnlc_hash_locks).
ncsize - number of Directory Name Lookup Cache entries
The minimum value allowed is 128. The maximum value allowed is memory limited.
The value is further constrained in that it must be equal to or greater than eight times the value of the number of locks for the DNLC (ncsize >= 8 * dnlc_hash_lock).
HTH
Bruno
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2003 09:20 PM
11-28-2003 09:20 PM
Re: discrepancy between bdf and du on migrating filesystem - DNLC
Not to read my previous answer.
Bruno
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2003 11:33 PM
11-28-2003 11:33 PM
Re: discrepancy between bdf and du on migrating filesystem - DNLC
Now I'm not sure but I suspect maybe you have your vxfs blocksize set at 8KB. Maybe a good idea to try changing it to 1KB and see whether your useage drops to around 3.5GB
Regards,
Tony.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2003 07:42 PM
11-30-2003 07:42 PM
Re: discrepancy between bdf and du on migrating filesystem - DNLC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2003 11:53 PM
11-30-2003 11:53 PM
Re: discrepancy between bdf and du on migrating filesystem - DNLC
so far you havent been very precise in your statements and giving everybody for their efforts to help you is hard. :-(
Also you havent commented on the block size issue. Can anyone comment on what MFS is? I couldnt find anything on it.
dont give up on us,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2003 12:31 AM
12-01-2003 12:31 AM
Re: discrepancy between bdf and du on migrating filesystem - DNLC
Hi,
MFS stands for migrating filesystem. It's an extended vxfs filesystem so files can be put/retrieved to/from optical disks. It's just an ordinary filesystem with default blocksize. It can hold large files though.
So it is a filesystem that needs to have extra attibutes (like: on which optical platter is my file so i can migrater it back onto magnetic disk). It looks like file are on magnetic disk, but if I check this they are completely on optical disk.
That's why I and HP started to lokk at other things like DNLC and fsdb.
Thanks,
INCS.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2003 12:41 AM
12-01-2003 12:41 AM
Re: discrepancy between bdf and du on migrating filesystem - DNLC
It has been replaced from HFS/HFS+
INCS is true?
Bruno
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2003 02:59 AM
12-01-2003 02:59 AM
Re: discrepancy between bdf and du on migrating filesystem - DNLC
MFS is used in conjunction with an optical jukebox and the HP OmniStorage product. The data residing in a MFS can be transparantly migrated between harddisk and MO(=Magneto-Optical).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2003 03:05 AM
12-01-2003 03:05 AM
Re: discrepancy between bdf and du on migrating filesystem - DNLC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2003 03:21 AM
12-04-2003 03:21 AM
Re: discrepancy between bdf and du on migrating filesystem - DNLC
And indeed the issue is the magnetic cache utilisation.
zdu -kls gives:
total of 56613275 existing of 128512 on magnetic cache and 56484763 on WORM
du -ks gives (on magnetic cache):
128512
However bdf gives:
35557376 33224728 2314432 93%
So according to (z)du the utilisation of the 36GB disk is 0,36% and to bdf the utilisation is 93,44%. And the big question is what happened to the other 93,08%??????
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2003 03:35 AM
12-04-2003 03:35 AM
Re: discrepancy between bdf and du on migrating filesystem - DNLC
- Have you tried a reboot?
Of course they are not good solutions but as 'extrema ratio' you could try them.
Best regards,
Ettore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2003 03:46 AM
12-04-2003 03:46 AM
Re: discrepancy between bdf and du on migrating filesystem - DNLC
You should also be aware that bdf, du, and df can sometimes give seemingly inconsistant result even on vanilla vxfs filesystems because of the differences in the ways some of the values are calculated and whether or not files which have been unlinked have actually been closed by all processes which had them open.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2003 08:52 PM
12-07-2003 08:52 PM
Re: discrepancy between bdf and du on migrating filesystem - DNLC
you're suggestions have been done a dozen of times!!!! (HP support also suggested this :-< ). Yeah, right.
A. Clay Stephenson,
if we want to have only information about the magnetic cache the "vanilla" commands should be working fine.
Looking at the output of du and zdu you will see that this is true.
zdu gives info about used blocks on the optical platters in which we are not interested. Therefore, du can be used; we want info on the MFS filesystem which is on disk. It is foolish to say that zdu must be used, LOL.
The linking problems you suggest should be gone after a reboot and this is already performed several times.
HP is also thinking (for a couple of weeks already) about a good explanation for the described behaviour and the impact on the working of the application.
Let's see who is first with a solution....
(and not the solution of extending the volumegroup with extra harddisks ;-< )
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2003 10:24 PM
12-22-2003 10:24 PM
Solutionup to some point I do agree with Tony Horton.
Definitely something went wrong with setting up your filesystem. All the inodes needed for referencing the 3.6 million smal files are consuming more diskspace than necessary. Setting up a filesystem of 36 GB gives a standard blocking factor of 8 kB and 1 inode consumes 1 block! (Is your filesystem setup with a blocking factor of 8 kB?!?)
Since an inode on a MFS uses approximately 1.8 kB, it is advised to recreate the filesystem with a blocking factor of 2 kB. This is the optimal blocking factor with regard of performance for a MFS with lots of small files.
After this exercise your overhead will drop from 28 GB to 7 GB.
(p.s.: don't forget to reassign Tony's points)