- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- System Administration
- >
- Creating a link for /var/temp to new mount point
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- 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
- Email to a Friend
- Report Inappropriate Content
01-05-2012 01:20 PM - edited 01-05-2012 01:21 PM
01-05-2012 01:20 PM - edited 01-05-2012 01:21 PM
Hi
I want to create a link for /var/tmp to new mount point /log/tmp.Please note that /var/tmp is currently used by oracle and it gets full very fast , due to this i want /var/tmp to point to location.How can i do it.
i tried doing this
server:/var #ln -s /log/tmp var , but it creates a link under /var/tmp/tmp pointing ot /log/tmp
What is the best way to do it .
TIA
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
01-05-2012 01:32 PM - edited 01-05-2012 01:33 PM
01-05-2012 01:32 PM - edited 01-05-2012 01:33 PM
Re: Creating a link for /var/temp to new mount point
You would need to first stop all applications that are using /var/tmp, which would probably be Oracle.
Next move the current /var/tmp to /var/tmp.orig
Now you can create your link.
ln -s /log/tmp /var/tmp
Now restart your Oracle application and anything that was using /var/tmp.
While this will work, it should be possible to control where Oracle writes its temp files. I cannot remember if this is an environment variable for the user that runs the Oracle processes or if it is something in the SPFILE.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
01-05-2012 01:34 PM
01-05-2012 01:34 PM
Re: Creating a link for /var/temp to new mount point
TIA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
01-05-2012 01:39 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
01-06-2012 07:23 AM - edited 01-06-2012 07:25 AM
01-06-2012 07:23 AM - edited 01-06-2012 07:25 AM
Re: Creating a link for /var/tmp to new mount point
>You would need to first stop all applications that are using /var/tmp
If you don't stop the applications, the problems would depend on whether they are continually opening and closing files there. If they keep them open, the mv and ln would have no affect until a new file is created.
If they are opening and closing, they won't find the previous file.
So basically, you are gambling.
>it should be possible to control where Oracle writes its temp files. I cannot remember if this is an environment variable
For most applications, they check TMPDIR.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
01-06-2012 05:52 PM
01-06-2012 05:52 PM
Re: Creating a link for /var/temp to new mount point
The location for Oracle's files is defined by your database administrator. /var/tmp is actually a poor choice (but probably the default and your DBA did not look at best practices for temp files. However, /var/tmp is very heavily used by many, many different programs, not just Oracle. That's why your DBA needs to redefine where the Oracle files should be located. /var/tmp is a very common directory to be given a separate lvol and mountpoint. /var has other directories that could grow quite large and cause problems several applications. That's why the system administrator must check the sizes of the directories and take appropriate action. It may be to trim logfiles, fix a broken application or hardware that is creating large files, create separate mountpoints, redirect email, etc.
Bill Hassell, sysadmin
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP