BSD 4_4 release
[unix-history] / usr / src / contrib / diskless.nfs / diskless_setup.8
CommitLineData
ad787160
C
1.\" Copyright (c) 1989 The Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms are permitted
5.\" provided that the above copyright notice and this paragraph are
6.\" duplicated in all such forms and that any documentation,
7.\" advertising materials, and other materials related to such
8.\" distribution and use acknowledge that the software was developed
9.\" by the University of California, Berkeley. The name of the
10.\" University may not be used to endorse or promote products derived
11.\" from this software without specific prior written permission.
12.\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
13.\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
14.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
15.\"
16.\" @(#)diskless_setup.8 5.2 (Berkeley) 01/21/92
17.\"
18.TH DISKLESS_SETUP 8 "January 21, 1992"
19.UC 7
20.SH NAME
21diskless_setup \- set up a server for diskless/dataless clients
22.SH SYNOPSIS
23.B /sbin/diskless_setup
24.B \-l
25interface
26.B \-r
27rdir
28[
29.B \-o
30]
31[
32.B \-s
33size
34]
35[
36.B \-h
37addr
38]
39[
40.B \-m
41netmask
42]
43[
44.B \-a
45srv_addr
46]
47[
48.B \-g
49gateway
50]
51[
52.B \-x
53vmunix:offset
54]
55client
56.SH DESCRIPTION
57.I Diskless_setup
58sets up files on a server to handle a diskless or dataless client workstation.
59Based on the arguments, it fills in all the fields of an nfs_diskless structure
60for that client and saves it in either a separate file or in the "vmunix"
61executable image for that client at the appropriate byte offset.
62See
63.IR diskless (8)
64for an overview of running diskless or dataless clients.
65.IP "\-l interface"
66The name of the network interface to be configured on the client at boot time
67so that it can communicate with this server. (eg. le0)
68.IP "\-r rdir"
69The pathname of the root directory of the root file system for this client.
70.IP "\-o"
71Write the nfs_diskless structure to standard out so it can be piped to another
72process in a shell script.
73.IP "\-s size"
74This client is to run diskless (ie. swapping to this server), so create a
75swapfile of \fIsize\fR 512 byte blocks for this client.
76.IP "\-h addr"
77The internet address for the client's net interface specified with \-l.
78(The default is the first address returned by
79.IR gethostbyname (3)
80for this client host.)
81.IP "\-m netmask"
82The subnet mask for the client's net interface specified with \-l.
83(The default value is determined by the interface's address class.)
84.IP "\-a srv_addr"
85The internet address of this server.
86(The default is the first address returned by
87.IR gethostbyname (3)
88for this server.)
89.IP "\-g gateway"
90The default gateway for the client to use to get to this server. This should
91only be specified if the client is not on the same LAN as the server.
92(For performance reasons, this should be avoided whereever possible.)
93.IP "\-x vmunix:offset"
94Write the nfs_diskless data structure into the "vmunix" file specified at the
95specified byte \fIoffset\fR instead of a separate file. The executable file and byte
96offset are specified separated by a colon. (eg. vmunix.pmax:654322)
97.SH
98Examples
99.sp
100diskless_setup -l le0 -r /diskless/pmax_root blondie
101.sp
102Setup the client "blondie" as a dataless workstation (ie. swapping locally)
103communicating with this server via. "le0" and using the root file system
104at /diskless/pmax_root. Blondie is attached to the same LAN as this server
105and the first internet addresses returned by
106.IR gethostbyname (3)
107are appropriate for both the client and server addresses.
108.sp
109diskless_setup -l wd0 -r /diskless/i386_root -h 131.104.48.77 -m 255.255.255.0
110-x vmunix.freddy:345672 freddy
111.sp
112Setup the client "freddy" as a dataless workstation communicating with the
113server via. "wd0" and using the root file system at /diskless/i386_root.
114Freddy's internet address for "wd0" is 131.104.48.77 with a subnet mask
115of 255.255.255.0. The filled in nfs_diskless structure is to be written
116into freddy's executable kernel called "vmunix.freddy" at byte offset
117345672. (the byte offset is normally found using
118.IR diskless_offset (8)
119)
120.sp
121diskless_setup -l qe0 -r /diskless/uvax_root -s 20000 -a 131.104.48.8 bob
122.sp
123Setup the client "bob" as a diskless (ie. swapping to the server)
124workstation ccommunicating with this server via. "qe0" and using a root
125file system at /diskless/uvax_root.
126The swap file on this server is 20,000 blocks and the address w.r.t. "bob"
127of this server is 131.104.48.8.
128.SH FILES
129/var/diskless/setup.<client_hostname>
130output of this command
131.br
132/var/diskless/swapfiles/swap.<client_hostname>
133swap file for client
134.SH SEE ALSO
135.IR diskless (8)
136.IR diskless_offset (8)
137.IR diskless_boot (3)
138.IR diskless_boot (5)
139.SH BUGS
140There is no capability of setting up diskless clients with remote swapping
141on a separate server than the root file system.