From owner-freebsd-net@freebsd.org Sat Feb 4 21:01:00 2017 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3EDB1CCE91F for ; Sat, 4 Feb 2017 21:01:00 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B2FCDF76; Sat, 4 Feb 2017 21:00:59 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id v14L0tWi084614 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sat, 4 Feb 2017 23:00:55 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua v14L0tWi084614 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id v14L0sUb084613; Sat, 4 Feb 2017 23:00:54 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Sat, 4 Feb 2017 23:00:54 +0200 From: Konstantin Belousov To: Sean Bruno Cc: freebsd-net@FreeBSD.org Subject: Re: NFSROOT and lagg(4) Message-ID: <20170204210054.GJ2092@kib.kiev.ua> References: <3b771270-245a-cf8a-9cbe-f55df7680812@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3b771270-245a-cf8a-9cbe-f55df7680812@freebsd.org> User-Agent: Mutt/1.7.2 (2016-11-26) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tom.home X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Feb 2017 21:01:00 -0000 On Sat, Feb 04, 2017 at 01:44:21PM -0700, Sean Bruno wrote: > "what I want" is to pxe/netboot and then switch over to using a lagg(4) > interface that includes the interface used in the pxe/netboot boot up. > I suspect, I have to switch to MDROOT to do this, but I thought I'd ask > if anyone is doing this type of configuration in their labs? > > What seems to happen is that I lose the nfsroot when I reconfigure the > lagg, and I no longer have access to reconfigure. > > e.g. pxeboot from em0, then reconfigure networking to use em0/em1 in lagg0: > > em0: flags=8843 metric 0 mtu 1500 > > options=5259b > ether 00:30:18:c5:0a:a9 > nd6 options=29 > media: Ethernet autoselect (1000baseT ) > status: active > em1: flags=8843 metric 0 mtu 1500 > > options=5259b > ether 00:30:18:c5:0a:a9 > nd6 options=29 > media: Ethernet autoselect (1000baseT ) > status: active > lagg0: flags=8843 metric 0 mtu 1500 > > options=5259b > ether 00:30:18:c5:0a:a9 > inet 192.168.100.53 netmask 0xffffff00 broadcast 192.168.100.255 > nd6 options=29 > media: Ethernet autoselect > status: active > groups: lagg > laggproto lacp lagghash l2,l3,l4 > laggport: em0 flags=1c > laggport: em1 flags=1c > Look at reroot support, see reboot(8) option -r. I suspect you could need two reroots: first to some tmpfs or memory backed md(4) where ifconfig is present to reconfigure interfaces, second to boot into the final root.