Gentoo Archives: gentoo-user

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