home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sun.admin
- Path: sparky!uunet!mcsun!sun4nl!utrcu1!infnews!countach!hello
- From: hello@cs.utwente.nl (Ronald Hello)
- Subject: Re: NFS mounted swap
- Message-ID: <1992Jul22.074310.19546@cs.utwente.nl>
- Sender: usenet@cs.utwente.nl
- Nntp-Posting-Host: countach
- Reply-To: hello@cs.utwente.nl
- Organization: University of Twente, Dept. of Computer Science
- References: <1431@lysator.liu.se>
- Date: Wed, 22 Jul 1992 07:43:10 GMT
- Lines: 74
-
- In article 1431@lysator.liu.se, pen@lysator.liu.se (Peter Eriksson) writes:
- rh>Anyone know what a Sun (running SunOS 4.1.1) really does when it NFS mounts
- rh>it's swap partition?
- rh>
- rh>I tried to hook up a Sun 3/80 so that it would boot from a poor little
- rh>Sun 2/120 (with an Intel "ie" ethernet interface) but when it comes down
- rh>to NFS-mounting it's root and swap partitions everythings stops. My guess
- rh>is that the Sun 2 (and it's ethernet interface) is too slow to be able to
- rh>handle the packets transmitted from the 3/80's LANCE ethernet chip.
-
- Did you look at the export permissions of the root and swap? The lines
- in /etc/exports must look something like this:
- /export/root/client -access=client,root=client
- /export/swap/client -access=client,root=client
- And did you check your bootparams?
-
- rh>
- rh>(We normally have the 3/80 hooked up to a Sun 4/380, but currently the
- rh>Sun 4/380 is sitting in another build and can't be reached directly
- rh>(there is a poor little PC which not can't handle the large NFS pakets
- rh>either on the "network" path to it)).
- rh>
- rh>So I thought.. Why not try to use the HP 9000 Series 300 we have here
- rh>(running HP-UX 8.0) for the root and swap partitions. (It has NFS).
- rh>
- rh>However, it seems SunOS does something strange when NFS-mounting
- rh>(and normally exporting) swap partitions... One exports (in /etc/exports)
- rh>a file and then the Sun client mounts this file and then does some operations
- rh>on it. It doesn't seem possible to NFS-export a file under HP-UX, only
- rh>directories. So my mind begun to wonder....
-
- Worse, HP-UX can only export partitions. And for mounting root and swap
- the client needs root-access. The antique NFS implementation that HP-UX
- uses doesn't support this, so you can't give a Sun a root and swap over
- NFS from a HP-UX machine.
-
- rh>
- rh>How does the Sun client really do it?
-
- NFS with root-access. And they use a neat trick on the swap file. They
- set up the sticky bit of the swap file on your server. Under these
- conditions it has the effect of passing the cache on the server. So
- swapping over NFS won't effect the cache on your server.
-
- rh>
- rh>Another question: Is it possible to reduce the size of the NFS packets
- rh>transmitted for the root and swap partitions? I guess one has to fiddle in
- rh>the kernel since they are mounted before it starts running. But where?
-
- No, not in the kernel. I think you can adjust it in the fstab. Otherwise you'll
- have to look into the /etc/bootparams file (or your NIS map).
-
- rh>
- rh>/Peter
- rh>
- rh>
- rh>--
- rh>Peter Eriksson pen@lysator.liu.se
- rh>Lysator Academic Computer Society ...!uunet!lysator.liu.se!pen
- rh>University of Linkoping, Sweden I'm bored. Flame me.
-
- Hope this helps,
-
- Ronald.
-
-
-
- ---
- __
- // Ronald Hello (hello@cs.utwente.nl)
- // Department of Computer Science
- // University of Twente
- // The Netherlands
-
-