From owner-freebsd-net@FreeBSD.ORG Sun May 10 12:16:21 2009 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 9B2771065670 for ; Sun, 10 May 2009 12:16:21 +0000 (UTC) (envelope-from maciej@suszko.eu) Received: from 27.mail-out.ovh.net (27.mail-out.ovh.net [91.121.30.210]) by mx1.freebsd.org (Postfix) with SMTP id 095DA8FC1B for ; Sun, 10 May 2009 12:16:20 +0000 (UTC) (envelope-from maciej@suszko.eu) Received: (qmail 31044 invoked by uid 503); 10 May 2009 13:01:40 -0000 Received: from b9.ovh.net (HELO mail95.ha.ovh.net) (213.186.33.59) by 27.mail-out.ovh.net with SMTP; 10 May 2009 13:01:40 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 10 May 2009 12:16:15 -0000 Received: from unknown (HELO localhost) (maciej@suszko.eu@62.61.57.118) by ns0.ovh.net with SMTP; 10 May 2009 12:16:13 -0000 Date: Sun, 10 May 2009 14:16:09 +0200 From: Maciej Suszko To: "Sam Wan" Message-ID: <20090510141609.3a11b5eb@suszko.eu> In-Reply-To: <19656.220.233.42.226.1241952684.squirrel@secure.ip6.com.au> References: <27634.220.233.42.226.1241931139.squirrel@secure.ip6.com.au> <736c47cb0905092358j24d4b631odf2cfd23b285fadc@mail.gmail.com> <20090510094721.32a7f4bf@suszko.eu> <19656.220.233.42.226.1241952684.squirrel@secure.ip6.com.au> X-Mailer: Claws Mail 3.7.1 (GTK+ 2.16.1; i386-portbld-freebsd7.1) Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/VetFMm9.MkeGB_B_IYs0x=W"; protocol="application/pgp-signature" X-Ovh-Tracer-Id: 14234752523319730178 X-Ovh-Remote: 62.61.57.118 () X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: DONE|H 0.5/N Cc: freebsd-net@freebsd.org Subject: Re: kernel hang when reboot with loaded ip_vs_rr.ko 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: Sun, 10 May 2009 12:16:21 -0000 --Sig_/VetFMm9.MkeGB_B_IYs0x=W Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable "Sam Wan" wrote: > Unfortunately, after started ip_vs_rr with this script, reboot still > failed, but interestingly, system shutdown is running fine with these > moduels loaded. >=20 > Thanks > Sam >=20 > > Sam Wun wrote: > >> It is IPVS patch, for FreeBSD. > >> I am in Melbourne Australia. > >> Can you send me email regarding about how to fix this issue? > >> BTW, if I kldunload ip_vs_rr before reboot/shutdown, the system > >> will execute the reboot / shutdown normally. > >> When I executed reboot/shutdown with the ip_vs_rr still loaded in > >> the kernel, the system hangs after the console printed the message > >> "...vnode...." > >> > >> Here are the modules loaded: > >> # kldstat > >> Id Refs Address Size Name > >> 1 5 0xc0400000 a434d8 kernel > >> 2 1 0xc0e44000 6a45c acpi.ko > >> 3 1 0xc469d000 2000 ip_vs_rr.ko > >> 4 1 0xc469f000 b000 ipvs.ko > >> > >> # shutdown -h now > >> ..... > >> Syncing disks, vnodes remaining... 1 1 0 0 done > >> All buffers synced. > >> IPVS: ipvs unloaded > >> > >> then it hangs forever. > >> > >> Another problem is I can't put ipvs_vs_rr_load=3D"yes" in the > >> /boot/loader.conf file. The system will hang when it tried to boot > >> the kernel with this ko loaded. > > > > Hi, > > > > Check the freebsd-clister archive - AFAIR I've tested > > ipvs+keepalived a time ago and the panic problem was already known. > > Someone even sent some rc scripts to mailing list. It was a year > > ago or so... 1) Answer below the text. 2) The 'reboot' command should be used only when you're in single mode. Use shutdown -r to clean reboot as written in reboot(8) and shutdown(8). I haven't looked at the script, but I think everything should be fine if modules are loaded on boot and unloaded before reboot (within some start/stop action). --=20 regards, Maciej Suszko. --Sig_/VetFMm9.MkeGB_B_IYs0x=W Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (FreeBSD) iEYEARECAAYFAkoGxYwACgkQCikUk0l7iGoxOgCdE8D41QXF+g0plvOHmRY/IWD7 mZMAnimEkXx4v30Xyb+hwLorSdZytu2B =bDv0 -----END PGP SIGNATURE----- --Sig_/VetFMm9.MkeGB_B_IYs0x=W--