1 |
Dear list, |
2 |
|
3 |
I posted this on gentoo forums but maybe you guys could help me out as |
4 |
well. So I wanted to play around with building my own diskless node. |
5 |
Yes, I know there are easier ways to do this. Automated tools like |
6 |
Caos Linux, etc. etc. Anyway, I wanted to use gentoo and learn from |
7 |
the ground up. So I booted a box via pxe, tftp and dhcp. it boots--- |
8 |
but can't seem to find NFS. |
9 |
|
10 |
And yes, i've googled. none have worked. I don't know what I'm missing. |
11 |
|
12 |
I get this: |
13 |
|
14 |
rpcbind: server 192.168.2.1 not responding, timed out |
15 |
Root-NFS: Unable to get nfsd port number from server, using default |
16 |
Looking up port of RPC 100005/1 on 192.168.2.1 |
17 |
rpcbind: server 192.168.2.1 not responding, timed out |
18 |
Root-NFS: Unable to get mountd port number from server, using default |
19 |
Root-NFS: Server returned error -5 while mounting /diskless/192.168.2.11 |
20 |
VFS: Unable to mount root fs via NFS, tryi9ng floppy. |
21 |
VFS: Cannot open root device "nfs" or unknown-block(2,0) |
22 |
Kernel Panic - not syncing: VFS unable to mount root fs on unknown- |
23 |
block(2,0) |
24 |
|
25 |
Both client and server have root nfs turned on it their respective |
26 |
kernel. |
27 |
|
28 |
i have turned off the firewall on the server and still get the same |
29 |
error. |
30 |
|
31 |
pxelinux.cfg is this: |
32 |
|
33 |
DEFAULT /kernel8 |
34 |
APPEND root=/dev/nfs rw nfsroot=192.168.2.1:/diskless/192.168.2.11 |
35 |
init=sbin/init |
36 |
|
37 |
this is rpcinfo: |
38 |
|
39 |
talon dhcp # rpcinfo -p 192.168.2.1 |
40 |
program vers proto port |
41 |
100000 4 tcp 111 portmapper |
42 |
100000 3 tcp 111 portmapper |
43 |
100000 2 tcp 111 portmapper |
44 |
100000 4 udp 111 portmapper |
45 |
100000 3 udp 111 portmapper |
46 |
100000 2 udp 111 portmapper |
47 |
100024 1 udp 45975 status |
48 |
100024 1 tcp 57882 status |
49 |
100005 1 udp 57290 mountd |
50 |
100005 1 tcp 50765 mountd |
51 |
100005 2 udp 57290 mountd |
52 |
100005 2 tcp 50765 mountd |
53 |
100005 3 udp 57290 mountd |
54 |
100005 3 tcp 50765 mountd |
55 |
100003 2 udp 2049 nfs |
56 |
100003 3 udp 2049 nfs |
57 |
100021 1 udp 57739 nlockmgr |
58 |
100021 3 udp 57739 nlockmgr |
59 |
100021 4 udp 57739 nlockmgr |
60 |
100021 1 tcp 45392 nlockmgr |
61 |
100021 3 tcp 45392 nlockmgr |
62 |
100021 4 tcp 45392 nlockmgr |
63 |
100003 2 tcp 2049 nfs |
64 |
100003 3 tcp 2049 nfs |
65 |
|
66 |
ps -aef | grep rpc is this: |
67 |
|
68 |
alon conf.d # ps -aef | grep rpc |
69 |
root 1101 2 0 18:14 ? 00:00:00 [rpciod/0] |
70 |
root 1102 2 0 18:14 ? 00:00:00 [rpciod/1] |
71 |
root 8332 1 0 18:15 ? 00:00:00 /sbin/rpcbind |
72 |
nobody 8356 1 0 18:15 ? 00:00:00 /sbin/rpc.statd --no- |
73 |
notify |
74 |
root 8379 1 0 18:15 ? 00:00:00 /usr/sbin/rpc.mountd |
75 |
root 8587 8560 0 18:22 pts/0 00:00:00 grep --colour=auto rpc |
76 |
|
77 |
tcpdump: |
78 |
|
79 |
17), length 57) master.talon.11978 > node01.talon.57100: UDP, length 29 |
80 |
17:39:47.683582 IP (tos 0x0, ttl 64, id 53556, offset 0, flags [DF], |
81 |
proto UDP (17), length 52) master.talon.11974 > node01.talon.57099: |
82 |
UDP, length 24 |
83 |
17:39:48.451700 IP (tos 0x0, ttl 64, id 54326, offset 0, flags [DF], |
84 |
proto UDP (17), length 57) master.talon.11976 > node01.talon.57100: |
85 |
UDP, length 29 |
86 |
17:39:49.665576 IP (tos 0x0, ttl 64, id 63547, offset 0, flags [DF], |
87 |
proto UDP (17), length 57) master.talon.11978 > node01.talon.57100: |
88 |
UDP, length 29 |
89 |
17:39:49.762700 IP (tos 0x0, ttl 64, id 55637, offset 0, flags [DF], |
90 |
proto UDP (17), length 57) master.talon.11975 > node01.talon.57100: |
91 |
UDP, length 29 |
92 |
17:39:50.661534 arp who-has node01.talon tell master.talon |
93 |
17:39:51.662530 arp who-has node01.talon tell master.talon |
94 |
17:39:52.401575 IP (tos 0x0, ttl 64, id 58276, offset 0, flags [DF], |
95 |
proto UDP (17), length 57) master.talon.11977 > node01.talon.57100: |
96 |
UDP, length 29 |
97 |
17:39:52.662526 arp who-has node01.talon tell master.talon |
98 |
17:39:54.471660 arp who-has node01.talon tell master.talon |
99 |
|
100 |
arp--- that's the point where kernel panic occurs. |
101 |
|
102 |
this is my /etc/exports file: |
103 |
|
104 |
#/etc/exports: NFS file systems being exported. See exports(5). |
105 |
/diskless/192.168.2.11 |
106 |
*(rw,no_root_squash,no_all_squash,no_subtree_check) |
107 |
/opt 192.168.2.0/24(ro,no_root_squash,no_all_squash,no_subtree_check) |
108 |
/usr 192.168.2.0/24(ro,no_root_squash,no_all_squash,no_subtree_check) |
109 |
/home 192.168.2.0/24(rw,no_root_squash,no_all_squash,no_subtree_check) |
110 |
|
111 |
/var/log |
112 |
192.168.2.11(rw,no_root_squash,no_all_squash,no_subtree_check) |
113 |
|
114 |
my dhcp configuration is this: |
115 |
|
116 |
# my dhcpd.conf for diskless clients |
117 |
allow booting; |
118 |
#allow bootp; |
119 |
|
120 |
#tftp |
121 |
next-server 192.168.2.1; |
122 |
#option root-path "/diskless/192.168.2.11"; |
123 |
|
124 |
option space PXE; |
125 |
option PXE.mtftp-ip code 1 = ip-address; |
126 |
option PXE.mtftp-cport code 2 = unsigned integer 16; |
127 |
option PXE.mtftp-sport code 3 = unsigned integer 16; |
128 |
option PXE.mtftp-tmout code 4 = unsigned integer 8; |
129 |
option PXE.mtftp-delay code 5 = unsigned integer 8; |
130 |
option PXE.discovery-control code 6 = unsigned integer 8; |
131 |
option PXE.discovery-mcast-addr code 7 = ip-address; |
132 |
|
133 |
subnet 192.168.2.0 netmask 255.255.255.128 { |
134 |
range 192.168.2.11 192.168.2.20; |
135 |
option domain-name-servers 192.168.2.1; |
136 |
option domain-name "talon"; |
137 |
option routers 192.168.2.1; |
138 |
option broadcast-address 192.168.2.195; |
139 |
option root-path "192.168.2.1:/diskless/192.168.2.11"; |
140 |
default-lease-time 600; |
141 |
max-lease-time 7200; |
142 |
next-server 192.168.2.1; |
143 |
|
144 |
class "pxeclient" { |
145 |
match if substring (option vendor-class-identifier, |
146 |
0, 9) = "PXEClient"; |
147 |
vendor-option-space PXE; |
148 |
|
149 |
option PXE.mtftp-ip 0.0.0.0; |
150 |
#option PXE.mtftp-ip 192.168.2.1; |
151 |
filename "pxelinux.0"; |
152 |
} |
153 |
# host decleration for diskless node |
154 |
|
155 |
host node01.talon { |
156 |
hardware ethernet 00:1c:c0:4f:bd:e1; |
157 |
fixed-address 192.168.2.11; |
158 |
} |
159 |
} |
160 |
|
161 |
as for /var/log/messages |
162 |
|
163 |
May 4 12:00:01 talon dhcpd: DHCPDISCOVER from 00:1c:c0:4f:bd:e1 via |
164 |
eth0 |
165 |
May 4 12:00:01 talon dhcpd: DHCPOFFER on 192.168.2.11 to |
166 |
00:1c:c0:4f:bd:e1 via eth0 |
167 |
May 4 12:00:01 talon cron[8768]: (root) CMD (test -x /usr/sbin/run- |
168 |
crons && /usr/sbin/run-crons ) |
169 |
May 4 12:00:01 talon cron[8767]: (root) CMD (rm -f /var/spool/cron/ |
170 |
lastrun/cron.hourly) |
171 |
May 4 12:00:03 talon dhcpd: Dynamic and static leases present for |
172 |
192.168.2.11. |
173 |
May 4 12:00:03 talon dhcpd: Remove host declaration node01.talon or |
174 |
remove 192.168.2.11 |
175 |
May 4 12:00:03 talon dhcpd: from the dynamic address pool for |
176 |
192.168.2.0/25 |
177 |
May 4 12:00:03 talon dhcpd: DHCPREQUEST for 192.168.2.11 |
178 |
(192.168.2.1) from 00:1c:c0:4f:bd:e1 via eth0 |
179 |
May 4 12:00:03 talon dhcpd: DHCPACK on 192.168.2.11 to |
180 |
00:1c:c0:4f:bd:e1 via eth0 |
181 |
May 4 04:00:13 talon in.tftpd[8779]: RRQ from 192.168.2.11 filename |
182 |
pxelinux.0 |
183 |
May 4 04:00:15 talon in.tftpd[8780]: RRQ from 192.168.2.11 filename |
184 |
pxelinux.0 |
185 |
May 4 04:00:19 talon in.tftpd[8781]: RRQ from 192.168.2.11 filename |
186 |
pxelinux.0 |
187 |
May 4 04:00:23 talon in.tftpd[8782]: RRQ from 192.168.2.11 filename |
188 |
pxelinux.0 |
189 |
May 4 04:00:33 talon in.tftpd[8783]: RRQ from 192.168.2.11 filename |
190 |
pxelinux.cfg/df1f7176-f5a4-11dc-aec2-000c6eff7219 |
191 |
May 4 04:00:33 talon in.tftpd[8784]: RRQ from 192.168.2.11 filename |
192 |
pxelinux.cfg/df1f7176-f5a4-11dc-aec2-000c6eff7219 |
193 |
May 4 04:00:35 talon in.tftpd[8785]: RRQ from 192.168.2.11 filename |
194 |
pxelinux.cfg/df1f7176-f5a4-11dc-aec2-000c6eff7219 |
195 |
May 4 04:00:37 talon in.tftpd[8786]: RRQ from 192.168.2.11 filename |
196 |
pxelinux.cfg/df1f7176-f5a4-11dc-aec2-000c6eff7219 |
197 |
May 4 04:00:43 talon in.tftpd[8787]: RRQ from 192.168.2.11 filename |
198 |
pxelinux.cfg/df1f7176-f5a4-11dc-aec2-000c6eff7219 |
199 |
May 4 04:00:43 talon in.tftpd[8788]: RRQ from 192.168.2.11 filename |
200 |
pxelinux.cfg/01-00-1c-c0-4f-bd-e1 |
201 |
May 4 04:00:43 talon in.tftpd[8789]: RRQ from 192.168.2.11 filename |
202 |
pxelinux.cfg/01-00-1c-c0-4f-bd-e1 |
203 |
May 4 04:00:45 talon in.tftpd[8790]: RRQ from 192.168.2.11 filename |
204 |
pxelinux.cfg/01-00-1c-c0-4f-bd-e1 |
205 |
May 4 04:00:47 talon in.tftpd[8791]: RRQ from 192.168.2.11 filename |
206 |
pxelinux.cfg/01-00-1c-c0-4f-bd-e1 |
207 |
May 4 04:00:53 talon in.tftpd[8792]: RRQ from 192.168.2.11 filename |
208 |
pxelinux.cfg/01-00-1c-c0-4f-bd-e1 |
209 |
May 4 04:00:53 talon in.tftpd[8793]: RRQ from 192.168.2.11 filename |
210 |
pxelinux.cfg/C0A8020B |
211 |
May 4 04:00:53 talon in.tftpd[8794]: RRQ from 192.168.2.11 filename |
212 |
pxelinux.cfg/C0A8020B |
213 |
May 4 04:00:55 talon in.tftpd[8795]: RRQ from 192.168.2.11 filename |
214 |
pxelinux.cfg/C0A8020B |
215 |
May 4 04:00:57 talon in.tftpd[8796]: RRQ from 192.168.2.11 filename |
216 |
pxelinux.cfg/C0A8020B |
217 |
May 4 04:01:03 talon in.tftpd[8797]: RRQ from 192.168.2.11 filename |
218 |
pxelinux.cfg/C0A8020B |
219 |
May 4 04:01:03 talon in.tftpd[8798]: RRQ from 192.168.2.11 filename |
220 |
pxelinux.cfg/C0A8020 |
221 |
May 4 04:01:03 talon in.tftpd[8799]: RRQ from 192.168.2.11 filename |
222 |
pxelinux.cfg/C0A8020 |
223 |
May 4 04:01:05 talon in.tftpd[8800]: RRQ from 192.168.2.11 filename |
224 |
pxelinux.cfg/C0A8020 |
225 |
May 4 04:01:07 talon in.tftpd[8801]: RRQ from 192.168.2.11 filename |
226 |
pxelinux.cfg/C0A8020 |
227 |
May 4 04:01:13 talon in.tftpd[8802]: RRQ from 192.168.2.11 filename |
228 |
pxelinux.cfg/C0A8020 |
229 |
May 4 04:01:13 talon in.tftpd[8803]: RRQ from 192.168.2.11 filename |
230 |
pxelinux.cfg/C0A802 |
231 |
May 4 04:01:13 talon in.tftpd[8804]: RRQ from 192.168.2.11 filename |
232 |
pxelinux.cfg/C0A802 |
233 |
May 4 04:01:15 talon in.tftpd[8805]: RRQ from 192.168.2.11 filename |
234 |
pxelinux.cfg/C0A802 |
235 |
May 4 04:01:17 talon in.tftpd[8806]: RRQ from 192.168.2.11 filename |
236 |
pxelinux.cfg/C0A802 |
237 |
May 4 04:01:23 talon in.tftpd[8807]: RRQ from 192.168.2.11 filename |
238 |
pxelinux.cfg/C0A802 |
239 |
May 4 04:01:23 talon in.tftpd[8808]: RRQ from 192.168.2.11 filename |
240 |
pxelinux.cfg/C0A80 |
241 |
May 4 04:01:23 talon in.tftpd[8808]: RRQ from 192.168.2.11 filename |
242 |
pxelinux.cfg/C0A80 |
243 |
May 4 04:01:23 talon in.tftpd[8809]: RRQ from 192.168.2.11 filename |
244 |
pxelinux.cfg/C0A80 |
245 |
May 4 04:01:25 talon in.tftpd[8810]: RRQ from 192.168.2.11 filename |
246 |
pxelinux.cfg/C0A80 |
247 |
May 4 04:01:27 talon in.tftpd[8811]: RRQ from 192.168.2.11 filename |
248 |
pxelinux.cfg/C0A80 |
249 |
May 4 04:01:33 talon in.tftpd[8812]: RRQ from 192.168.2.11 filename |
250 |
pxelinux.cfg/C0A80 |
251 |
May 4 04:01:33 talon in.tftpd[8813]: RRQ from 192.168.2.11 filename |
252 |
pxelinux.cfg/C0A8 |
253 |
May 4 04:01:33 talon in.tftpd[8814]: RRQ from 192.168.2.11 filename |
254 |
pxelinux.cfg/C0A8 |
255 |
May 4 04:01:35 talon in.tftpd[8815]: RRQ from 192.168.2.11 filename |
256 |
pxelinux.cfg/C0A8 |
257 |
May 4 04:01:37 talon in.tftpd[8816]: RRQ from 192.168.2.11 filename |
258 |
pxelinux.cfg/C0A8 |
259 |
May 4 04:01:43 talon in.tftpd[8817]: RRQ from 192.168.2.11 filename |
260 |
pxelinux.cfg/C0A8 |
261 |
May 4 04:01:43 talon in.tftpd[8818]: RRQ from 192.168.2.11 filename |
262 |
pxelinux.cfg/C0A |
263 |
May 4 04:01:43 talon in.tftpd[8819]: RRQ from 192.168.2.11 filename |
264 |
pxelinux.cfg/C0A |
265 |
May 4 04:01:45 talon in.tftpd[8820]: RRQ from 192.168.2.11 filename |
266 |
pxelinux.cfg/C0A |
267 |
May 4 04:01:47 talon in.tftpd[8821]: RRQ from 192.168.2.11 filename |
268 |
pxelinux.cfg/C0A |
269 |
May 4 04:01:53 talon in.tftpd[8822]: RRQ from 192.168.2.11 filename |
270 |
pxelinux.cfg/C0A |
271 |
May 4 04:01:53 talon in.tftpd[8823]: RRQ from 192.168.2.11 filename |
272 |
pxelinux.cfg/C0 |
273 |
May 4 04:01:53 talon in.tftpd[8824]: RRQ from 192.168.2.11 filename |
274 |
pxelinux.cfg/C0 |
275 |
May 4 04:01:55 talon in.tftpd[8825]: RRQ from 192.168.2.11 filename |
276 |
pxelinux.cfg/C0 |
277 |
May 4 04:01:57 talon in.tftpd[8826]: RRQ from 192.168.2.11 filename |
278 |
pxelinux.cfg/C0 |
279 |
May 4 04:02:03 talon in.tftpd[8827]: RRQ from 192.168.2.11 filename |
280 |
pxelinux.cfg/C0 |
281 |
May 4 04:02:03 talon in.tftpd[8828]: RRQ from 192.168.2.11 filename |
282 |
pxelinux.cfg/C |
283 |
May 4 04:02:03 talon in.tftpd[8829]: RRQ from 192.168.2.11 filename |
284 |
pxelinux.cfg/C |
285 |
May 4 04:02:05 talon in.tftpd[8830]: RRQ from 192.168.2.11 filename |
286 |
pxelinux.cfg/C |
287 |
May 4 04:02:07 talon in.tftpd[8831]: RRQ from 192.168.2.11 filename |
288 |
pxelinux.cfg/C |
289 |
May 4 04:02:13 talon in.tftpd[8832]: RRQ from 192.168.2.11 filename |
290 |
pxelinux.cfg/C |
291 |
May 4 04:02:13 talon in.tftpd[8833]: RRQ from 192.168.2.11 filename |
292 |
pxelinux.cfg/default |
293 |
May 4 04:02:13 talon in.tftpd[8834]: RRQ from 192.168.2.11 filename |
294 |
pxelinux.cfg/default |
295 |
May 4 04:02:15 talon in.tftpd[8835]: RRQ from 192.168.2.11 filename |
296 |
pxelinux.cfg/default |
297 |
May 4 04:02:17 talon in.tftpd[8836]: RRQ from 192.168.2.11 filename |
298 |
pxelinux.cfg/default |
299 |
May 4 04:02:23 talon in.tftpd[8837]: RRQ from 192.168.2.11 filename |
300 |
pxelinux.cfg/default |
301 |
May 4 04:02:23 talon in.tftpd[8838]: RRQ from 192.168.2.11 filename / |
302 |
kernel8 |
303 |
May 4 04:02:23 talon in.tftpd[8839]: RRQ from 192.168.2.11 filename / |
304 |
kernel8 |
305 |
May 4 04:02:25 talon in.tftpd[8840]: RRQ from 192.168.2.11 filename / |
306 |
kernel8 |
307 |
May 4 04:02:27 talon in.tftpd[8841]: RRQ from 192.168.2.11 filename / |
308 |
kernel8 |
309 |
May 4 04:02:33 talon in.tftpd[8842]: RRQ from 192.168.2.11 filename / |
310 |
kernel8 |
311 |
|
312 |
|
313 |
I also tried this: i used the same cable and attached it to my mac and |
314 |
mounted /diskless/192.168.2.11 nfs share which points to the diskless' |
315 |
client's root. i was able to mount it. So i know nfs works. And yes i |
316 |
made sure to turn off the mac's wireless... so only ethernet was |
317 |
plugged in. |
318 |
|
319 |
What did I miss? |
320 |
|
321 |
Appreciate, your advice. |
322 |
|
323 |
|
324 |
Cocoy |
325 |
www.twitter.com/cocoy |
326 |
"People who are really serious about software should make their own |
327 |
hardware" -- Alan Kay |