- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- space incongruency
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-26-2004 09:42 PM
04-26-2004 09:42 PM
bdf output:
/dev/vg_ods_3/lvother1 3145728 1245000 1885888 40% /u02/oradata/ODS/dbf1
virgo# ls -la /u02/oradata/ODS/dbf1
total 2485120
drwxr-xr-x 3 oracle dba 8192 Apr 27 11:32 .
drwxrwxrwx 5 oracle dba 96 Mar 3 15:20 ..
-rw-r----- 1 oracle oinstall 3858432 Apr 27 11:38 control01.ctl
-rw-rw---- 1 oracle oinstall 209723392 Apr 27 11:38 incarichi_claims01.dbf
drwxr-xr-x 2 root root 96 Jan 23 2003 lost+found
-rw-r--r-- 1 root sys 1000000000 Apr 27 11:32 mauro
-rw-rw---- 1 oracle oinstall 2098208768 Apr 27 11:29 temp2_01.dbf
If I have 3.1GB on /dev/vg_ods_3/lvother1 and I use 3Gb with mauro and temp2_01.dbf file, why bdf reports free 1.8GB?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2004 09:48 PM
04-26-2004 09:48 PM
Re: space incongruency
????? duh
Could you check the lvol with a fsck ?
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2004 09:51 PM
04-26-2004 09:51 PM
Re: space incongruency
Those files may be open files, oracle process estimated that size and reserved it but physically the data is not written on the disk.
You can check by.
#du -k /u02/oradata/ODS/dbf1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2004 10:02 PM
04-26-2004 10:02 PM
Re: space incongruency
0 /u02/oradata/ODS/dbf1/lost+found
1242568 /u02/oradata/ODS/dbf1
This is the same thing bdf says:
1242568 blocks * 1024 bytes/block = 1272389632 bytes about 1.2 GB like bdf reports as used.
How is it possible oracle create a file that OS see large a bit but it don't write data on disk?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2004 01:49 AM
04-27-2004 01:49 AM
Re: space incongruency
Consider this:
char x = 'X';
fdes = open("myfile",O_CREAT | O_RDWR,0666);
write(fdes,&x,1);
lseek(fdes,1000000,0);
write(fdes,&x,1);
close(fdes);
This bit of code, creates a new file "myfile" and writes 1 character at offset 0 and then immediately seeks to offset 1000000 and writes 1 char. The result is a file which actually only uses 2 bytes but is 1000000 bytes in length. This is a classic sparse file and it common for applications which allocate large files. To ls -l a size of 1000000 would be reported but to bdf the file would only use 2 blocks. When a file like this is read, the "missing" data is supplied as ASCII NUL characters.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2004 02:00 AM
04-27-2004 02:00 AM
Re: space incongruency
And now... how can I check "true" used space on filesystem to plan when I have to extend it?
If I can't use bdf and du, is there any other handy way to check space?
Thank You
Mauro
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2004 03:26 AM
04-27-2004 03:26 AM
SolutionIf you know Perl, this would be quite easy using File::Find in conjunction with lstat().
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2004 03:28 AM
04-27-2004 03:28 AM
Re: space incongruency
du filename
or
ll -s filename .
for eg , you can create a sparse file by doing this :
#dd if=/etc/hosts of =/tmp/sparse bs=1024 seek=1000 .
This will create a 1GB file called sparse in the /tmp directory . ( Beware that the holding directory should have that much space empty .
Now when you do ll /tmp/sparse it will report a 1GB file .
However if you do
du /tmp/sparse or
ll -s /tmp/sparse ,
it will report the actual number of blocks used .