- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How is it possible for a file larger than free spa...
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-10-2004 09:08 AM
02-10-2004 09:08 AM
I have a question of curiosity.
I am running an Oracle backup with RMAN to disk, which allocates a file that is initially equal to the file space of the datafiles being backed-up.
When I do an ll of the directory where the backup is being copied to, there is a file that is larger than the remaining free-space, as reported by bdf.
How is that possible?
# ll
total 14666692
-rw-rw---- 1 oracle dba 5388485632 Feb 10 11:02 b_6ofdo9ce_216_1
-rw-rw---- 1 oracle dba 328376320 Feb 10 11:08 b_6pfdodri_217_1
-rw-rw---- 1 oracle dba 330092544 Feb 10 11:13 b_6qfdoe5b_218_1
-rw-rw---- 1 oracle dba 330000384 Feb 10 11:17 b_6rfdoees_219_1
-rw-rw---- 1 oracle dba 322347008 Feb 10 11:22 b_6sfdoen6_220_1
-rw-rw---- 1 oracle dba 7485350912 Feb 10 15:52 b_6tfdou2i_221_1 <== file in question!
# bdf (shortened)
Filesystem kbytes used avail %used Mounted on
/dev/vg02/Group6 9252864 7433402 1762610 81% /u07
Thanks in advance,
Randy
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2004 09:14 AM
02-10-2004 09:14 AM
Solution1) Some file systems reserve a portion for expansion that is not reported.
2) Some files have holes. You can define space for a file, but if it is not allocated it will not show up in bdf. An oracle DB may cause this situation.
HTH
-- Rod Hills
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2004 09:15 AM
02-10-2004 09:15 AM
Re: How is it possible for a file larger than free space to exist?
7485350912/1024 to get kb
kb is what is being displayed on bdf.
Taht file is attempting to use all remaining free space.
I would expect the rman backup to hang or crash
bytes/1024=kilobytes
SEP
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
02-10-2004 09:21 AM
02-10-2004 09:21 AM
Re: How is it possible for a file larger than free space to exist?
This is the question that I think you meant to ask: Is is possible for the total of the file sizes reported by ll for an entire filesystem to exceed the size of the filesystem itself? If so, how?
Answer: Yes, absolutely. How: Sparse files.
Here is how you might create one:
fdes = open("/user",tmp1,O_CREAT | O_RDWR,0660);
char dummy = "X";
(void) write(fdes,(void *) &dummy,sizeof(dummy));
lseek(fdes,10000000L,0);
(void) write(fdes,(void *) &dummy,sizeof(dummy));
(void) close(fdes);
You created a file, write 1 byte, seeked to offset 10,000,000 and write 1 more byte.
The file's size as reported by ls -l will be 10,000,000 bytes although from the perspective of bdf only 2 blocks were used.
Sparse files are handy for preallocating large files but you do run the risk of "over subscribing" a filesystems ---- kinda like them there airlines.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2004 09:23 AM
02-10-2004 09:23 AM
Re: How is it possible for a file larger than free space to exist?
# echo | dd bs=1024k seek=10000 of=laaaarge
Then compare the results of "du -k laaaarge" and "ll laaaarge".
Best regards...
Dietmar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2004 09:26 AM
02-10-2004 09:26 AM
Re: How is it possible for a file larger than free space to exist?
Both the above replies are true. There is a little extra space not visible to us in a filesystem under minfree area reserved in the filesystem. So, you may be able to keep a file that's more than what appears in the 'bdf''s available column.
Also bdf is reported in KBs. So, the file you have is really of 7485350912/1024 = 7309913 which is less than the available space you have in the 'bdf' output.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2004 10:22 AM
02-10-2004 10:22 AM
Re: How is it possible for a file larger than free space to exist?
could it be, that you are confusing used and free space?
The first plus the last file is clearly more than the file system will yield. :-( As SEP says, it will crash.
I know Oracle for this. Once I accidently tried to resize a file to 2tb instead of 2gb on a production machine, of course the file system was full. It showed 2tb although they weren't there.
Michael