- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- files in /var/tmp
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2001 11:11 PM
11-29-2001 11:11 PM
files in /var/tmp
Does anyone know what causes these?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2001 11:33 PM
11-29-2001 11:33 PM
Re: files in /var/tmp
Is a temporary directory for users as like /tmp.
Here are my crontab lines to remove anything over a week old in /tmp and
/var/tmp:
30 20 * * * /usr/bin/touch /tmp; /usr/bin/find /tmp -mtime +7 -exec rm -rf
{} \;
31 20 * * * /usr/bin/touch /var/tmp; /usr/bin/find /var/tmp -mtime +7 -exec
rm -rf {} \;
It is important to /usr/bin/touch the directory so only the stuff under it
gets deleted. You can add -type f to limit the seach to files only.
like find /var/tmp -type f -mtime +7 -exec rm {} \;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2001 11:41 PM
11-29-2001 11:41 PM
Re: files in /var/tmp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2001 01:31 AM
11-30-2001 01:31 AM
Re: files in /var/tmp
have you tried to edit them to see what they contain? what does 'file /var/tmp/rdsk
I believe they are temporary files made by a fsck that was ended before it should (so it didn't arrive to erasing them).
E.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2001 01:35 AM
11-30-2001 01:35 AM
Re: files in /var/tmp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2001 01:48 AM
11-30-2001 01:48 AM
Re: files in /var/tmp
Typically, if a process exits unexpectedly (crashes), it leaves behind the temp files here. Any old files in this directory may be safely deleted.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2001 02:07 AM
11-30-2001 02:07 AM
Re: files in /var/tmp
/var/tmp directory is default system destination for temp files.
You can do
# echo $TMPDIR
if not set, then system will use defaults which is /var/tmp, /usr/tmp etc.
You can change it by setting up and exporting TMPDIR parameter in your enviroment or leave it as it is.
Those files you've mentioned, it think that could go from SAM or any other application which could scan your HW or has raw access to disks. It depends.
You can remove them (cron is the best option), but please do remember about HP recomendation (do backup first, just in case).
Please look at the date of last modification, if longer than 2 month no need to worry - remove them.
There is no simple way of telling who used that file. You have to do file on each file and have look indide.
Good Luck,
Piotr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2001 02:14 AM
11-30-2001 02:14 AM
Re: files in /var/tmp
Can you do a 'ls -la /dev/rdsk' and a 'ls -la /var/tmp|grep rdsk' and post the answer here, please?
E.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2001 02:25 AM
11-30-2001 02:25 AM
Re: files in /var/tmp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2001 02:36 AM
11-30-2001 02:36 AM
Re: files in /var/tmp
/*
The /tmp directory is private. Since many sites will delete
files from /tmp at boot time, files that must be preserved
should not be placed in the /tmp directory. Application working
files should go in /var/tmp or /var/opt/
generated by the OS that must be preserved across reboots should
go into the /var/tmp directory */
you can use 'fuser' or 'lsof' utilities before
justifying the removal.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2001 02:54 AM
11-30-2001 02:54 AM
Re: files in /var/tmp
Well, I think that the files were made by SAM or another tool that you used for scanning the hardware for new devices. From the dates of the files, it seems that you added on the same day (Aug 5) at least a disk to the system. You either canceled the scanning operation at some point or SAM forgot to erase those files. It's the best I can presume, but maybe someone else know exactly what those files are.
I believe you can safely remove them (well, I know, everybody else says that) because I don't think that somebody or something uses them. Anyway, do a 'lsof' on one or each of them to see if they are in use, if not, go ahead removing.
E.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2001 03:00 AM
11-30-2001 03:00 AM
Re: files in /var/tmp
I would recommend:
1. cd /var/tmp;fuser -u ./*
2. check active processes if exists (doubtfull)
if yes skip the rest steps and post output of fuser -u ./* from /var/tmp
3. fbackup -f /dev/rmt.... -i /var/tmp
4. check if you can read ie. list of indexes from your backup
5. rm all rdsk files from /var/tmp
Have a nice fun
Piotr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2001 06:09 AM
11-30-2001 06:09 AM