From owner-freebsd-stable@FreeBSD.ORG Thu Apr 28 13:22:09 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CFA10106567A for ; Thu, 28 Apr 2011 13:22:09 +0000 (UTC) (envelope-from linuxmail@4lin.net) Received: from mail.4lin.net (mail.4lin.net [46.4.210.97]) by mx1.freebsd.org (Postfix) with ESMTP id 85B378FC16 for ; Thu, 28 Apr 2011 13:22:09 +0000 (UTC) Received: from localhost (angelica.4lin.net [127.0.0.1]) by mail.4lin.net (Postfix) with ESMTP id 4CF102E192 for ; Thu, 28 Apr 2011 15:26:29 +0200 (CEST) X-Virus-Scanned: amavisd-new at mail.4lin.net Received: from mail.4lin.net ([127.0.0.1]) by localhost (mail.4lin.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tAKKuxnxNEHi for ; Thu, 28 Apr 2011 15:26:26 +0200 (CEST) Received: from [130.83.160.152] (pcdenny.rbg.informatik.tu-darmstadt.de [130.83.160.152]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.4lin.net (Postfix) with ESMTPSA id F25BF2E002 for ; Thu, 28 Apr 2011 15:26:25 +0200 (CEST) From: Denny Schierz To: freebsd-stable In-Reply-To: <861v0nrdkc.fsf@in138.ua3> References: <1301397421.11113.250.camel@pcdenny> <86ipv1ll4f.fsf@kopusha.home.net> <1303905911.4232.86.camel@pcdenny> <861v0nrdkc.fsf@in138.ua3> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-pUAO9b1Gr/g5jfiNPtAd" Date: Thu, 28 Apr 2011 15:22:22 +0200 Message-ID: <1303996942.4232.160.camel@pcdenny> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Subject: Re: way for failover zpool (no HAST needed): hastmon X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Apr 2011 13:22:10 -0000 --=-pUAO9b1Gr/g5jfiNPtAd Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable hi, ok, here we go: I've installed hastmon and both FreeBSD nodes and one on Linux Debian as watchdog: Simple setup: =20 # cat /etc.local/hastmon.conf=20 resource sanip { exec /usr/local/_rbg/bin/san-ip friends iscsihead-m iscsihead-s nos on iscsihead-m { remote tcp4://iscsihead-s priority 0 } on iscsihead-s { remote tcp4://iscsihead-m priority 1 } on linux { remote tcp4://iscsihead-m tcp4://iscsihead-s } }=20 It works only half.=20 The simple script adds/remove an alias for the em0 and for status it does a ping -c 1 to the global ip. After tell every host, what is role is, I get on the primary "state unknown", in the secondary "state run" and watchdog for the Linux host. Than I rebooted the primary, the secondary take over and executed the script. After the primary was reachable again, he doesn't get the secondary role, but init/unknown. The same happens, in the opposite: from Linux: hastmonctl status sanip: role: watchdog exec: /usr/local/_rbg/bin/san-ip remote: tcp4://iscsihead-m (primary/run) tcp4://iscsihead-s (init/unknown) state: run attempts: 0 from 5 complaints: 0 for last 60 sec (threshold 3) heartbeat: 10 sec from iscsihead-s: hastmonctl status sanip: role: init exec: /usr/local/_rbg/bin/san-ip remote: tcp4://iscsihead-m state: unknown attempts: 0 from 5 complaints: 0 for last 60 sec (threshold 3) heartbeat: 10 sec and last from iscsihead-m hastmonctl status sanip: role: primary exec: /usr/local/_rbg/bin/san-ip remote: tcp4://iscsihead-s (disconnected) state: run attempts: 0 from 5 complaints: 0 for last 60 sec (threshold 3) heartbeat: 10 sec If I take a look into the logfile from the iscsihead-m: [sanip] (primary) Remote node acts as init for the resource and not as secondary. [sanip] (primary) Handshake header from tcp4://iscsihead-s has no 'token' field. Do I have missed something? cu denny --=-pUAO9b1Gr/g5jfiNPtAd Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEABECAAYFAk25agoACgkQKlzhkqt9P+CJeQCfQI9yRahaWWbt0C6kn9SWbDHY hZQAoIAjWItklDdViyn23qLP+sKGfBSB =z0j1 -----END PGP SIGNATURE----- --=-pUAO9b1Gr/g5jfiNPtAd--