Problem space used on AIX 5.3


 
Thread Tools Search this Thread
Operating Systems AIX Problem space used on AIX 5.3
# 1  
Old 04-17-2013
[Solved] 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 :

Code:
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 :
Code:
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 :
Code:
Node1-c08 /EFED/appli/log>ls -l stdout
-rw-r--r--   1 appliexp appliexp   97577580 17 avr 12:22 stdout

Code:
Node1-c08 /EFED/appli/log>du -sm stdout
0,62    stdout

We can see it with ls -ls :
Code:
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
# 2  
Old 04-17-2013
This User Gave Thanks to zaxxon For This Post:
# 3  
Old 04-17-2013
Thank you for your answer.

Maybe it has to do with my problem, however it does not explain the difference in size so big ...
# 4  
Old 04-18-2013
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?
# 5  
Old 04-22-2013
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 :
Code:
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.
This User Gave Thanks to Veis For This Post:
# 6  
Old 04-22-2013
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.
This User Gave Thanks to MichaelFelt For This Post:
# 7  
Old 04-22-2013
Agreed - checking with fuser worked very well for me in the past.
This User Gave Thanks to zaxxon For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

AIX sed use space as delimiter

I am trying to do this with one small tweak. I would also like to use a space as a delimiter. sed 's/ */\ /g' file This is what my file looks like. server1, server2, server3 server4 server5 server6 I would like it to look like this. server1 server2 server3 server4 ... (6 Replies)
Discussion started by: cokedude
6 Replies

2. AIX

AIX swap space, physical memory & cache

Hi, I am new to AIX, Can someone please help me how to know the swap space, total physical memory and system cache? We are using AIX 5.3. Thanks! (3 Replies)
Discussion started by: Phaneendra G
3 Replies

3. Shell Programming and Scripting

Error while executing disk space script in AIX

#!/bin/ksh for AIX used=0 mount=${1:-"/mountpoint"} threshold=${2:-80} #message="hello" #SUBJECT="Disk Space Alert" #EMAIL="xyz@abcinc.com" used=`df -k $mount | grep % | awk '{print $5}' | sed 's/%//g'` #echo "Free Space available under \"$mount\" is `expr 100 - $used`%.\n">$message ... (6 Replies)
Discussion started by: rajeshw61
6 Replies

4. AIX

AIX 6.1: Releasing Memory and Page Space

Hi everyone, i have a question about the Memory Management in AIX 6.1. I have - 128 GB RAM and - 70 GB Page Space. The application i am running on this machine is doing some operations in perl. These are done only once a day and uses both memory and paging space. My problem... (1 Reply)
Discussion started by: Haichao
1 Replies

5. AIX

Determine disk space in AIX

Hi I need to extend a FS in AIX but Im not sure on how to calculate the free space Please advise if my math is correct: -------PP SIZE: 64 megabyte(s) --------TOTAL PPs: 1086 (69504 megabytes) so the total size of volume is 64 * 1086 = 69504 MB (695GB) Free PP is-- FREE... (4 Replies)
Discussion started by: hedkandi
4 Replies

6. UNIX for Advanced & Expert Users

no space error in aix

While doing cat on a large file (3 GB file) , I am getting the no space error in the shell script hugefile.sh. Eg: for i in `cat hugefile.txt` do echo "$i" done error: hugefile.sh: no space Please let me know your thoughts in handling this no space issue. (2 Replies)
Discussion started by: techmoris
2 Replies

7. Shell Programming and Scripting

problem in using cat and ended up with no space error in aix

While doing cat on a large file (3 GB file) , I am getting the no space error in the shell script hugefile.sh. Eg: for i in `cat hugefile.txt` do echo "$i" done error: hugefile.sh: no space Please let me know your thoughts in handling this no space issue. (2 Replies)
Discussion started by: techmoris
2 Replies

8. AIX

AIX Free disk space

Hello, I would like to free some space to install gcc with is about 50M large, and I have no free space on my system. What can I delete? Filesystem 1024-blocks Used Free %Used Iused Ifree %Iused Mounted on /dev/hd4 262144 145436 116708 56% 7981 ... (10 Replies)
Discussion started by: aixn00b
10 Replies

9. AIX

how do I increase the storage space I am new to AIX

Host Name - xxxxxxx IP Address - xxxxxxxxx Alert Msg - The percentage of available storage space (DMXMemory) is low (49.54374442289481 percent). Time received - 14:23 Time Logged - 14:55 Suggested Group - MR-UNIX (5 Replies)
Discussion started by: Nyiko
5 Replies

10. AIX

AIX HMC LSCOD with space

I am trying to run the lscod command against an HMC that has managed system names with spaces. Tried enclosing the managed system names in quotes; single and double. How do I get the command to run? ssh hmcname lscod -m 'managed system 1' -t cap -r proc -c cuod Thanks, ~Donavon (0 Replies)
Discussion started by: djlerman
0 Replies
Login or Register to Ask a Question