on 03-25-2009 9:06 AM
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 .
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Please check the with du -s command
Regards,
Sukarna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try
df -h
Markus
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.