]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - share/doc/smm/06.nfs/1.t
Remove $FreeBSD$: two-line nroff pattern
[FreeBSD/FreeBSD.git] / share / doc / smm / 06.nfs / 1.t
1 .\" Copyright (c) 1993
2 .\"     The Regents of the University of California.  All rights reserved.
3 .\"
4 .\" This document is derived from software contributed to Berkeley by
5 .\" Rick Macklem at The University of Guelph.
6 .\"
7 .\" Redistribution and use in source and binary forms, with or without
8 .\" modification, are permitted provided that the following conditions
9 .\" are met:
10 .\" 1. Redistributions of source code must retain the above copyright
11 .\"    notice, this list of conditions and the following disclaimer.
12 .\" 2. Redistributions in binary form must reproduce the above copyright
13 .\"    notice, this list of conditions and the following disclaimer in the
14 .\"    documentation and/or other materials provided with the distribution.
15 .\" 3. Neither the name of the University nor the names of its contributors
16 .\"    may be used to endorse or promote products derived from this software
17 .\"    without specific prior written permission.
18 .\"
19 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
20 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
23 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 .\" SUCH DAMAGE.
30 .\"
31 .\"     @(#)1.t 8.1 (Berkeley) 6/8/93
32 .\"
33 .sh 1 "NFS Implementation"
34 .pp
35 The 4.4BSD implementation of NFS and the alternate protocol nicknamed
36 Not Quite NFS (NQNFS) are kernel resident, but make use of a few system
37 daemons.
38 The kernel implementation does not use an RPC library, handling the RPC
39 request and reply messages directly in \fImbuf\fR data areas. NFS
40 interfaces to the network using
41 sockets via. the kernel interface available in
42 \fIsys/kern/uipc_syscalls.c\fR as \fIsosend(), soreceive(),\fR...
43 There are connection management routines for support of sockets for connection
44 oriented protocols and timeout/retransmit support for datagram sockets on
45 the client side.
46 For connection oriented transport protocols,
47 such as TCP/IP, there is one connection
48 for each client to server mount point that is maintained until an umount.
49 If the connection breaks, the client will attempt a reconnect with a new
50 socket.
51 The client side can operate without any daemons running, but performance
52 will be improved by running nfsiod daemons that perform read-aheads
53 and write-behinds.
54 For the server side to function, the daemons portmap, mountd and
55 nfsd must be running.
56 The mountd daemon performs two important functions.
57 .ip 1)
58 Upon startup and after a hangup signal, mountd reads the exports
59 file and pushes the export information for each local file system down
60 into the kernel via. the mount system call.
61 .ip 2)
62 Mountd handles remote mount protocol (RFC1094, Appendix A) requests.
63 .lp
64 The nfsd master daemon forks off children that enter the kernel
65 via. the nfssvc system call. The children normally remain kernel
66 resident, providing a process context for the NFS RPC servers.
67 Meanwhile, the master nfsd waits to accept new connections from clients
68 using connection oriented transport protocols and passes the new sockets down
69 into the kernel.
70 The client side mount_nfs along with portmap and
71 mountd are the only parts of the NFS subsystem that make any
72 use of the Sun RPC library.
73 .sh 1 "Mount Problems"
74 .pp
75 There are several problems that can be encountered at the time of an NFS
76 mount, ranging from an unresponsive NFS server (crashed, network partitioned
77 from client, etc.) to various interoperability problems between different
78 NFS implementations.
79 .pp
80 On the server side,
81 if the 4.4BSD NFS server will be handling any PC clients, mountd will
82 require the \fB-n\fR option to enable non-root mount request servicing.
83 Running of a pcnfsd\** daemon will also be necessary.
84 .(f
85 \** Pcnfsd is available in source form from Sun Microsystems and many
86 anonymous ftp sites.
87 .)f
88 The server side requires that the daemons
89 mountd and nfsd be running and that
90 they be registered with portmap properly.
91 If problems are encountered,
92 the safest fix is to kill all the daemons and then restart them in
93 the order portmap, mountd and nfsd.
94 Other server side problems are normally caused by problems with the format
95 of the exports file, which is covered under
96 Security and in the exports man page.
97 .pp
98 On the client side, there are several mount options useful for dealing
99 with server problems.
100 In cases where a file system is not critical for system operation, the
101 \fB-b\fR
102 mount option may be specified so that mount_nfs will go into the
103 background for a mount attempt on an unresponsive server.
104 This is useful for mounts specified in
105 \fIfstab(5)\fR,
106 so that the system will not get hung while booting doing
107 \fBmount -a\fR
108 because a file server is not responsive.
109 On the other hand, if the file system is critical to system operation, this
110 option should not be used so that the client will wait for the server to
111 come up before completing bootstrapping.
112 There are also three mount options to help deal with interoperability issues
113 with various non-BSD NFS servers. The
114 \fB-P\fR
115 option specifies that the NFS
116 client use a reserved IP port number to satisfy some servers' security
117 requirements.\**
118 .(f
119 \**Any security benefit of this is highly questionable and as
120 such the BSD server does not require a client to use a reserved port number.
121 .)f
122 The
123 \fB-c\fR
124 option stops the NFS client from doing a \fIconnect\fR on the UDP
125 socket, so that the mount works with servers that send NFS replies from
126 port numbers other than the standard 2049.\**
127 .(f
128 \**The Encore Multimax is known
129 to require this.
130 .)f
131 Finally, the
132 \fB-g=\fInum\fR
133 option sets the maximum size of the group list in the credentials passed
134 to an NFS server in every RPC request. Although RFC1057 specifies a maximum
135 size of 16 for the group list, some servers can't handle that many.
136 If a user, particularly root doing a mount,
137 keeps getting access denied from a file server, try temporarily
138 reducing the number of groups that user is in to less than 5
139 by editing /etc/group. If the user can then access the file system, slowly
140 increase the number of groups for that user until the limit is found and
141 then peg the limit there with the
142 \fB-g=\fInum\fR
143 option.
144 This implies that the server will only see the first \fInum\fR
145 groups that the user is in, which can cause some accessibility problems.
146 .pp
147 For sites that have many NFS servers, amd [Pendry93]
148 is a useful administration tool.
149 It also reduces the number of actual NFS mount points, alleviating problems
150 with commands such as df(1) that hang when any of the NFS servers is
151 unreachable.
152 .sh 1 "Dealing with Hung Servers"
153 .pp
154 There are several mount options available to help a client deal with
155 being hung waiting for response from a crashed or unreachable\** server.
156 .(f
157 \**Due to a network partitioning or similar.
158 .)f
159 By default, a hard mount will continue to try to contact the server
160 ``forever'' to complete the system call. This type of mount is appropriate
161 when processes on the client that access files in the file system do not
162 tolerate file I/O systems calls that return -1 with \fIerrno == EINTR\fR
163 and/or access to the file system is critical for normal system operation.
164 .lp
165 There are two other alternatives:
166 .ip 1)
167 A soft mount (\fB-s\fR option) retries an RPC \fIn\fR
168 times and then the corresponding
169 system call returns -1 with errno set to EINTR.
170 For TCP transport, the actual RPC request is not retransmitted, but the
171 timeout intervals waiting for a reply from the server are done
172 in the same manner as UDP for this purpose.
173 The problem with this type of mount is that most applications do not
174 expect an EINTR error return from file I/O system calls (since it never
175 occurs for a local file system) and get confused by the error return
176 from the I/O system call.
177 The option
178 \fB-x=\fInum\fR
179 is used to set the RPC retry limit and if set too low, the error returns
180 will start occurring whenever the NFS server is slow due to heavy load.
181 Alternately, a large retry limit can result in a process hung for a long
182 time, due to a crashed server or network partitioning.
183 .ip 2)
184 An interruptible mount (\fB-i\fR option) checks to see if a termination signal
185 is pending for the process when waiting for server response and if it is,
186 the I/O system call posts an EINTR. Normally this results in the process
187 being terminated by the signal when returning from the system call.
188 This feature allows you to ``^C'' out of processes that are hung
189 due to unresponsive servers.
190 The problem with this approach is that signals that are caught by
191 a process are not recognized as termination signals
192 and the process will remain hung.\**
193 .(f
194 \**Unfortunately, there are also some resource allocation situations in the
195 BSD kernel where the termination signal will be ignored and the process
196 will not terminate.
197 .)f
198 .sh 1 "RPC Transport Issues"
199 .pp
200 The NFS Version 2 protocol runs over UDP/IP transport by
201 sending each Sun Remote Procedure Call (RFC1057)
202 request/reply message in a single UDP
203 datagram. Since UDP does not guarantee datagram delivery, the
204 Remote Procedure Call (RPC) layer
205 times out and retransmits an RPC request if
206 no RPC reply has been received. Since this round trip timeout (RTO) value
207 is for the entire RPC operation, including RPC message transmission to the
208 server, queuing at the server for an nfsd, performing the RPC and
209 sending the RPC reply message back to the client, it can be highly variable
210 for even a moderately loaded NFS server.
211 As a result, the RTO interval must be a conservation (large) estimate, in
212 order to avoid extraneous RPC request retransmits.\**
213 .(f
214 \**At best, an extraneous RPC request retransmit increases
215 the load on the server and at worst can result in damaged files
216 on the server when non-idempotent RPCs are redone [Juszczak89].
217 .)f
218 Also, with an 8Kbyte read/write data size
219 (the default), the read/write reply/request will be an 8+Kbyte UDP datagram
220 that must normally be fragmented at the IP layer for transmission.\**
221 .(f
222 \**6 IP fragments for an Ethernet,
223 which has a maximum transmission unit of 1500bytes.
224 .)f
225 For IP fragments to be successfully reassembled into
226 the IP datagram at the receive end, all
227 fragments must be received within a fairly short ``time to live''.
228 If one fragment is lost/damaged in transit,
229 the entire RPC must be retransmitted and redone.
230 This problem can be exaggerated by a network interface on the receiver that
231 cannot handle the reception of back to back network packets. [Kent87a]
232 .pp
233 There are several tuning mount
234 options on the client side that can prove useful when trying to
235 alleviate performance problems related to UDP RPC transport.
236 The options
237 \fB-r=\fInum\fR
238 and
239 \fB-w=\fInum\fR
240 specify the maximum read or write data size respectively.
241 The size \fInum\fR
242 should be a power of 2 (4K, 2K, 1K) and adjusted downward from the
243 maximum of 8Kbytes
244 whenever IP fragmentation is causing problems. The best indicator of
245 IP fragmentation problems is a significant number of
246 \fIfragments dropped after timeout\fR
247 reported by the \fIip:\fR section of a \fBnetstat -s\fR
248 command on either the client or server.
249 Of course, if the fragments are being dropped at the server, it can be
250 fun figuring out which client(s) are involved.
251 The most likely candidates are clients that are not
252 on the same local area network as the
253 server or have network interfaces that do not receive several
254 back to back network packets properly.
255 .pp
256 By default, the 4.4BSD NFS client dynamically estimates the retransmit
257 timeout interval for the RPC and this appears to work reasonably well for
258 many environments. However, the
259 \fB-d\fR
260 flag can be specified to turn off
261 the dynamic estimation of retransmit timeout, so that the client will
262 use a static initial timeout interval.\**
263 .(f
264 \**After the first retransmit timeout, the initial interval is backed off
265 exponentially.
266 .)f
267 The
268 \fB-t=\fInum\fR
269 option can be used with
270 \fB-d\fR
271 to set the initial timeout interval to other than the default of 2 seconds.
272 The best indicator that dynamic estimation should be turned off would
273 be a significant number\** in the \fIX Replies\fR field and a
274 .(f
275 \**Even 0.1% of the total RPCs is probably significant.
276 .)f
277 large number in the \fIRetries\fR field
278 in the \fIRpc Info:\fR section as reported
279 by the \fBnfsstat\fR command.
280 On the server, there would be significant numbers of \fIInprog\fR recent
281 request cache hits in the \fIServer Cache Stats:\fR section as reported
282 by the \fBnfsstat\fR command, when run on the server.
283 .pp
284 The tradeoff is that a smaller timeout interval results in a better
285 average RPC response time, but increases the risk of extraneous retries
286 that in turn increase server load and the possibility of damaged files
287 on the server. It is probably best to err on the safe side and use a large
288 (>= 2sec) fixed timeout if the dynamic retransmit timeout estimation
289 seems to be causing problems.
290 .pp
291 An alternative to all this fiddling is to run NFS over TCP transport instead
292 of UDP.
293 Since the 4.4BSD TCP implementation provides reliable
294 delivery with congestion control, it avoids all of the above problems.
295 It also permits the use of read and write data sizes greater than the 8Kbyte
296 limit for UDP transport.\**
297 .(f
298 \**Read/write data sizes greater than 8Kbytes will not normally improve
299 performance unless the kernel constant MAXBSIZE is increased and the
300 file system on the server has a block size greater than 8Kbytes.
301 .)f
302 NFS over TCP usually delivers comparable to significantly better performance
303 than NFS over UDP
304 unless the client or server processor runs at less than 5-10MIPS. For a
305 slow processor, the extra CPU overhead of using TCP transport will become
306 significant and TCP transport may only be useful when the client
307 to server interconnect traverses congested gateways.
308 The main problem with using TCP transport is that it is only supported
309 between BSD clients and servers.\**
310 .(f
311 \**There are rumors of commercial NFS over TCP implementations on the horizon
312 and these may well be worth exploring.
313 .)f
314 .sh 1 "Other Tuning Tricks"
315 .pp
316 Another mount option that may improve performance over
317 certain network interconnects is \fB-a=\fInum\fR
318 which sets the number of blocks that the system will
319 attempt to read-ahead during sequential reading of a file. The default value
320 of 1 seems to be appropriate for most situations, but a larger value might
321 achieve better performance for some environments, such as a mount to a server
322 across a ``high bandwidth * round trip delay'' interconnect.
323 .pp
324 For the adventurous, playing with the size of the buffer cache
325 can also improve performance for some environments that use NFS heavily.
326 Under some workloads, a buffer cache of 4-6Mbytes can result in significant
327 performance improvements over 1-2Mbytes, both in client side system call
328 response time and reduced server RPC load.
329 The buffer cache size defaults to 10% of physical memory,
330 but this can be overridden by specifying the BUFPAGES option
331 in the machine's config file.\**
332 .(f
333 BUFPAGES is the number of physical machine pages allocated to the buffer cache.
334 ie. BUFPAGES * NBPG = buffer cache size in bytes
335 .)f
336 When increasing the size of BUFPAGES, it is also advisable to increase the
337 number of buffers NBUF by a corresponding amount.
338 Note that there is a tradeoff of memory allocated to the buffer cache versus
339 available for paging, which implies that making the buffer cache larger
340 will increase paging rate, with possibly disastrous results.
341 .sh 1 "Security Issues"
342 .pp
343 When a machine is running an NFS server it opens up a great big security hole.
344 For ordinary NFS, the server receives client credentials
345 in the RPC request as a user id
346 and a list of group ids and trusts them to be authentic!
347 The only tool available to restrict remote access to
348 file systems with is the exports(5) file,
349 so file systems should be exported with great care.
350 The exports file is read by mountd upon startup and after a hangup signal
351 is posted for it and then as much of the access specifications as possible are
352 pushed down into the kernel for use by the nfsd(s).
353 The trick here is that the kernel information is stored on a per
354 local file system mount point and client host address basis and cannot refer to
355 individual directories within the local server file system.
356 It is best to think of the exports file as referring to the various local
357 file systems and not just directory paths as mount points.
358 A local file system may be exported to a specific host, all hosts that
359 match a subnet mask or all other hosts (the world). The latter is very
360 dangerous and should only be used for public information. It is also
361 strongly recommended that file systems exported to ``the world'' be exported
362 read-only.
363 For each host or group of hosts, the file system can be exported read-only or
364 read/write.
365 You can also define one of three client user id to server credential
366 mappings to help control access.
367 Root (user id == 0) can be mapped to some default credentials while all other
368 user ids are accepted as given.
369 If the default credentials for user id equal zero
370 are root, then there is essentially no remapping.
371 Most NFS file systems are exported this way, most commonly mapping
372 user id == 0 to the credentials for the user nobody.
373 Since the client user id and group id list is used unchanged on the server
374 (except for root), this also implies that
375 the user id and group id space must be common between the client and server.
376 (ie. user id N on the client must refer to the same user on the server)
377 All user ids can be mapped to a default set of credentials, typically that of
378 the user nobody. This essentially gives world access to all
379 users on the corresponding hosts.
380 .pp
381 As well as the standard NFS Version 2 protocol (RFC1094) implementation, BSD
382 systems can use a variant of the protocol called Not Quite NFS (NQNFS) that
383 supports a variety of protocol extensions.
384 This protocol uses 64bit file offsets
385 and sizes, an \fIaccess rpc\fR, an \fIappend\fR option on the write rpc
386 and extended file attributes to support 4.4BSD file system functionality
387 more fully.
388 It also makes use of a variant of short term
389 \fIleases\fR [Gray89] with delayed write client caching,
390 in an effort to provide full cache consistency and better performance.
391 This protocol is available between 4.4BSD systems only and is used when
392 the \fB-q\fR mount option is specified.
393 It can be used with any of the aforementioned options for NFS, such as TCP
394 transport (\fB-T\fR).
395 Although this protocol is experimental, it is recommended over NFS for
396 mounts between 4.4BSD systems.\**
397 .(f
398 \**I would appreciate email from anyone who can provide
399 NFS vs. NQNFS performance measurements,
400 particularly fast clients, many clients or over an internetwork
401 connection with a large ``bandwidth * RTT'' product.
402 .)f
403 .sh 1 "Monitoring NFS Activity"
404 .pp
405 The basic command for monitoring NFS activity on clients and servers is
406 nfsstat. It reports cumulative statistics of various NFS activities,
407 such as counts of the various different RPCs and cache hit rates on the client
408 and server. Of particular interest on the server are the fields in the
409 \fIServer Cache Stats:\fR section, which gives numbers for RPC retries received
410 in the first three fields and total RPCs in the fourth. The first three fields
411 should remain a very small percentage of the total. If not, it
412 would indicate one or more clients doing retries too aggressively and the fix
413 would be to isolate these clients,
414 disable the dynamic RTO estimation on them and
415 make their initial timeout interval a conservative (ie. large) value.
416 .pp
417 On the client side, the fields in the \fIRpc Info:\fR section are of particular
418 interest, as they give an overall picture of NFS activity.
419 The \fITimedOut\fR field is the number of I/O system calls that returned -1
420 for ``soft'' mounts and can be reduced
421 by increasing the retry limit or changing
422 the mount type to ``intr'' or ``hard''.
423 The \fIInvalid\fR field is a count of trashed RPC replies that are received
424 and should remain zero.\**
425 .(f
426 \**Some NFS implementations run with UDP checksums disabled, so garbage RPC
427 messages can be received.
428 .)f
429 The \fIX Replies\fR field counts the number of repeated RPC replies received
430 from the server and is a clear indication of a too aggressive RTO estimate.
431 Unfortunately, a good NFS server implementation will use a ``recent request
432 cache'' [Juszczak89] that will suppress the extraneous replies.
433 A large value for \fIRetries\fR indicates a problem, but
434 it could be any of:
435 .ip \(bu
436 a too aggressive RTO estimate
437 .ip \(bu
438 an overloaded NFS server
439 .ip \(bu
440 IP fragments being dropped (gateway, client or server)
441 .lp
442 and requires further investigation.
443 The \fIRequests\fR field is the total count of RPCs done on all servers.
444 .pp
445 The \fBnetstat -s\fR comes in useful during investigation of RPC transport
446 problems.
447 The field \fIfragments dropped after timeout\fR in
448 the \fIip:\fR section indicates IP fragments are
449 being lost and a significant number of these occurring indicates that the
450 use of TCP transport or a smaller read/write data size is in order.
451 A significant number of \fIbad checksums\fR reported in the \fIudp:\fR
452 section would suggest network problems of a more generic sort.
453 (cabling, transceiver or network hardware interface problems or similar)
454 .pp
455 There is a RPC activity logging facility for both the client and
456 server side in the kernel.
457 When logging is enabled by setting the kernel variable nfsrtton to
458 one, the logs in the kernel structures nfsrtt (for the client side)
459 and nfsdrt (for the server side) are updated upon the completion
460 of each RPC in a circular manner.
461 The pos element of the structure is the index of the next element
462 of the log array to be updated.
463 In other words, elements of the log array from \fIlog\fR[pos] to
464 \fIlog\fR[pos - 1] are in chronological order.
465 The include file <sys/nfsrtt.h> should be consulted for details on the
466 fields in the two log structures.\**
467 .(f
468 \**Unfortunately, a monitoring tool that uses these logs is still in the
469 planning (dreaming) stage.
470 .)f
471 .sh 1 "Diskless Client Support"
472 .pp
473 The NFS client does include kernel support for diskless/dataless operation
474 where the root file system and optionally the swap area is remote NFS mounted.
475 A diskless/dataless client is configured using a version of the
476 ``swapkernel.c'' file as provided in the directory \fIcontrib/diskless.nfs\fR.
477 If the swap device == NODEV, it specifies an NFS mounted swap area and should
478 be configured the same size as set up by diskless_setup when run on the server.
479 This file must be put in the \fIsys/compile/<machine_name>\fR kernel build
480 directory after the config command has been run, since config does
481 not know about specifying NFS root and swap areas.
482 The kernel variable mountroot must be set to nfs_mountroot instead of
483 ffs_mountroot and the kernel structure nfs_diskless must be filled in
484 properly.
485 There are some primitive system administration tools in the \fIcontrib/diskless.nfs\fR directory to assist in filling in
486 the nfs_diskless structure and in setting up an NFS server for
487 diskless/dataless clients.
488 The tools were designed to provide a bare bones capability, to allow maximum
489 flexibility when setting up different servers.
490 .lp
491 The tools are as follows:
492 .ip \(bu
493 diskless_offset.c - This little program reads a ``kernel'' object file and
494 writes the file byte offset of the nfs_diskless structure in it to
495 standard out. It was kept separate because it sometimes has to
496 be compiled/linked in funny ways depending on the client architecture.
497 (See the comment at the beginning of it.)
498 .ip \(bu
499 diskless_setup.c - This program is run on the server and sets up files for a
500 given client. It mostly just fills in an nfs_diskless structure and
501 writes it out to either the "kernel" file or a separate file called
502 /var/diskless/setup.<official-hostname>
503 .ip \(bu
504 diskless_boot.c - There are two functions in here that may be used
505 by a bootstrap server such as tftpd to permit sharing of the ``kernel''
506 object file for similar clients. This saves disk space on the bootstrap
507 server and simplify organization, but are not critical for correct operation.
508 They read the ``kernel''
509 file, but optionally fill in the nfs_diskless structure from a
510 separate "setup.<official-hostname>" file so that there is only
511 one copy of "kernel" for all similar (same arch etc.) clients.
512 These functions use a text file called
513 /var/diskless/boot.<official-hostname> to control the netboot.
514 .lp
515 The basic setup steps are:
516 .ip \(bu
517 make a "kernel" for the client(s) with mountroot() == nfs_mountroot()
518 and swdevt[0].sw_dev == NODEV if it is to do nfs swapping as well
519 (See the same swapkernel.c file)
520 .ip \(bu
521 run diskless_offset on the kernel file to find out the byte offset
522 of the nfs_diskless structure
523 .ip \(bu
524 Run diskless_setup on the server to set up the server and fill in the
525 nfs_diskless structure for that client.
526 The nfs_diskless structure can either be written into the
527 kernel file (the -x option) or
528 saved in /var/diskless/setup.<official-hostname>.
529 .ip \(bu
530 Set up the bootstrap server. If the nfs_diskless structure was written into
531 the ``kernel'' file, any vanilla bootstrap protocol such as bootp/tftp can
532 be used. If the bootstrap server has been modified to use the functions in
533 diskless_boot.c, then a
534 file called /var/diskless/boot.<official-hostname>
535 must be created.
536 It is simply a two line text file, where the first line is the pathname
537 of the correct ``kernel'' file and the second line has the pathname of
538 the nfs_diskless structure file and its byte offset in it.
539 For example:
540 .br
541         /var/diskless/kernel.pmax
542 .br
543         /var/diskless/setup.rickers.cis.uoguelph.ca 642308
544 .br
545 .ip \(bu
546 Create a /var subtree for each client in an appropriate place on the server,
547 such as /var/diskless/var/<client-hostname>/...
548 By using the <client-hostname> to differentiate /var for each host,
549 /etc/rc can be modified to mount the correct /var from the server.