From owner-freebsd-current@FreeBSD.ORG Mon Jun 23 17:28:27 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 422C8229 for ; Mon, 23 Jun 2014 17:28:27 +0000 (UTC) Received: from mail-wg0-x22a.google.com (mail-wg0-x22a.google.com [IPv6:2a00:1450:400c:c00::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C59A92FB9 for ; Mon, 23 Jun 2014 17:28:26 +0000 (UTC) Received: by mail-wg0-f42.google.com with SMTP id z12so6623933wgg.1 for ; Mon, 23 Jun 2014 10:28:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=berentweb.com; s=google; h=date:from:cc:subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; bh=6Q2fHw91G58ONtFCuLDWRcFNzBvUnCW8pJWQx4PEzkM=; b=eXYgXpc1qWvf8yzQtch49ZC9XNTj0OFK+/a8S5goIFWc8KsMB4p1Swv5nJNl8plqOZ DWLBS9HDaYw4WYdnm0wTM/YJDiDSl+JEGMJF/2uwDOUTwK9nJ4liRJEKinGj+BrA9RSB Na1phENOgL/TJQNPswloiPxDTMQkGKgeFqgZo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:cc:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=6Q2fHw91G58ONtFCuLDWRcFNzBvUnCW8pJWQx4PEzkM=; b=Ec2uleM5isvPMMpWGucLQvFy4cPTJyhXU6JpJxFVBFrTuUO/5NpakNpXz3hByPOotk xcCUuSfJXyYlmBvB1dtp+7ZDjgndmygJVzJAdVWMhq/w19zbWbmR4DwaAFY5AeCquWbb z9Kr4zqeagWbLvVkIhrWkVseK4PLEgwPtVVRNhyQd3nyafQlVlsGIK8o64Ia1dPMmHYv WmwkPfUSyyFg9sH9mvd+cRT4yEzFMDttsle72EW7+xzkKTVVLIY4MSaJvLGTDV8SO1Zo fcLMDruRCESQ+q0xObJ+PIgMKj74P7JRb4EufaHvkICEVqg14tjEu200/cvxbjhUtZFm r/hA== X-Gm-Message-State: ALoCoQm1LDHE9Qxm9MESR4mFcH/z86XqkFGevoMDLrHuU0I9jo8/ffCvffdSHi7VLjtt551qzmYz X-Received: by 10.180.149.240 with SMTP id ud16mr28121374wib.3.1403544504793; Mon, 23 Jun 2014 10:28:24 -0700 (PDT) Received: from rsbsd.rsb ([83.66.223.12]) by mx.google.com with ESMTPSA id ww4sm9983770wjc.4.2014.06.23.10.28.23 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 23 Jun 2014 10:28:24 -0700 (PDT) Date: Mon, 23 Jun 2014 20:28:29 +0300 From: Beeblebrox Cc: freebsd-current Current Subject: Re: Previously working PXE setup now fails Message-ID: <20140623202829.072ee954@rsbsd.rsb> In-Reply-To: References: <1402410667736-5919662.post@n5.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 17:28:27 -0000 > 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=3D0 -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. /etc/rc.conf has: rpcbind_flags=3D"-h 192.168.2.1" mountd_flags=3D"-r -n -l -h 192.168.2.1" nfsd_flags=3D"-u -t -n 4 -h 192.168.2.1" nfsv4_only=3D"YES" nfsv4_server_enable=3D"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=3D"YES" rpc_statd_enable=3D" 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. --=20 FreeBSD_amd64_11-Current_RadeonKMS