Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
Operating System - Tru64 Unix
cancel
Showing results for 
Search instead for 
Did you mean: 

How to change /tmp to another directory?

ericfjchen
Regular Advisor

How to change /tmp to another directory?

This is Tru64 5.1B cluster. The /tmp is located / (root_domain). It is linked to /cluster/members/member0/tmp. Can we change /temp to another directory? How to do it?

Thanks

Eric
4 REPLIES
Venkatesh BL
Honored Contributor

Re: How to change /tmp to another directory?

Can you let us know the purpose of this?

Many commands use /tmp for creating temp files. So, I don't think it would be advisable to change it to some other name.
Johan Brusche
Honored Contributor

Re: How to change /tmp to another directory?


Eric,

If the intent is to avoid filling cluster_root domain with temporary files then create 2 AdvFS domain#fileset on 2 different storage units, then mount that fileset on /cluster/memebrs/memberX/tmp . Below some example entries for your clusters /etc/fstab :

tmp_memb1#tmp /cluster/members/member1/tmp advfs rw 0 3
tmp_memb2#tmp /cluster/members/member2/tmp advfs rw 0 3

__ Johan.

_JB_
Han Pilmeyer
Esteemed Contributor

Re: How to change /tmp to another directory?

Some applications use the TMPDIR environment variable when set. So another approach could be to set this environment variable in /etc/profile (and equivalent places).
Ralf Puchner
Honored Contributor

Re: How to change /tmp to another directory?

Eric,

have a look into the administration guide it explains how to do it....
Help() { FirstReadManual(urgently); Go_to_it;; }