Commit | Line | Data |
---|---|---|
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 | |
21 | diskless_setup \- set up a server for diskless/dataless clients | |
22 | .SH SYNOPSIS | |
23 | .B /sbin/diskless_setup | |
24 | .B \-l | |
25 | interface | |
26 | .B \-r | |
27 | rdir | |
28 | [ | |
29 | .B \-o | |
30 | ] | |
31 | [ | |
32 | .B \-s | |
33 | size | |
34 | ] | |
35 | [ | |
36 | .B \-h | |
37 | addr | |
38 | ] | |
39 | [ | |
40 | .B \-m | |
41 | netmask | |
42 | ] | |
43 | [ | |
44 | .B \-a | |
45 | srv_addr | |
46 | ] | |
47 | [ | |
48 | .B \-g | |
49 | gateway | |
50 | ] | |
51 | [ | |
52 | .B \-x | |
53 | vmunix:offset | |
54 | ] | |
55 | client | |
56 | .SH DESCRIPTION | |
57 | .I Diskless_setup | |
58 | sets up files on a server to handle a diskless or dataless client workstation. | |
59 | Based on the arguments, it fills in all the fields of an nfs_diskless structure | |
60 | for that client and saves it in either a separate file or in the "vmunix" | |
61 | executable image for that client at the appropriate byte offset. | |
62 | See | |
63 | .IR diskless (8) | |
64 | for an overview of running diskless or dataless clients. | |
65 | .IP "\-l interface" | |
66 | The name of the network interface to be configured on the client at boot time | |
67 | so that it can communicate with this server. (eg. le0) | |
68 | .IP "\-r rdir" | |
69 | The pathname of the root directory of the root file system for this client. | |
70 | .IP "\-o" | |
71 | Write the nfs_diskless structure to standard out so it can be piped to another | |
72 | process in a shell script. | |
73 | .IP "\-s size" | |
74 | This client is to run diskless (ie. swapping to this server), so create a | |
75 | swapfile of \fIsize\fR 512 byte blocks for this client. | |
76 | .IP "\-h addr" | |
77 | The internet address for the client's net interface specified with \-l. | |
78 | (The default is the first address returned by | |
79 | .IR gethostbyname (3) | |
80 | for this client host.) | |
81 | .IP "\-m netmask" | |
82 | The 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" | |
85 | The internet address of this server. | |
86 | (The default is the first address returned by | |
87 | .IR gethostbyname (3) | |
88 | for this server.) | |
89 | .IP "\-g gateway" | |
90 | The default gateway for the client to use to get to this server. This should | |
91 | only 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" | |
94 | Write the nfs_diskless data structure into the "vmunix" file specified at the | |
95 | specified byte \fIoffset\fR instead of a separate file. The executable file and byte | |
96 | offset are specified separated by a colon. (eg. vmunix.pmax:654322) | |
97 | .SH | |
98 | Examples | |
99 | .sp | |
100 | diskless_setup -l le0 -r /diskless/pmax_root blondie | |
101 | .sp | |
102 | Setup the client "blondie" as a dataless workstation (ie. swapping locally) | |
103 | communicating with this server via. "le0" and using the root file system | |
104 | at /diskless/pmax_root. Blondie is attached to the same LAN as this server | |
105 | and the first internet addresses returned by | |
106 | .IR gethostbyname (3) | |
107 | are appropriate for both the client and server addresses. | |
108 | .sp | |
109 | diskless_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 | |
112 | Setup the client "freddy" as a dataless workstation communicating with the | |
113 | server via. "wd0" and using the root file system at /diskless/i386_root. | |
114 | Freddy's internet address for "wd0" is 131.104.48.77 with a subnet mask | |
115 | of 255.255.255.0. The filled in nfs_diskless structure is to be written | |
116 | into freddy's executable kernel called "vmunix.freddy" at byte offset | |
117 | 345672. (the byte offset is normally found using | |
118 | .IR diskless_offset (8) | |
119 | ) | |
120 | .sp | |
121 | diskless_setup -l qe0 -r /diskless/uvax_root -s 20000 -a 131.104.48.8 bob | |
122 | .sp | |
123 | Setup the client "bob" as a diskless (ie. swapping to the server) | |
124 | workstation ccommunicating with this server via. "qe0" and using a root | |
125 | file system at /diskless/uvax_root. | |
126 | The swap file on this server is 20,000 blocks and the address w.r.t. "bob" | |
127 | of this server is 131.104.48.8. | |
128 | .SH FILES | |
129 | /var/diskless/setup.<client_hostname> | |
130 | output of this command | |
131 | .br | |
132 | /var/diskless/swapfiles/swap.<client_hostname> | |
133 | swap 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 | |
140 | There is no capability of setting up diskless clients with remote swapping | |
141 | on a separate server than the root file system. |