cancel
Showing results for 
Search instead for 
Did you mean: 

/sapmnt/SID is inconsistent with used space

Former Member
0 Kudos

Hi SAP gurus,

I have a problem with our production system with the directory /sapmnt/P01

when I issue the command df -h it shows that the directory has already accumulated 21G of space.

/sapmnt/P01 24G 21G 2.9G 88% /sapmnt/P01

but when I issue the command du -sh for this directory it only shows 9.3G of data is only being used

bash-3.00$ du -sh

9.3G .

inside the directory

bash-3.00$ du -sh *

68K admin

3.7M core

698M exe

8.7G global

152K profile

There is a difference of almost 11G of space used. There is no problem with the global directory since it is only 8.7G of data. Can anyone shed some light on where the 11G of data is?

Thank you and hoping you can help me.

Accepted Solutions (1)

Accepted Solutions (1)

stefan_koehler
Active Contributor
0 Kudos

Hello Marjorie,

have you restarted your sap system since you have seen this issue?

If not ... this can be the reason:

http://administratosphere.wordpress.com/2007/10/24/why-df-and-du-dont-report-the-same-disk-space-use...

Regards

Stefan

Former Member
0 Kudos

Hi Stefan,

That is only the solution we are doing right now, to restart the system when we see the big discrepancy in the file size used. T

Although would we know what file is holding that space? or where it is being used?

Link was very helpful. Thanks.

stefan_koehler
Active Contributor
0 Kudos

Hello Marjorie,

> That is only the solution we are doing right now, to restart the system when we see the big discrepancy in the file size used

Yes, if this is an open file handle issue or if you can find out (see below) the particular process which has opened the file handle .. you can just restart this one.

> Although would we know what file is holding that space? or where it is being used?

Of course you can find it (by scanning the open file handles), but the implementation of "lsof" is very OS dependent.

You can check this link: http://www.ibm.com/developerworks/aix/library/au-lsof.html

Regards

Stefan

Answers (0)