cancel
Showing results for 
Search instead for 
Did you mean: 

Reg : % utilisation of the directories

Former Member
0 Kudos

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 .

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi

Please check the with du -s command

Regards,

Sukarna

Former Member
0 Kudos

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

Former Member
0 Kudos

My question is that i want to get % utilisation of the directories and not of the file systems.

Former Member
0 Kudos

There is no such thing as '% utilisation of the directories'.

A directory always may use all the available space of its file system.

When the space is filled up by one directory, then, of course, no space will be left for other directories in the same file system as well.

Former Member
0 Kudos

For example in hp-ux we can know by this command .

  1. bdf | grep mirr

/dev/vg_F7Y_00/lv_mirrlogB

524288 42192 451972 9% /oracle/F7Y/mirrlogB

/dev/vg_F7Y_00/lv_mirrlogA

524288 42192 451972 9% /oracle/F7Y/mirrlogA

here we can see the % .But in sun solaris how to know it ?

Former Member
0 Kudos

Hi,

I used du -k on HP-UX. I dont know whether it will work for you. Please try taking man on df too to find out appropriate switch.

Manoj

markus_doehr2
Active Contributor
0 Kudos

This is not a directory but a MOUNTPOINT. If you have the same structure on Solaris you can do the same with the command "df -h".

Markus

former_member220071
Active Participant
0 Kudos

Hi Ambarish ,

>here we can see the % .But in sun solaris how to know it ?

Try df -k

Hope it will help you

Abhijeet

markus_doehr2
Active Contributor
0 Kudos

Try

df -h

Markus

Former Member
0 Kudos

But the problem is that since we have not created file systems so how do we find the utlisation?

former_member220071
Active Participant
0 Kudos

Hi Ambrish ,

As per Markus if you give command df or df -h it will show the following result.

#df -h

Filesystem Size Used Avail Use% Mounted on

Abhijeet

Former Member
0 Kudos

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

markus_doehr2
Active Contributor
0 Kudos

> 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