public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Diskless setup fails to mount /
@ 2011-06-02  8:43 Dan Johansson
  2011-06-04  2:20 ` James Wall
  0 siblings, 1 reply; 2+ messages in thread
From: Dan Johansson @ 2011-06-02  8:43 UTC (permalink / raw
  To: gentoo-user

I'm trying to setup a diskless configuration. This is what I have done so far:

torsson.dmj.nu (192.168.1.3) is the dhcp/tftp/NFSv4-server
abba.dmj.nu (192.168.1.14) is the diskless client

In /etc/dhcp/dhcpd.conf I have the following for the "client" (among other things):

# PXE-Boot, abba
option option-150 code 150 = text ;
ddns-update-style none ;
host abba {
        hardware ethernet 00:90:dc:07:6e:a7;
        fixed-address 192.168.1.14;
        filename "/abba/boot/pxelinux.0";
}

And in pxelinux.cfg/default I have the following:

label Diskless Gentoo root in NFS
        kernel bzImage
        append root=/dev/nfs ip=dhcp init=/bin/sh nfsroot=192.168.1.3:/diskless/abba

The kernel (bzImage) loads OK but when it tries to mount the NFS-root I get the following:
"Root-NFS: Server returned error -13 while mounting /diskless/abba"

And on the server I see this in syslog:
"rpc.mountd[6772]: refused mount request from 192.168.1.14 for /diskless/abba (/): not exported"

This is how my filesystems are mounted ad exported:
torsson# grep diskless /etc/fstab 
/dev/vg00/lvol11	/var/diskless			reiserfs	noatime	0 2
/var/diskless/abba	/export/diskless/abba	none	rw,bind	0 0
torsson# mount | grep diskless
/dev/mapper/vg00-lvol11 on /var/diskless type reiserfs (rw,noatime)
/var/diskless/abba on /export/diskless/abba type none (rw,bind)

And this is a part of the /etc/exports
/export				*(ro,fsid=0,insecure,no_subtree_check,sync)
/export/diskless/abba	abba.dmj.nu(rw,nohide,insecure,no_root_squash,no_subtree_check,sync)

I also have other FS exported like this e.g.:
torsson# grep dan /etc/fstab
/dev/vg00/lvol05	/home/dan		reiserfs	noatime	0 2
/home/dan/tmp		/export/Queen/tmp	none	rw,bind	0 0
torsson# mount | grep dan 
/dev/mapper/vg00-lvol05 on /home/dan type reiserfs (rw,noatime)
/home/dan/tmp on /export/Queen/tmp type none (rw,bind)

And in exports:
/export				*(ro,fsid=0,insecure,no_subtree_check,sync)
/export/Queen/tmp		queen.dmj.nu(rw,no_root_squash,nohide,no_subtree_check,async)

And this "client" can mount the export:
queen# grep torsson /etc/fstab
torsson.dmj.nu:/Queen/tmp       /home/dan/tmp_torsson   nfs4    proto=tcp,soft,intr     0 0
queen# mount | grep torsson
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)


Any idea why the diskless client can not mount it's root-FS?

Regards,
-- 
Dan Johansson, <http://www.dmj.nu>
***************************************************
This message is printed on 100% recycled electrons!
***************************************************



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [gentoo-user] Diskless setup fails to mount /
  2011-06-02  8:43 [gentoo-user] Diskless setup fails to mount / Dan Johansson
@ 2011-06-04  2:20 ` James Wall
  0 siblings, 0 replies; 2+ messages in thread
From: James Wall @ 2011-06-04  2:20 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 2944 bytes --]

On Jun 2, 2011 3:48 AM, "Dan Johansson" <Dan.Johansson@dmj.nu> wrote:
>
> I'm trying to setup a diskless configuration. This is what I have done so
far:
>
> torsson.dmj.nu (192.168.1.3) is the dhcp/tftp/NFSv4-server
> abba.dmj.nu (192.168.1.14) is the diskless client
>
> In /etc/dhcp/dhcpd.conf I have the following for the "client" (among other
things):
>
> # PXE-Boot, abba
> option option-150 code 150 = text ;
> ddns-update-style none ;
> host abba {
>        hardware ethernet 00:90:dc:07:6e:a7;
>        fixed-address 192.168.1.14;
>        filename "/abba/boot/pxelinux.0";
> }
>
> And in pxelinux.cfg/default I have the following:
>
> label Diskless Gentoo root in NFS
>        kernel bzImage
>        append root=/dev/nfs ip=dhcp init=/bin/sh nfsroot=192.168.1.3:
/diskless/abba
Change the nfsroot= to nfsroot=192.168.1.3:/export/diskless/Abbas
>
> The kernel (bzImage) loads OK but when it tries to mount the NFS-root I
get the following:
> "Root-NFS: Server returned error -13 while mounting /diskless/abba"
>
> And on the server I see this in syslog:
> "rpc.mountd[6772]: refused mount request from 192.168.1.14 for
/diskless/abba (/): not exported"
>
> This is how my filesystems are mounted ad exported:
> torsson# grep diskless /etc/fstab
> /dev/vg00/lvol11        /var/diskless                   reiserfs
 noatime 0 2
> /var/diskless/abba      /export/diskless/abba   none    rw,bind 0 0
> torsson# mount | grep diskless
> /dev/mapper/vg00-lvol11 on /var/diskless type reiserfs (rw,noatime)
> /var/diskless/abba on /export/diskless/abba type none (rw,bind)
>
> And this is a part of the /etc/exports
> /export
*(ro,fsid=0,insecure,no_subtree_check,sync)
> /export/diskless/abba   abba.dmj.nu
(rw,nohide,insecure,no_root_squash,no_subtree_check,sync)
>
> I also have other FS exported like this e.g.:
> torsson# grep dan /etc/fstab
> /dev/vg00/lvol05        /home/dan               reiserfs        noatime 0
2
> /home/dan/tmp           /export/Queen/tmp       none    rw,bind 0 0
> torsson# mount | grep dan
> /dev/mapper/vg00-lvol05 on /home/dan type reiserfs (rw,noatime)
> /home/dan/tmp on /export/Queen/tmp type none (rw,bind)
>
> And in exports:
> /export
*(ro,fsid=0,insecure,no_subtree_check,sync)
> /export/Queen/tmp               queen.dmj.nu
(rw,no_root_squash,nohide,no_subtree_check,async)
>
> And this "client" can mount the export:
> queen# grep torsson /etc/fstab
> torsson.dmj.nu:/Queen/tmp       /home/dan/tmp_torsson   nfs4
 proto=tcp,soft,intr     0 0
> queen# mount | grep torsson
> 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)
>
>
> Any idea why the diskless client can not mount it's root-FS?
>
> Regards,
> --
> Dan Johansson, <http://www.dmj.nu>
> ***************************************************
> This message is printed on 100% recycled electrons!
> ***************************************************
>

James Wall

[-- Attachment #2: Type: text/html, Size: 3871 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-06-04  2:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-02  8:43 [gentoo-user] Diskless setup fails to mount / Dan Johansson
2011-06-04  2:20 ` James Wall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox