From owner-freebsd-current@FreeBSD.ORG Mon Jun 23 23:16:02 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4BD54A34 for ; Mon, 23 Jun 2014 23:16:02 +0000 (UTC) Received: from esa-jnhn.mail.uoguelph.ca (esa-jnhn.mail.uoguelph.ca [131.104.91.44]) by mx1.freebsd.org (Postfix) with ESMTP id 12BA92155 for ; Mon, 23 Jun 2014 23:16:01 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAC+nqFODaFve/2dsb2JhbABag19agm2nVgEBAQEBAQaRdYZtUwGBJ3WEAwEBAQQBAQEgKyALGxgCAg0ZAikBCSYGCAcEARwEiCENpGidexeBKoQ5iEgBARs0B4J3gUwEl2aEK5Ieg14hNYEFOQ X-IronPort-AV: E=Sophos;i="5.01,533,1400040000"; d="scan'208";a="133189261" Received: from muskoka.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.222]) by esa-jnhn.mail.uoguelph.ca with ESMTP; 23 Jun 2014 19:14:53 -0400 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id 42604B3F23; Mon, 23 Jun 2014 19:14:53 -0400 (EDT) Date: Mon, 23 Jun 2014 19:14:53 -0400 (EDT) From: Rick Macklem To: Beeblebrox Message-ID: <2166664.2993364.1403565293261.JavaMail.root@uoguelph.ca> In-Reply-To: <20140623202829.072ee954@rsbsd.rsb> Subject: Re: Previously working PXE setup now fails MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [172.17.91.203] X-Mailer: Zimbra 7.2.6_GA_2926 (ZimbraWebClient - FF3.0 (Win)/7.2.6_GA_2926) Cc: freebsd-current Current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Jun 2014 23:16:02 -0000 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@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to > "freebsd-current-unsubscribe@freebsd.org" >