From owner-freebsd-net@FreeBSD.ORG Sun Feb 15 15:41:08 2015 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5F6C478F for ; Sun, 15 Feb 2015 15:41:08 +0000 (UTC) Received: from mail-la0-f49.google.com (mail-la0-f49.google.com [209.85.215.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D504F648 for ; Sun, 15 Feb 2015 15:41:07 +0000 (UTC) Received: by labpv20 with SMTP id pv20so24085049lab.8 for ; Sun, 15 Feb 2015 07:40:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=berentweb.com; s=google; h=date:from:to:subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; bh=uPyJeJee1qGa6EuGjvW0ZLF1HtifZ5+T9d9cgXpZKHo=; b=MKWGAIy6mnWhZNEgpFwnoMBTzVIHBtgHnZgfSmZdBfQZgB1hcxhYZ9wQfXOOOyFx5z I56lis3gQFjt2A2KRBBziO6w2uWoO4DGK0XY5bQwzIPd+Q5XFjmKo7MhuW+0PYbJSle8 8y4+VpwcGkVm0njeaT2TocqkXp1a99oc1xijQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=uPyJeJee1qGa6EuGjvW0ZLF1HtifZ5+T9d9cgXpZKHo=; b=iIdBULHaxGvIHCAGMIVU7a9AdDiS0tVcPI2qX9VnCIWBfQGcXiWoRCaGg0SJ6QMSJF DulAhnSUBOvKsteO1FgRV80sqiIoyT65BjE8P9S752+GlN+FUv8tbhipxQLM0Ex27aDq dTRNLajCclhHj0MNYBjB0ChikQrfI5YWB4E1sg6EykkQ8Da/yNVJ2TImQfX8hoN1gReS p3MPqSjWwFyhM9Rk9vkugo+t4P+lTB+UD28lBsdLMU4YuelT/2gMPJXvoI8XuuvK/Bpq IFL0x411Aj+AR+h2jdyG3Oqi8ZdaD/GfsRch6ckclh0mea73xpsuk8VCJeTqduyhi4Dy Z9yQ== X-Gm-Message-State: ALoCoQlqiA+V1JVVKv2VzYKdBhEu/jmJh9F3B+5t0RrKxODvbrf5j/chWN8dCCWL03zOxChBD9kp X-Received: by 10.152.7.204 with SMTP id l12mr17732170laa.1.1424014859395; Sun, 15 Feb 2015 07:40:59 -0800 (PST) Received: from rsbsd.rsb ([31.200.18.113]) by mx.google.com with ESMTPSA id m8sm2459607laj.29.2015.02.15.07.40.57 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 15 Feb 2015 07:40:58 -0800 (PST) Date: Sun, 15 Feb 2015 17:40:56 +0200 From: Beeblebrox To: freebsd-net@freebsd.org Subject: NFS and diskless: some questions re nfs_diskless.c Message-ID: <20150215174056.34912959@rsbsd.rsb> In-Reply-To: <20150214145309.38238df2@rsbsd.rsb> References: <20150213142516.569ecc44@rsbsd.rsb> <1957238464.3335859.1423879252335.JavaMail.root@uoguelph.ca> <20150214145309.38238df2@rsbsd.rsb> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Feb 2015 15:41:08 -0000 I have several questions on implementing the features in nfs_diskless.c. Un= derstanding these parameters are necessary to get a decent menu-driven (gru= b2) boot process working for clients. 1. for diskless clients get mounted as V2 instead of V3. I have defi= ned { boot.nfsroot.options=3D"nfsv3" }, but has no effect. Does the kernel = need (options BOOTP_NFSV3)? Considering that nfs_diskless.c routine checks = "get handle size. If this succeeds, it's an NFSv3 setup" and {nd3->root_fhs= ize =3D len; is_nfsv3 =3D 1;} might there be easier solution? 2. My DHCP server has {option root-path} defined and correctly mounts the N= FS root. However, I would like to offer amd64/i386 choice from menu, which = requires different root-path. I therefore plan to remove {option root-path}= from dhcp.conf and pass nfsroot parameter in the boot menu using params ( = boot.nfsroot.server=3D"192.168.2.1" \ boot.nfsroot.path=3D"/data/amd64" ) Yet when I do that, the kernel is booted, NIC goes up but: re0 link state changed to UP Received DHCP Ack packet on re0 from 192.168.2.1 (accepted) DHCP/BOOTP timeout for server 255.255.255.255 The client is on 192.168.2.0/26 (broadcast is 192.168.2.63), Kernel has (op= tions BOOTP/ options BOOTP_NFSROOT). Is there a solution to this? Regards. --=20 FreeBSD_amd64_11-Current_RadeonKMS