Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Apr 2016 15:23:08 +0100
From:      Bob Bishop <rb@gid.co.uk>
To:        =?utf-8?Q?BERTRAND_Jo=C3=ABl?= <joel.bertrand@systella.fr>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Diskless workstation and some minor issues
Message-ID:  <E16859BA-70D7-4836-8532-4AE840C82A46@gid.co.uk>
In-Reply-To: <57163991.4000100@systella.fr>
References:  <57163991.4000100@systella.fr>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

> On 19 Apr 2016, at 14:58, BERTRAND Jo=C3=ABl =
<joel.bertrand@systella.fr> wrote:
>=20
> 	Hello,
>=20
> 	I have installed a diskless workstation (10.2-RELEASE-p14) that =
mounts its rootfs from a NetBSD nfs server. My fstab is :
>=20
> root@pythagore:~ # cat /etc/fstab
> # Device        Mountpoint      FStype  Options Dump    Pass#
> 192.168.10.128:/srv/pythagore   /       nfs     nfsv3,tcp,soft,intr,rw =
0      0
> ...
> 192.168.10.128:/home            /home   nfs     nfsv3,tcp,soft,intr,rw =
0      0
> root@pythagore:~ #
>=20
> 	First question. I have installed this diskless workstation with =
an USB stick. Now, FreeBSD kernel mounts rootfs over NFS. But in a first =
time, it tries to mount usbus0 (!) :
>=20
> Apr  9 10:48:00 pythagore kernel: Root mount waiting for: usbus2 =
usbus1 usbus0
[snip]
> Apr  9 10:48:02 pythagore kernel: ugen0.4: <Unknown> at usbus0 =
(disconnected)
> Apr  9 10:48:02 pythagore kernel: uhub_reattach_port: could not =
allocate new device
> Apr  9 10:48:02 pythagore kernel: Trying to mount root from =
nfs:192.168.10.128:/srv/pythagore [nfsv3,tcp,soft,intr,rw]...
> Apr  9 10:48:02 pythagore kernel: NFS ROOT: =
192.168.10.128:/srv/pythagore
>=20
> 	I don't understand why kernel tries to mount an USB rootfs... =
And I haven't found how fix this trouble.

It doesn=E2=80=99t. It waits for USB just in case the root is on USB, I =
assume this isn=E2=80=99t optimised to keep things simple.

> 	Second trouble. /var/log/message contains a lot of :
> Apr  9 10:50:00 pythagore atrun[862]: cannot lock /var/at/jobs/: =
Permission denied
[etc]

I suspect the rest of your troubles are due to the usual default NFS =
root =3D> nobody mapping. You probably need something like -maproot=3D0 =
somewhere in /etc/exports on the server; RTFM exports(5).

--
Bob Bishop
rb@gid.co.uk







Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E16859BA-70D7-4836-8532-4AE840C82A46>