du and df out difference? - Solaris

This is a discussion on du and df out difference? - Solaris ; Hi buddies, cd /lia27/appl/oracle $ls -altr total 4 drwxr-xr-x 3 oracle dba 512 Oct 20 2005 .. drwxr-xr-x 2 oracle dba 1024 Jun 17 2007 rpro drwxr-xr-x 3 oracle dba 96 Oct 14 17:28 . # df -k /lia27/appl/oracle Filesystem ...

+ Reply to Thread
Results 1 to 4 of 4

Thread: du and df out difference?

  1. du and df out difference?

    Hi buddies,


    cd /lia27/appl/oracle
    $ls -altr
    total 4
    drwxr-xr-x 3 oracle dba 512 Oct 20 2005 ..
    drwxr-xr-x 2 oracle dba 1024 Jun 17 2007 rpro
    drwxr-xr-x 3 oracle dba 96 Oct 14 17:28 .




    # df -k /lia27/appl/oracle
    Filesystem kbytes used avail capacity Mounted on
    /dev/vx/dsk/procede02_lia/lia27_appl_oracle
    35349504 35349461 43 100% /lia27/appl/oracle

    # du -k /lia27/appl/oracle
    35324329 /lia27/appl/oracle/rpro
    35324329 /lia27/appl/oracle

    35349461 DF
    - 35324329 DU
    ----------------
    = 25132 Difference



    why du and df has differenct output?

    usually people explain:

    This is more than likely what you are seeing here and is nothing to be concerned about.
    As you know free space on Oracle file systems can be measured by what space is
    left within the existing table space since Oracle grabs the space and maintains free space within it.

    we did a Oracle database shut down.

    but same result.

    Thanks a lot in advance
    jerry

  2. Re: du and df out difference?

    du shows file sizes

    df shows filesystem sizes.

    if you did a du -sk* that would list out all the files and their sizes in that directory.

  3. Re: du and df out difference?

    The difference is : du check directory/file size (if you run 'du -sk*' it will list out all the files in the dir and their sizes)
    df checks filesystem size... which would explain why df is larger.

  4. Re: du and df out difference?

    yeah. thanks so much! Pls share your knowlegde with all of us. Do you agree Money is everything,At least is to me. How so you make it? Let me know your ways of making money from forums!
    Have you goos luck

+ Reply to Thread