Re: Previously working PXE setup now fails

From: Rick Macklem <rmacklem_at_uoguelph.ca>
Date: Mon, 23 Jun 2014 19:14:53 -0400 (EDT)
Beeblebrox wrote:
> > see if you can run wireshark on your NFS server that is being
> > mounted.
> > That should narrow down the RPC error.
> 
> It took a while to get around to this, but the problem looks like NFS
> v3 - v4 conflict. Wireshark shows these errors:
> Program Version: 3 \ V3 Procedure: MNT (1) \Status: ERR_ACCESS (13)
> 
> But NFS is started as v4. /etc/exports (not sure if correct syntax):
> V4:  /     -network 192.168.2.0/26
> /data/amd64     -ro -network 192.168.2.0/26		# NFS root
> /usr/local      -ro -maproot=0 -network 192.168.2.0/26
> /home           -network 192.168.2.0/26
> 
> The PXE structure (dhcp & tftp) are started as a jail with the jail
> root folder as the NFS export root (/data/amd64). The jail and NFS
> services are not started with boot but with separate script.
> 
The Mount protocol request in your packet trace specifies a path of "/".
For the above exports to work, the MNT path must be "/data/amd64".
(I think this is the root-path option specified in your entry for the
 client on your dhcp server.) Look at the "MNT Call" lines in the
wireshark trace and get the path to be "/data/amd64" and not "/".

It isn't using NFSv4, so the the "V4: / ..." line is not relevent to
this.

As I think I've mentioned before, a NFSv4 root fs won't work, so
don't bother trying...

Good luck with it, rick


> /etc/rc.conf has:
> rpcbind_flags="-h 192.168.2.1"
> mountd_flags="-r -n -l -h 192.168.2.1"
> nfsd_flags="-u -t -n 4 -h 192.168.2.1"
> nfsv4_only="YES"
> nfsv4_server_enable="YES"
> 
> pxe_start_script.sh:
> jail -c pxe
> service rpcbind onestart
> service mountd onestart
> service nfsd onestart
> service nfsuserd onestart
> # disabled_not_needed? rpc_lockd_enable="YES"  rpc_statd_enable="
> 
> I should probablymove the rc.conf flags into my pxe_start_script.sh,
> but not sure how to pass "service start" flags in an sh script.
> 
> Regards.
> 
> --
> FreeBSD_amd64_11-Current_RadeonKMS
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to
> "freebsd-current-unsubscribe_at_freebsd.org"
> 
Received on Mon Jun 23 2014 - 21:16:02 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:50 UTC