Operating System - Tru64 Unix
1753851 Members
9428 Online
108808 Solutions
New Discussion юеВ

Re: 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 4
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;; }