From owner-freebsd-net@FreeBSD.ORG Tue Apr 3 10:17:52 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D92BB106564A for ; Tue, 3 Apr 2012 10:17:52 +0000 (UTC) (envelope-from rsb@berentweb.com) Received: from mail-lpp01m010-f54.google.com (mail-lpp01m010-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 3C1C78FC0A for ; Tue, 3 Apr 2012 10:17:51 +0000 (UTC) Received: by lagv3 with SMTP id v3so6206037lag.13 for ; Tue, 03 Apr 2012 03:17:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=berentweb.com; s=google; h=mime-version:sender:x-originating-ip:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=vsSrcj6YYrGBBSbtH6M2T60OnYBi14+cqT/QjJnYkNI=; b=CnNHhNoP/ATYuLcIEraNQDvK35SG2po1+YfgxRXZVhWao8WP7RcHzKiMXSA9wPqE2i ficeJajt85lAIcSPLP2Qjcx3oF5ZfN0vEpMFwbk15g6769TaheBpxxDlFcbkmNboUqHo BEWGoQdp2kK3tlvqT+JF+LHOCQah3mXpmHOHo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:x-originating-ip:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :x-gm-message-state; bh=vsSrcj6YYrGBBSbtH6M2T60OnYBi14+cqT/QjJnYkNI=; b=hMptLjhBUL2jknr44xoNqK4zyHfRsPKsnXUxQ0y37SSQcE8e0F+lg3g/K0aQWLiHEn mv+Y9lwCONlhVaDZ4pInnr6wMXWxvy1bn/XGlxMoCq2FXaXgJ7SDzj9sOLZAoKjr8nrT dpHj/aQkTAmsDUD36tmVoWoIy0QXCcD93prlW3j5/RxT3J7ewrqcEdeAocBFcX4aBC3v rT+DYyMQ0+8g4e9o+d3HVyNTQTA5fhspdbV2PcrevQPYL3fUXAIIzKpL48Vv9fT25hTK Y08wA2pCepmjAnrg8urTHYR6CoVtEKe/BwAwCkwi2pL04EDp4LvGZv9YQLhfN9JA9URz MM8g== MIME-Version: 1.0 Received: by 10.152.132.166 with SMTP id ov6mr4568312lab.35.1333448270784; Tue, 03 Apr 2012 03:17:50 -0700 (PDT) Sender: rsb@berentweb.com Received: by 10.112.77.15 with HTTP; Tue, 3 Apr 2012 03:17:50 -0700 (PDT) X-Originating-IP: [85.110.29.196] In-Reply-To: <20120403074954.GA19241@server.vk2pj.dyndns.org> References: <20120329072054.GA45082@server.vk2pj.dyndns.org> <20120403074954.GA19241@server.vk2pj.dyndns.org> Date: Tue, 3 Apr 2012 13:17:50 +0300 X-Google-Sender-Auth: yKlzlRB5JO0_pNIPj3y30bG5UdU Message-ID: From: Beeblebrox To: freebsd-net@freebsd.org X-Gm-Message-State: ALoCoQmMkBV0uut4KSv4YhWl+eoBEJE2zTBmPjGlYShYQDr7w/LmfRGVOPrgNSJmBh8m/sRO/RGT Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: lagg problems on diskless client X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Apr 2012 10:17:52 -0000 On Tue, Apr 3, 2012 at 10:49 AM, Peter Jeremy wrote: > Please don't top post. > > On 2012-Apr-02 12:25:06 +0300, Beeblebrox wrote: > >I had looked into failover with wireless and tried it before posting, but > >got nowhere. > > Wired/wireless on a diskfull system should be trivial. > > >1. With below setup in diskless client's rc.conf, the client is able to > >boot and gets to login screen: > >ifconfig_re1="up ether 00:30:67:91:6c:c2" > >cloned_interfaces="lagg0" > >ifconfig_lagg0="up laggproto failover laggport re1 192.168.2.2 netmask > >255.255.255.0" > > Assuming you're netbooting off re0, that looks correct. > > >2. ifconfig at that point shows all good: same mac addr and lagg0 active. > >re0: flags=8843 metric 0 mtu 1500 > > >options=8209b > >ether 00:30:67:91:6c:c2 > >inet 192.168.2.2 netmask 0xffffff00 broadcast 192.168.2.255 > > This is wrong - there should't be an IP address on re0 at this point. > > >media: Ethernet autoselect (100baseTX ) > >status: active > >re1: flags=8843 metric 0 mtu 1500 > > >options=8209b > >ether 00:30:67:91:6c:c2 > >media: Ethernet autoselect (1000baseT ) > >status: active > >lagg0: flags=8843 metric 0 mtu > 1500 > > >options=8209b > >ether 00:30:67:91:6c:c2 > >media: Ethernet autoselect > >status: active > >laggproto failover > >laggport: re1 flags=5 > > > >Now if I go and unplug NIC10/100 on diskless client and "list folder", the > >client will freeze - so failover does not switch. After some time passes, > >client informs that NFS server 192.168.2.1 is not responding. > > lagg0 shows only one laggport so there's no failover. Are you sure you > installed /etc/rc.d/lagg or an equivalent script? > > >PS- I mistakenly double-posted: > >http://docs.freebsd.org/cgi/getmsg.cgi?fetch=39210+0+current/freebsd-net > > I replied to this one because it had a meaningful subject. > > -- > Peter Jeremy > > Please don't top post. Wasn't aware I was doing that. This is better I hope? > Assuming you're netbooting off re0, that looks correct. YES, re0 is the BIOS detected NIC > Are you sure you installed /etc/rc.d/lagg or an equivalent script? I had not noticed the link to the script at the bottom - I placed script in DC's private conf//etc/rc.d then booted the DC. I got system freeze and 1 message: ifconfig: interface re0 cannot change link address! looking through the script I found the problem: lagg_tmp:=/mnt. My DC /root is *ro* so I'll have to change it to another tmp. Considering that my /var and /etc are md-mounted, using either seems out of the question. I also have /tmp mounted as tmpfs. Can I mkdir -p /tmp/lagg and mount lagg_tmp there or does it have to be an NFS shared location - what do you suggest? Thanks.