Skip to Content
avatar image
Former Member

Reg : % utilisation of the directories

HI all,

We have not created filesystems like /usr and /sapmnt and /oracle but we have installed everything under /apps and now i wanted to utilisation % but i am unable to find it out .

when i type this command du -hs ./* i am getting a output like this

du -hs ./*

3.2G ./sap

I want to get the % utilisation also .Can anybody help me out please .

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Apr 06, 2009 at 11:09 AM

    Hi,

    I think your question meant: what percentage of the filesystem space does a specific directory in that filesystem use? That question makes sense, especially because as stated in one of the other replies, a directory can eat up all the space in its filesystem.

    Here's an example (taken from a Solaris server where SAP/Oracle are installed under the / root FS - not a good idea by the way):

    First find out on what FS your directory resides (probably not needed in your case because you say it is /apps):

    df -h /oracle/NNN
    Filesystem             size   used  avail capacity  Mounted on
    /                      287G   189G    99G    66%    /
    

    Now find the space occupied by the directory:

    du -sh /oracle/NNN
     172G   /oracle/NNN

    So the FS is 287 GB in size, of which 189 GB is currently occupied; of those 189 GB the Oracle directories (sw + db + ...) take up 172 GB. This is just under 60% of the maximum space of the FS and just over 90% of the currently used space.

    Regards,

    Mark

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 25, 2009 at 12:22 PM

    Try

    df -h

    Markus

    Add comment
    10|10000 characters needed characters exceeded

    • > But the problem is that we don have file systems created .How to check then the % utilisation.

      I seriously don't get your question.

      Your question is: "% utilisation of the directories."

      There are not directories if the filesystem is not yet there...

      Markus

  • avatar image
    Former Member
    Mar 30, 2009 at 04:15 PM

    Hi,

    Go to the parent directory of the directory for which you want to find the %utilization and then use the command as Markus suggested.

    Hope this is what you want.

    Manoj

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 05, 2009 at 05:27 PM

    Hi

    Please check the with du -s command

    Regards,

    Sukarna

    Add comment
    10|10000 characters needed characters exceeded