/tmp filling up in AIX OS

Operating System: IBM AIX
Issue: /tmp is always showing up at 100%, When checked with fuser command for the users writing files onto /tmp, I found some of the users writing more than the /tmp size. Is there any other way which shows the PID, User ID, Size of files writing onto /tmp and some other useful info? I am familiar only with the fuser command with the options -cxVduf (# fuser -cxVduf /tmp).

Popular White Paper On This Topic

/tmp 100% is not a good sign at all, it could stop commands from running and might have other adverse affects on the normal operation of the system and applications. I suggest you to increase the space of /tmp if it allows to do so and then trouble shoot also check the files that are older and can be deleted to make some room. There is a command "lsof" (list open files), it sounds funny but it is a fact, as the name suggests the command should display open file names but it displays everything except the actual file name that is open. Well, having said this lsof is very useful as it provides you with the process ID of the process that has opened the file and the inode of the files that are open on a perticular FS (It does dump other details like command, user, file descriptor, etc..), use the inode to find the target file

lsof /tmp
find /tmp -inum <i-node>

But Finding the open files doesn't solve your problem unless you delete them and DO NOT delete them when they are open and to close the file you need to stop the process/application that has opened it.

You use fuser to identify the process id and grep the output of ps to see
additional information. You may also need to more closely look at parent
ids to identify what/who is actually causing your problem.