* differences in filesizes/diskusage
@ 2000-12-29 13:47 Alex Harkema
0 siblings, 0 replies; only message in thread
From: Alex Harkema @ 2000-12-29 13:47 UTC (permalink / raw)
To: tru64-unix-managers
Hi all,
I noticed some weird size-differences in the output of various commands.
I know it's not very polite to ask more than one question at once, but those
two are very related, I don't think it can do any harm;-)
== Q.1 ==
After trying to resize a datafile, one filesystem complained about being
100% in-use
The original filesize was 512K. We tried to resize it to 768K,
[root]# du -k den0d03.dbf
524304 den0d03.dbf
[root]# ls -l den0*
786434048 Dec 29 13:47 den0d03.dbf
= checking for contents of the file (after the 512th block):
[root]# dd if=den0d03.dbf bs=1024 skip=512000 count=10 | od -x | more
returns with all zeroes, meaning there's no data after block 512000
Why does df -k show the filedomain being 100% used (showfdmn does, too)
while diskusage shows that the file is actually (almost) 512K of size?
Does df work with the actual diskusage?
== Q.2 ==
= Checking another file gives:
[root]# ls -l /xxx/oradata/xxx/system01.dbf
157288448 Dec 29 13:47 /xxx/oradata/xxx/system01.dbf
= diskusage is:
[root]# du -k /xxx/oradata/xxx/system01.dbf
153608 /xxx/oradata/xxx/system01.dbf
= 157286400 is the size Oracle says the file has.
[root]3# echo $((157288448 - 157286400))
= The difference between both values is 2048 (that's 1 block, right?)
Any ideas what causes this differences? (some meta-info perhaps?)
Thanx for your help/suggestions in advance.
Alex
harkemaa@vertis.nl
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2000-12-29 13:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-12-29 13:47 differences in filesizes/diskusage Alex Harkema
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox