\tmp Directory is full up to 99%.


 
Thread Tools Search this Thread
Operating Systems AIX \tmp Directory is full up to 99%.
# 1  
Old 10-03-2011
\tmp Directory is full up to 99%.

Dear All,

We are on AIX OS, /tmp directory is filled up to 99% percent,
Please suggest, How to get free space for "/tmp"?
which files can be deleted from /tmp? and How to delete it? is there any commands.....

Thanks in advance,
Its very urgent, Helpful answers will be appreciated,
Please suggest,

Regards
Vamsi.
# 2  
Old 10-03-2011
It would be easier and safe to increase /tmp file system size than deleting,
for example.
Code:
# chfs -a size=10000 /tmp

If there is no skip you can delete the files which are not accessed by a process.
by issuing the following commands.
Identifies processes using a file or file system
Code:
$ fuser -u /dev/hd3

Displays dates of access for a file , to see old files that hasn't been accessed for while .
Code:
$istat /tmp/somefile

Then you can remove old files
Code:
$ rm -f /tmp/somefile








istat myfile (Displays attributes about the file named myfile)
# 3  
Old 10-04-2011
Thanks for your post.
# 4  
Old 10-04-2011
Quote:
Originally Posted by kak
which files can be deleted from /tmp?
Per definition everything in "/tmp" can be deleted. If it mustn't be deleted it should be put elsewhere in first place. That said, users should be assured that there files are not removed immediately (this would render this filespace useless in fact), but everything older than 48 or even 24 hours is fair game.

I hope this helps.

bakunin
# 5  
Old 10-05-2011
Dear bakunin,

I am moving all the files from /tmp to another folder, i hope it helps me,

Please give me some clarity on this, there are many many files with different extensions like ".tmp, .log, .txt............. in /tmp folder.

If i want to delete these files from /tmp, can i...........

Thanks in advance.
# 6  
Old 10-05-2011
you should probably not delete .log files - if you want to make space empty them up but leave them where they are - just in case an application still uses them. If you delete logfiles still in use, than the application might crash or some other weird behaviours might occur, so better >file.log

As previous posters mentioned already, you can as well check for last access with 'find /tmp -atime' whatever timeframe you want to keep just to make sure you dont remove files that might still be needed. Removing anything not accessed in the last 7 days might be a rather safe bet.

regards
zxmaus
This User Gave Thanks to zxmaus For This Post:
# 7  
Old 10-07-2011
Java

Hi there,

You delete the files that have not been accessed in 2 days or so easily by using the following command:
Code:
find /tmp/ -atime +1 -print0 | xargs -0 rm -f

/tmp directory could be used by many applications. You may try the below command to list down the files used by processes currently:
Code:
lsof | grep "/tmp"

The files that are not being accessed currently, you may safely remove them. Let us know if this helps.Smilie
This User Gave Thanks to admin_xor For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Logging events of /tmp full

Hi everybody, few days ago we had a big issue with one of our solaris10 server. Suddenly while my colleague was working on it for some troubleshooting he realized that the performance started to degrade. At the end it reached the point that was not even possible to login usng the local console... (7 Replies)
Discussion started by: bdegiovanni
7 Replies

2. Emergency UNIX and Linux Support

MySql server hangs due to /tmp full

Dear community, my sql and apache server (with CMW installed) hangs due to /tmp full: root@cms:~# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda3 224G 27G 186G 13% / tmpfs 3.9G 0 3.9G 0% /lib/init/rw udev 3.9G ... (7 Replies)
Discussion started by: Lord Spectre
7 Replies

3. Solaris

Solaris full /tmp - du and df different swap NOT filled

Hello all, The issue is # df -h /tmp Filesystem size used avail capacity Mounted on swap 4.0G 4.0G 8.7M 100% /tmp # du -sh /tmp/ 87M /tmp By now you probably will say that this is open file destriptor issue. Well no, nothing... (2 Replies)
Discussion started by: click
2 Replies

4. AIX

/tmp file system full

Hi, I would like to know if /tmp file system is full, wheather it will affect the peformance of application installed on AIX. if Memory and CPU are not heavily utilized. Regards, Manoj. (1 Reply)
Discussion started by: manoj.solaris
1 Replies

5. AIX

/tmp full

The /tmp is 100% full, I found there are the following big files/directory: 1301500 syslog.out.58 166692 vac 158552 install.dir.2928686 158552 install.dir.2236636 110980 install.dir.2887698 /tmp/vac have some files like : .toc ... (3 Replies)
Discussion started by: rainbow_bean
3 Replies

6. Solaris

/tmp: File system full, swap space limit exceeded

Can you help. My server sunning solaris 9 on x86 platform pretty much hung for a few hours... I could not use telnet or ssh to the box - it kept refusing connection. A few hours later - I was able to log in again. The server has not rebooted but here are the first errors in the messages log... (5 Replies)
Discussion started by: frustrated1
5 Replies

7. Red Hat

/tmp directory

i heard once that the /tmp directory was a ramfs (swap) that is cleared at reboot time, is this still the case in redhat EL 3 and 4 ? (1 Reply)
Discussion started by: BG_JrAdmin
1 Replies

8. AIX

/tmp full

good morning The /tmp filesystem is full at 99 % I have do a "rm" but the size is the same. so i think that a process is always alive, but how can i do to know it ? (because I have deleted some file in /tmp) thank you (9 Replies)
Discussion started by: pascalbout
9 Replies

9. UNIX for Dummies Questions & Answers

/tmp filesystem full

I am running AIX 3 4. When I do a df I get: Filesystem 512-blocks Free %Used Iused %Iused Mounted on /dev/hd4 32768 10232 69% 1309 16% / /dev/hd2 917504 86360 91% 19744 18% /usr /dev/hd9var 131072 67712 49% 617 ... (11 Replies)
Discussion started by: szodiac
11 Replies

10. UNIX for Dummies Questions & Answers

/tmp directory gets to 100%

Eventhough there is no visible feed to the /tmp dir, when I shut my apps engine it gets down to 4%. Upon restarting my engine, give it about 10-15 minutes and the /tmp gets to a 100% again. My engine is running on AIX 4.3. Engines job is to process metapp (metacode to PDF) completed files and then... (2 Replies)
Discussion started by: buRst
2 Replies
Login or Register to Ask a Question