Sponsored Content
Top Forums UNIX for Advanced & Expert Users Process responsible for filling up /var/tmp Post 20385 by hugo_perez on Thursday 25th of April 2002 11:23:50 AM
Old 04-25-2002
You can use fuser command to find candidates. And check the crontab to find procces that run every ten minutes.

example for the /var FS:

fuser /dev/dsk/c0t0d0s5

/dev/dsk/c0t0d0s5: 5002o 374o 371o 358o 343o 301o 30o 282o 224o 220o 206c

This give the proccess number 5002, 374, etc.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

monitoring /tmp and /var/tmp for suspicous activity

Hello, does anyone have a script that can check the contents of the /tmp directory and for example e-mail the directory content if anything other than session files are present? Maybe there are better ways to monitor suspicous /tmp and /var/tmp activity, if so I'm listening :) (1 Reply)
Discussion started by: jamesbond
1 Replies

2. Solaris

Usage of /var/tmp/ directory on Solaris 10

Hi All, I have some threaded applications. Design of the application is such that one thread will decode some data and put it in data structure, And main thread will wait for another child threads pick up the decoded data. The data will be large decoded files. Once decoded data is picked by... (1 Reply)
Discussion started by: patilmuragesh
1 Replies

3. AIX

Trace the process responsible for locking filesystem ?

Hi, Sometimes when I want to unmount some filesystem I get "The requested resource is busy." error. In such a case I try to find and kill process that uses that filesystem. I do that on random. Is there a right way to find whitch prosesses use filesystem resource at given time ? thanks... (1 Reply)
Discussion started by: vilius
1 Replies

4. UNIX for Advanced & Expert Users

diff command filling /var filesystem space

Hi, I am using diff command to check difference between two files.Both files are very big and when i execute this command /var temp space is filled up almost 99%. Can any one please tell me is there any way i can specify directory name which has more space so that diff can use that dir for... (2 Replies)
Discussion started by: ukatru
2 Replies

5. Solaris

permission of /var/tmp

what's the impact if I change /var/tmp's permission into 750? (7 Replies)
Discussion started by: a2156z
7 Replies

6. Shell Programming and Scripting

/tmp filling up

Does anyone know of a way to redirect the ksh default of processing data in /tmp to another file system or / something else? My ksh script is parsing large DB files and it keeps filling up /tmp on the root disk. I have a 1 Tb disk with most of its space. How do I re-direct the /tmp ksh... (6 Replies)
Discussion started by: cchelten
6 Replies

7. Emergency UNIX and Linux Support

[Solved] /var is filling continuously

Hi All, I have Solaris-10 machine. Yesterday I patched it with Solaris-10 patch Cluster. Since then glance software is filling up /var/core continuously. In every few minutes, it will fill /var to 100%. Glance runs through /etc/init.d/mwa and I already stopped it, still core files are... (15 Replies)
Discussion started by: solaris_1977
15 Replies

8. Emergency UNIX and Linux Support

Error filling /var/adm/messages

I have Solaris-11 non-global zone running under Solaris-11 global zone. Every few minutes, this message is getting in /var/adm/message of non-global zone Aug 31 08:31:53 zonnjc002dbp01 statd: statd: cannot talk to statd at NAS1, RPC: Timed out(5) NAS1 is already mounted as NFS and working... (2 Replies)
Discussion started by: solaris_1977
2 Replies

9. HP-UX

Problems after deleting /var/tmp

Hi, To clear up the filesystem, I archived /var/tmp (forgot that this directory was important for crontab), and then deleted the directory itself. After that there were problems like crontab not accessible, certain ftp commands like mget not functioning, and worst there were some scripts which... (4 Replies)
Discussion started by: anaigini45
4 Replies

10. Shell Programming and Scripting

[bash] script is filling up my /var/log

I am trying to create a script that checks if my VPN connection is up and running... Everything seems to work as except but for some reason, the script fills up my /var/log/auth.log with the below information Dec 13 01:07:44 debian sudo: soichiro : TTY=pts/0 ; PWD=/home/soichiro/Desktop ;... (5 Replies)
Discussion started by: soichiro
5 Replies
Commands Reference, Volume 2, d - h

fuser_Command

  Purpose

   Identifies processes using a file or file structure.

  Syntax

   fuser [ -c | -d | -f ] [ -k | -K { SignalNumber |
   SignalName }] [ -u ] [ -x ] [ -V ]File ...

  Description

   The fuser command lists the process numbers of local processes
that use
   the local or remote files specified by the File parameter. For
block
   special  devices, the command lists the processes that use any
file on that
   device.

   Each process number is followed by a letter indicating how the
process
   uses the file:

   c	   Uses the file as the current directory.
   e	   Uses the file as a program's executable object.
   r	   Uses the file as the root directory.
   s	    Uses  the file as a shared library (or other loadable
object).

   The process numbers are written to standard output in  a  line
with spaces
   between  process  numbers.  A new line character is written to
standard error
   after the last output for each file operand. All other  output
is written
   to standard error.

   The fuser command will not detect processes that have mmap re-
gions where
   that associated file descriptor has since been closed.

  Flags

   -c		     Reports on any open files in the file system
containing
		     File.
		     Implies  the use of the -c and -x flags. Re-
ports on any
		     open files which have been unlinked from the
file system
   -d		      (deleted	from  the parent directory). When
used in
		     conjunction with the -V flag,  it	also  re-
ports the inode
		     number and size of the deleted file.
   -f		     Reports on open instances of File only.
		     Sends  the  specified  signal  to each local
process. Only
   -K SignalNumber | the root user can kill a process of  another
user. Signal
   SignalName	      can  be  specified as either a signal name,
such as -9 or
		     KILL for the SIGKILL  signal.  Valid  values
for SignalName
		     are those which are displayed by the kill -l
command.
		     Sends  the  SIGKILL  signal  to  each  local
process. Only the
		     root  user can kill a process of another us-
er.
   -k		     Note:
		     fuser -k or -K might not be able  to  detect
and kill new
		     processes that are created immediately after
the program
		     starts to run.
   -u		     Provides the login name for local	processes
in
		     parentheses after the process number.
   -V		     Provides verbose output.
		     Used  in  conjunction with -c or -f, reports
on executable
   -x		     and loadable  objects  in	addition  to  the
standard fuser
		     output.

  Examples

    1.	To  list the process numbers of local processes using the
/etc/passwd
       file, enter:

	 fuser /etc/passwd

    2. To list the process numbers and user login names  of  pro-
cesses using
       the /etc/filesystems file, enter:

	 fuser -u /etc/filesystems

    3.	To terminate all of the processes using a given file sys-
tem, enter:

	 fuser -k -x -u -c /dev/hd1

       or

	 fuser -kxuc /home

       Either command lists the process number and user name, and
then
       terminates each process that is using the /dev/hd1 (/home)
file
       system. Only the root user can  terminate  processes  that
belong to
       another	user.  You  might want to use this command if you
are trying to
       unmount the /dev/hd1 file system and a process that is ac-
cessing the
       /dev/hd1 file system prevents this.

    4. To list all processes that are using a file which has been
deleted
       from a given file system, enter:

	 fuser -d /usr

  Files

   /dev/kmem		      Used for the system image.
   /dev/mem		      Also used for the system image.

  Related Information

   The kill command, killall command, mount command, and ps
   command.

   For more information about the identification and  authentica-
tion of users,
   discretionary  access control, the trusted computing base, and
auditing,
   refer to Security.

________________________________________________________________________________

		      Commands Reference, Volume 2, d - h

fuser_Command

  Purpose

   Identifies processes using a file or file structure.

  Syntax

   fuser [ -c | -d | -f ] [ -k | -K { SignalNumber |
   SignalName }] [ -u ] [ -x ] [ -V ]File ...

  Description

   The fuser command lists the process numbers of local processes
that use
   the local or remote files specified by the File parameter. For
block
   special  devices, the command lists the processes that use any
file on that
   device.

   Each process number is followed by a letter indicating how the
process
   uses the file:

   c	   Uses the file as the current directory.
   e	   Uses the file as a program's executable object.
   r	   Uses the file as the root directory.
   s	    Uses  the file as a shared library (or other loadable
object).

   The process numbers are written to standard output in  a  line
with spaces
   between  process  numbers.  A new line character is written to
standard error
   after the last output for each file operand. All other  output
is written
   to standard error.

   The fuser command will not detect processes that have mmap re-
gions where
   that associated file descriptor has since been closed.

  Flags

   -c		     Reports on any open files in the file system
containing
		     File.
		     Implies  the use of the -c and -x flags. Re-
ports on any
		     open files which have been unlinked from the
file system
   -d		      (deleted	from  the parent directory). When
used in
		     conjunction with the -V flag,  it	also  re-
ports the inode
		     number and size of the deleted file.
   -f		     Reports on open instances of File only.
		     Sends  the  specified  signal  to each local
process. Only
   -K SignalNumber | the root user can kill a process of  another
user. Signal
   SignalName	      can  be  specified as either a signal name,
such as -9 or
		     KILL for the SIGKILL  signal.  Valid  values
for SignalName
		     are those which are displayed by the kill -l
command.
		     Sends  the  SIGKILL  signal  to  each  local
process. Only the
		     root  user can kill a process of another us-
er.
   -k		     Note:
		     fuser -k or -K might not be able  to  detect
and kill new
		     processes that are created immediately after
the program
		     starts to run.
   -u		     Provides the login name for local	processes
in
		     parentheses after the process number.
   -V		     Provides verbose output.
		     Used  in  conjunction with -c or -f, reports
on executable
   -x		     and loadable  objects  in	addition  to  the
standard fuser
		     output.

  Examples

    1.	To  list the process numbers of local processes using the
/etc/passwd
       file, enter:

	 fuser /etc/passwd

    2. To list the process numbers and user login names  of  pro-
cesses using
       the /etc/filesystems file, enter:

	 fuser -u /etc/filesystems

    3.	To terminate all of the processes using a given file sys-
tem, enter:

	 fuser -k -x -u -c /dev/hd1

       or

	 fuser -kxuc /home

       Either command lists the process number and user name, and
then
       terminates each process that is using the /dev/hd1 (/home)
file
       system. Only the root user can  terminate  processes  that
belong to
       another	user.  You  might want to use this command if you
are trying to
       unmount the /dev/hd1 file system and a process that is ac-
cessing the
       /dev/hd1 file system prevents this.

    4. To list all processes that are using a file which has been
deleted
       from a given file system, enter:

	 fuser -d /usr

  Files

   /dev/kmem		      Used for the system image.
   /dev/mem		      Also used for the system image.

  Related Information

   The kill command, killall command, mount command, and ps
   command.

   For more information about the identification and  authentica-
tion of users,
   discretionary  access control, the trusted computing base, and
auditing,
   refer to Security.
All times are GMT -4. The time now is 11:11 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy