Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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 .

Former Member
Former Member replied


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.



0 View this answer in context

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question