- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Creating a link for /var/temp to new mount point
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
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
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
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
- 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
- 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
- Report Inappropriate Content
01-05-2012 01:39 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- 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
- 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