home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / sun / admin / 4858 < prev    next >
Encoding:
Text File  |  1992-07-21  |  3.3 KB  |  88 lines

  1. Newsgroups: comp.sys.sun.admin
  2. Path: sparky!uunet!mcsun!sun4nl!utrcu1!infnews!countach!hello
  3. From: hello@cs.utwente.nl (Ronald Hello)
  4. Subject: Re: NFS mounted swap
  5. Message-ID: <1992Jul22.074310.19546@cs.utwente.nl>
  6. Sender: usenet@cs.utwente.nl
  7. Nntp-Posting-Host: countach
  8. Reply-To: hello@cs.utwente.nl
  9. Organization: University of Twente, Dept. of Computer Science
  10. References: <1431@lysator.liu.se>
  11. Date: Wed, 22 Jul 1992 07:43:10 GMT
  12. Lines: 74
  13.  
  14. In article 1431@lysator.liu.se, pen@lysator.liu.se (Peter Eriksson) writes:
  15. rh>Anyone know what a Sun (running SunOS 4.1.1) really does when it NFS mounts
  16. rh>it's swap partition?
  17. rh>
  18. rh>I tried to hook up a Sun 3/80 so that it would boot from a poor little
  19. rh>Sun 2/120 (with an Intel "ie" ethernet interface) but when it comes down
  20. rh>to NFS-mounting it's root and swap partitions everythings stops. My guess
  21. rh>is that the Sun 2 (and it's ethernet interface) is too slow to be able to
  22. rh>handle the packets transmitted from the 3/80's LANCE ethernet chip.
  23.  
  24. Did you look at the export permissions of the root and swap? The lines
  25. in /etc/exports must look something like this:
  26. /export/root/client    -access=client,root=client
  27. /export/swap/client    -access=client,root=client
  28. And did you check your bootparams?
  29.  
  30. rh>
  31. rh>(We normally have the 3/80 hooked up to a Sun 4/380, but currently the
  32. rh>Sun 4/380 is sitting in another build and can't be reached directly
  33. rh>(there is a poor little PC which not can't handle the large NFS pakets
  34. rh>either on the "network" path to it)).
  35. rh>
  36. rh>So I thought.. Why not try to use the HP 9000 Series 300 we have here
  37. rh>(running HP-UX 8.0) for the root and swap partitions. (It has NFS).
  38. rh>
  39. rh>However, it seems SunOS does something strange when NFS-mounting
  40. rh>(and normally exporting) swap partitions... One exports (in /etc/exports)
  41. rh>a file and then the Sun client mounts this file and then does some operations
  42. rh>on it. It doesn't seem possible to NFS-export a file under HP-UX, only
  43. rh>directories. So my mind begun to wonder.... 
  44.  
  45. Worse, HP-UX can only export partitions. And for mounting root and swap
  46. the client needs root-access. The antique NFS implementation that HP-UX
  47. uses doesn't support this, so you can't give a Sun a root and swap over
  48. NFS from a HP-UX machine.
  49.  
  50. rh>
  51. rh>How does the Sun client really do it? 
  52.  
  53. NFS with root-access. And they use a neat trick on the swap file. They
  54. set up the sticky bit of the swap file on your server. Under these
  55. conditions it has the effect of passing the cache on the server. So
  56. swapping over NFS won't effect the cache on your server.
  57.  
  58. rh>
  59. rh>Another question: Is it possible to reduce the size of the NFS packets
  60. rh>transmitted for the root and swap partitions? I guess one has to fiddle in
  61. rh>the kernel since they are mounted before it starts running. But where?
  62.  
  63. No, not in the kernel. I think you can adjust it in the fstab. Otherwise you'll
  64. have to look into the /etc/bootparams file (or your NIS map).
  65.  
  66. rh>
  67. rh>/Peter
  68. rh>
  69. rh>
  70. rh>--
  71. rh>Peter Eriksson                                              pen@lysator.liu.se
  72. rh>Lysator Academic Computer Society                 ...!uunet!lysator.liu.se!pen
  73. rh>University of Linkoping, Sweden                           I'm bored. Flame me.
  74.  
  75. Hope this helps,
  76.  
  77. Ronald.
  78.  
  79.  
  80.  
  81. ---
  82. __
  83. // Ronald Hello  (hello@cs.utwente.nl)
  84. // Department of Computer Science
  85. // University of Twente
  86. // The Netherlands
  87.  
  88.