Problem space used on AIX 5.3

Hello everyone,

Sorry for my English but i'm French.

I have a problem on an AIX 5.3 server on the occupation of a file system.
When i run a df -m, this is what i get :

Filesystem    MB blocks      Free %Used    Iused %Iused Mounted on
/dev/fslv09     3936.00    340.94   92%     7255     8% /EFED/appli

And when i go in /EFED/appli (mounted point), i run du -sm . and i get this :

Node1-c08 /EFED/appli>du -sm .
1494,23 .

So I have 2200 MB of difference...

I also tried, in /EFED/appli, du -sm * | sort -n and if I add up all the values, i don't have my 3936.00MB...

I also noticed that some files have a different size if i run a ls -l and if i run a du -sm...
For example :

Node1-c08 /EFED/appli/log>ls -l stdout
-rw-r--r--   1 appliexp appliexp   97577580 17 avr 12:22 stdout
Node1-c08 /EFED/appli/log>du -sm stdout
0,62    stdout

We can see it with ls -ls :

Node1-c08 /EFED/appli/log>ls -ls stdout
 648 -rw-r--r--   1 appliexp appliexp   97596894 17 avr 12:23 stdout

I found 2 files with this anomaly for the moment, but maybe it's a way of research.

If someone has an idea...

Thank's a lot and, again, sorry for my english...

Bye

This might/should be the reason:
IBM Why Numbers from "du -s" and "df" Disagree - United States

1 Like

Thank you for your answer.

Maybe it has to do with my problem, however it does not explain the difference in size so big ...

Well, did you read the whole article, especially "Why the numbers do not add up" and checked the part for the commands fuser and fileplace as stated in the article?

Hi !

Well, i found the solution to my problem.
It was, in fact, files that had been deleted but were still used by a process.

Therefore, it could not see the filesystem in question.

We can see it by run the command :

find /proc/*/fd -type f -links 0 -exec ls -l {} +

In the result, we can see the PID of the process that use the deleted file.
"/proc/<PID>/fd/..."
There was only kill the process in question and the file will be released, and the free space too.

But thank you for watching my problem.

Have a nice day.

1 Like

from memory, fuser should have been able to list that as well. and/or lsof (although i have only played with lsof , so someone else can verify/correct me.

1 Like

Agreed - checking with fuser worked very well for me in the past.

1 Like

First off, many thanks for posting a follow-up. I hones our skills to finally learn how a problem was solved.

I changed your threads title to "Solved".

bakunin

I searched for the Solved button, but i didn't find it...

Thankt's a lot :slight_smile: