tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Alex Harkema <HarkemaA () vertis ! nl>
To: tru64-unix-managers
Subject: differences in filesizes/diskusage
Date: Fri, 29 Dec 2000 13:47:34 +0000	[thread overview]
Message-ID: <97809781009066.tru64-unix-managers.marc@archive.invalid> (raw)

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

                 reply	other threads:[~2000-12-29 13:47 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox