home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sun.apps
- Path: sparky!uunet!ferkel.ucsb.edu!taco!gatech!asuvax!ncar!mimbres.cs.unm.edu!lynx.unm.edu!zia.aoc.nrao.edu!rmilner
- From: rmilner@zia.aoc.nrao.edu (Ruth Milner)
- Subject: Re: Can f77 be taught not to use /tmp?
- Message-ID: <1993Jan26.200441.17497@zia.aoc.nrao.edu>
- Reply-To: rmilner@zia.aoc.nrao.edu (Ruth Milner)
- Organization: National Radio Astronomy Observatory, Socorro NM
- References: <1993Jan20.185627.19507@mapsut.einstein.com> <447@ftms.UUCP> <C1FDwv.68I@siemens.com>
- Date: Tue, 26 Jan 93 20:04:41 GMT
- Lines: 52
-
- In article <C1FDwv.68I@siemens.com> aad@siemens.com (Anthony A. Datri) writes:
- >
- >I have to believe that somewhere in the docs is a recommendation to do something
- >about /tmp if you're going to be making significant use of it.
-
- It's not in any of the obvious places, such as under setting up a workstation
- or server, making space on filesystems, or the whopping two entries in the
- index under /tmp . If it isn't someplace sensible, it isn't much use to the
- novice sysadmin.
-
- >You're begging to lose. There are several problems here:
- >o If just / is mounted, /tmp points to nowhere.
-
- If just / is mounted under SunOS, you have worse problems than something
- trivial like this, which can be fixed by a simple "rm /tmp; mkdir /tmp".
- Even if /tmp is a separate filesystem, it isn't normally mounted on a single-
- user boot, in which case you probably lose anyway if it isn't available or /
- doesn't have enough space for what you need - which in single-user mode isn't
- much if /usr isn't mounted too.
-
- >Users -- including scripts and executables -- are used to the behavior that
- > - nothing in /{usr,var}/tmp is touched at reboot
- > - /tmp and /usr/tmp are distinct wrt filenames
-
- You must have exceptionally well-educated users. Our users are used to the
- idea that if it has "tmp" in the pathname, it can't be counted on to stick
- around. If they want it to survive a reboot, they put it somewhere else, or
- some of them create a subdirectory for it, but I think most of them discovered
- that empirically.
-
- Not sure what you mean by /tmp and /usr/tmp being distinct wrt filenames,
- unless it's just that they are separate directories. Each system here uses
- a single directory of its own for all of /tmp, /var/tmp, and /usr/tmp, with no
- problems at all as a result. None of the UNIX utilities or scripts that either
- came with the Suns or has been installed since creates files with the same
- name in both /tmp and /var/tmp.
-
- >If the activity and available space warrant, make /tmp a filesystem. If
- >activity and available space warrant, move /var to /usr:
-
- Actually, the point about this not working for diskless workstations was a
- good one, especially since tasks running as root need to create temporary
- files too. The procedure I use in this case, rather than put it under /usr,
- is to create a subdirectory in the server's /var/tmp area (or anywhere else
- which isn't already exported) for each workstation that needs it, export it
- to the client, and have the client mount it on /var/tmp. Note that because
- it's a subdirectory, its contents survive a crash of the server, and because
- it is separate from what the server and all the other clients are using as
- /var/tmp, there are no filename conflicts. Works very nicely.
- --
- Ruth Milner NRAO/VLA Socorro NM
- Computing Division Head rmilner@zia.aoc.nrao.edu
-