Operating System - HP-UX
1753774 Members
6232 Online
108799 Solutions
New Discussion юеВ

crw------- file in /var/tmp

 
SOLVED
Go to solution

crw------- file in /var/tmp

Data Protector V6.11 reported file /var/tmp/rdskVOJa03706 as an error. Can it be deleted? It seems to match an entry in /dev/rdsk. I have a similar server with eight of these.

# cd /var/tmp
ll rd*
crw------- 1 root root 203 0x070000 Feb 10 2010 rdskVOJa03706

ll /dev/rdsk | grep 0x0700
crw-r----- 1 bin sys 188 0x070000 Feb 10 2010 c7t0d0

ll /dev/dsk | grep 0x0700
brw-r----- 1 bin sys 31 0x070000 Dec 8 2009 c7t0d0
8 REPLIES 8
Steven E. Protter
Exalted Contributor

Re: crw------- file in /var/tmp

Shalom,

Files in /var/tmp are assumed to be deletable.

The only exception is if the process that created them still has a file handle open.

fuser -cu /var/tmp

If there are no open file handles they can be deleted.

Open file handles imply an open DP process.

You may need to use lsof to check the process if you find an open file handle.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com

Re: crw------- file in /var/tmp

did you mean:

'fuser -fu /var/tmp/rdsk...'?

'fuser -cu' reports the path is not a mount point.
Steven E. Protter
Exalted Contributor

Re: crw------- file in /var/tmp

Hi again,

No, I meant.

fuser -cu /var/tmp

That is where the files are.

I'm guessing unless DP is running at this moment there are no file handles here.

These files may be the result of failed DP or crashed DP jobs.

Based on the date stamps, I'm pretty comfy deleting these files.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com

Re: crw------- file in /var/tmp

...but this is what I get and I don't see that as a answer but a miss use of the command.

# fuser -cu /var/tmp
/var/tmp: fuser: could not find file system mounted at /var/tmp.
Steven E. Protter
Exalted Contributor
Solution

Re: crw------- file in /var/tmp

Sorry.

bdf /var/tmp
bdf /var

fuser -cu /var

I made an assumption, which makes me the first three letters of the word. :-)

I assumed that /var/tmp was its own file system because that is how I do systems.

That will give you open processes on /var

There will be a lot.

fuser -u /var/tmp

This will show open processes probably only of a DP backup is running a job at the moment.

root@rxq23hxd# fuser -u /var/tmp
/var/tmp:


SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com

Re: crw------- file in /var/tmp

that makes more sense. i will delete these files after confirming with fuser -u. Thanks bunches...
Dennis Handly
Acclaimed Contributor

Re: crw------- file in /var/tmp

What HP-UX version are you using?
I remember 11.11 or so creating those character files there:
http://h30499.www3.hp.com/t5/System-Administration/Who-is-cluttering-var-tmp-with-char-dev-files-rdskAAA/m-p/4051670#M304578

Re: crw------- file in /var/tmp

HP-UX 11.23 on PA-Risc