home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / sun / apps / 3109 < prev    next >
Encoding:
Text File  |  1993-01-28  |  3.3 KB  |  64 lines

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