Re: "df" reports wrong size of filesystem




WolverineJR wrote:
Hi!

Thank you for your detailed explanations!
So that I understand it correctly, the seizure of the filesystem is
correct. But because Oracle still keeps the files open or has still
some locks on the files/links, "df" show the wrong size. So the next
time, the DB will be restarted, the filesystem-size in "df" is correct?

If I've finally got right. The file was never deleted, the directory
entry (pointer) was deleted.
The inode exists as long as an application has it open whether it has a
directory entry or not.

df always the correct usage, du gives the file sizes associated with
the directory tree. So you can
have an inode in use with no name (because an rm was executed while it
was open).

The application (I assume in this case oracle) needs to be stopped. the
inode associated will
the deleted filename will be closed and the data removed and then the
results of df and du will
coincide.

Dean

.



Relevant Pages

  • Re: Bad ext3/nfs DoS bug
    ... One would expect the inode validity test to be ... Look through the filesystem for other uses of EXT3_FIRST_INO. ... based (inode number 0 in a directory entry means that the file is ... should always be marked as in use in the inode allocation bitmap. ...
    (Linux-Kernel)
  • [PATCH 1/2] VFS: update overview document
    ... -The Virtual File System (otherwise known as the Virtual Filesystem ... The pathname argument is used by the VFS to search through the ... -directory entry cache (dentry cache or "dcache"). ... -An individual dentry usually has a pointer to an inode. ...
    (Linux-Kernel)
  • Re: [PATCH] prune_icache_sb
    ... In Linux a filesystem is a dumb layer which sits between the VFS and the ... inode (that this cluster lock is created for). ...
    (Linux-Kernel)
  • [RFC][0/21]extend file size and filesystem size
    ... I have tried to extend the filesystem size and file size in ext2/3 ... A summary of my reform to extend the specs in ext2/3 is as below. ... type of variables in relation to block and inode, ... Change the type of 4byte variables manipulating a block or ...
    (Linux-Kernel)
  • [UPDATE][0/24]extend file size and filesystem size
    ... i_blocks of VFS inode is sector unit. ... There is not really a reason to make a filesystem ... filesystem-block unit. ... Change the type of 4byte variables manipulating a block or ...
    (Linux-Kernel)