1 |
I'm trying to setup a diskless configuration. This is what I have done so far: |
2 |
|
3 |
torsson.dmj.nu (192.168.1.3) is the dhcp/tftp/NFSv4-server |
4 |
abba.dmj.nu (192.168.1.14) is the diskless client |
5 |
|
6 |
In /etc/dhcp/dhcpd.conf I have the following for the "client" (among other things): |
7 |
|
8 |
# PXE-Boot, abba |
9 |
option option-150 code 150 = text ; |
10 |
ddns-update-style none ; |
11 |
host abba { |
12 |
hardware ethernet 00:90:dc:07:6e:a7; |
13 |
fixed-address 192.168.1.14; |
14 |
filename "/abba/boot/pxelinux.0"; |
15 |
} |
16 |
|
17 |
And in pxelinux.cfg/default I have the following: |
18 |
|
19 |
label Diskless Gentoo root in NFS |
20 |
kernel bzImage |
21 |
append root=/dev/nfs ip=dhcp init=/bin/sh nfsroot=192.168.1.3:/diskless/abba |
22 |
|
23 |
The kernel (bzImage) loads OK but when it tries to mount the NFS-root I get the following: |
24 |
"Root-NFS: Server returned error -13 while mounting /diskless/abba" |
25 |
|
26 |
And on the server I see this in syslog: |
27 |
"rpc.mountd[6772]: refused mount request from 192.168.1.14 for /diskless/abba (/): not exported" |
28 |
|
29 |
This is how my filesystems are mounted ad exported: |
30 |
torsson# grep diskless /etc/fstab |
31 |
/dev/vg00/lvol11 /var/diskless reiserfs noatime 0 2 |
32 |
/var/diskless/abba /export/diskless/abba none rw,bind 0 0 |
33 |
torsson# mount | grep diskless |
34 |
/dev/mapper/vg00-lvol11 on /var/diskless type reiserfs (rw,noatime) |
35 |
/var/diskless/abba on /export/diskless/abba type none (rw,bind) |
36 |
|
37 |
And this is a part of the /etc/exports |
38 |
/export *(ro,fsid=0,insecure,no_subtree_check,sync) |
39 |
/export/diskless/abba abba.dmj.nu(rw,nohide,insecure,no_root_squash,no_subtree_check,sync) |
40 |
|
41 |
I also have other FS exported like this e.g.: |
42 |
torsson# grep dan /etc/fstab |
43 |
/dev/vg00/lvol05 /home/dan reiserfs noatime 0 2 |
44 |
/home/dan/tmp /export/Queen/tmp none rw,bind 0 0 |
45 |
torsson# mount | grep dan |
46 |
/dev/mapper/vg00-lvol05 on /home/dan type reiserfs (rw,noatime) |
47 |
/home/dan/tmp on /export/Queen/tmp type none (rw,bind) |
48 |
|
49 |
And in exports: |
50 |
/export *(ro,fsid=0,insecure,no_subtree_check,sync) |
51 |
/export/Queen/tmp queen.dmj.nu(rw,no_root_squash,nohide,no_subtree_check,async) |
52 |
|
53 |
And this "client" can mount the export: |
54 |
queen# grep torsson /etc/fstab |
55 |
torsson.dmj.nu:/Queen/tmp /home/dan/tmp_torsson nfs4 proto=tcp,soft,intr 0 0 |
56 |
queen# mount | grep torsson |
57 |
torsson.dmj.nu:/Queen/tmp on /home/dan/tmp_torsson type nfs4 (rw,proto=tcp,soft,intr,addr=192.168.1.3,clientaddr=192.168.1.11) |
58 |
|
59 |
|
60 |
Any idea why the diskless client can not mount it's root-FS? |
61 |
|
62 |
Regards, |
63 |
-- |
64 |
Dan Johansson, <http://www.dmj.nu> |
65 |
*************************************************** |
66 |
This message is printed on 100% recycled electrons! |
67 |
*************************************************** |