HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Untared files disappearing from /tmp directory

 
MarkW_1
Regular Advisor

Untared files disappearing from /tmp directory

We are having an issue on a newly intalled integrity server with HP 11.31. Tar files that are untared are disappearing the next day. There is nothing in cron doing this. Is there an automatic utility that does this type of work.
5 REPLIES
Steven Schweda
Honored Contributor

Re: Untared files disappearing from /tmp directory

> We are having an issue [...]

Is that anything like a _problem_?

> Tar files that are untared are disappearing
> the next day.

This may make some sense to you, but it's not
telling me anything.

> There is nothing in cron doing this.

If you say so.

> Is there an automatic utility that does
> this type of work.

Probably not, but it's hard to be sure when
one lacks a useful definition of "this type
of work".

Generally speaking, if files disappear, then
some user or process is disappearing them. A
typical OS tends not to trash user data on
its own initiative.

You realize, of course, that "/tmp" derives
its name from "temporary", right?
James R. Ferguson
Acclaimed Contributor

Re: Untared files disappearing from /tmp directory

Hi:

If you are rebooting and the contents of '/tmp' have disappeared, then it is likely that '/etc/rc.config.d/clean_tmps' script has:

CLEAR_TMP=1

You can modify this to:

CLEAR_TMP=0

...to stop the cleaning action during bootup.

Regards!

...JRF...
MarkW_1
Regular Advisor

Re: Untared files disappearing from /tmp directory

It happens sometime after the files are untared but less than 24 hours.

# more /etc/rc.config.d/clean_tmps
#!/sbin/sh
# @(#)B.11.31_LR
# List and/or clear temporary files
#
# LIST_TEMPS: Set to 1 to produce a listing of temporary files at startup.
#
# CLEAR_TMP: Set to 1 to remove all files from /tmp at startup.
#
LIST_TEMPS=1
CLEAR_TMP=0
Pete Randall
Outstanding Contributor

Re: Untared files disappearing from /tmp directory

Is the "untar'ing" a manual or an automated process. If manual, check with the person that does this and find out if they use a script or the command line. If automated, find and check the script to see if it is cleaning up after itself.


Pete

Pete
MarkW_1
Regular Advisor

Re: Untared files disappearing from /tmp directory

There was an entry in the cfengine utility that was doing the cleanup.