- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Difference between "LS" and "du" sizes.
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
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
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
тАО10-24-2005 02:05 AM
тАО10-24-2005 02:05 AM
Difference between "LS" and "du" sizes.
========ll listing ===========
# ll temp_adhoc01.dbf
-rw-r----- 1 oracle dba 31457288192 Oct 24 09:51 temp_adhoc01.dbf
==============================
But according to a bdf or a du, the space had not been allocated in the filesystem.
========== du output ==============
# du -sk temp_adhoc01.dbf
72 temp_adhoc01.dbf
===================================
Once he ran a query against the table the DU size started to grow but it still did not get up to the 30GB.
Why would the LL show it as the fully allocated size, but the DU size (and through a DF or bdf command for that matter) it is now showing up as used in the filesystem.
I know I had seen something like this in the ITRC before but something must be up with searching because none of my searches came back with anything. So I appologize for posting an already answered question if that is the case.
Thanks,
Ty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-24-2005 02:08 AM
тАО10-24-2005 02:08 AM
Re: Difference between "LS" and "du" sizes.
Sounds like a sparse file to me. See the man page for pre-alloc and the following thread for additional details:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=690868
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-24-2005 02:13 AM
тАО10-24-2005 02:13 AM
Re: Difference between "LS" and "du" sizes.
Whatever problem I was having with my ITRC searches stopped and I was able to get some data back and find info on sparse files.
Here is a more interesting question. If the sparse file on 30GB is made, will the Filesystem know that there is 30GB out there that it can not give to anyone even though BDF's and du's don't show it as used??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-24-2005 02:21 AM
тАО10-24-2005 02:21 AM
Re: Difference between "LS" and "du" sizes.
Good question and one that I don't have an answer for. I would do a little experimentation and try either prealloc'ing another file or copying a big file to see if it's allowed.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-24-2005 02:21 AM
тАО10-24-2005 02:21 AM
Re: Difference between "LS" and "du" sizes.
This thread contains lot of information.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-24-2005 02:42 AM
тАО10-24-2005 02:42 AM
Re: Difference between "LS" and "du" sizes.
The 30GB is the highest address, not space allocated, so it is possible if you write into the middle of the file, their may not be space available if other files file up the file system.
My 2 cents
Rod Hills
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-24-2005 02:48 AM
тАО10-24-2005 02:48 AM
Re: Difference between "LS" and "du" sizes.
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.
Hanwant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-24-2005 02:54 AM
тАО10-24-2005 02:54 AM
Re: Difference between "LS" and "du" sizes.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-24-2005 03:15 AM
тАО10-24-2005 03:15 AM
Re: Difference between "LS" and "du" sizes.
No, 'prealloc' won't create a sparse file. You need to do it with a small piece of C code or easier (isn't it always!) with perl:
# perl -e 'open(FH,">","sparsef");seek(FH,10**9,0);print FH "\n";close(FH) or die "$!\n"'
Adjust the value 10**9 to your taste. The above creates a sparse file of 10**9+1 bytes.
Regards!
...JRF...