- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- directory size ..problem
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
02-20-2003 02:35 AM
02-20-2003 02:35 AM
directory size ..problem
I am wondering about directory size on HP-UX 11.X
when i was excuting "ll" command in my root file system, all Directory size are dedicated "1024" .
also , excuted "du -sk /dir1 and /dir2" on my root file system but, size are different exactly..
what happened??
please tell me the reason so quickly, my client are complaining to me..oops!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2003 02:50 AM
02-20-2003 02:50 AM
Re: directory size ..problem
have a look at Bill Hassel's comment on this post:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xb20b5bd3782dd711abdc0090277a778c,00.html
hope this helps!
Rrgards
Yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2003 02:52 AM
02-20-2003 02:52 AM
Re: directory size ..problem
When you are in / and do an ls -l the directory size you see of 1024 (bytes) is just for the directory entries themselves (ie. the table of contents for the directory), only du -sk
ie. Do a bdf command and you will see /var is something like several hundred MB in size, and if you do a du -sk /var it will also report a similar size (hundreds of MB), but in / an ls -l only shows the directory entry for var being 1024 bytes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2003 02:53 AM
02-20-2003 02:53 AM
Re: directory size ..problem
On BSD systems, du reports sizes that are half the correct values for files that are NFS-mounted from HP-UX systems. On HP-UX systems, it reports sizes that are twice the correct values for files that are NFS-mounted from BSD systems. This is due to a flaw in HP-UX; it also affects the HP-UX du program.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2003 04:13 AM
02-20-2003 04:13 AM
Re: directory size ..problem
in addition to what has already been said: directory files themselves contain information about the names of the files residing in the directory and their inode reference in the filesystem. In order for the directory files to keep this information neat and orderly, the directory has a certain "structure"; at least it has more "structure" than other files in the unix file system. Because of this "structure" the size of a directory is fairly fixed, e.g. 96, 512, 1024 bytes or more.
If you put a lot of files in a directory, you can see how the directory file itself suddenly grows - assuming that you put enough files into the directory. If you afterwards delete the same files from the directory, you will se that the size of the directory itself does not shrink, but that is another story.
regards,
John K.