From owner-freebsd-cluster@FreeBSD.ORG Fri Dec 16 15:07:24 2011 Return-Path: Delivered-To: freebsd-cluster@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2356A106566C for ; Fri, 16 Dec 2011 15:07:24 +0000 (UTC) (envelope-from filip@valder.cz) Received: from smtp.vsb.cz (smtp.vsb.cz [IPv6:2001:718:1001:149::155]) by mx1.freebsd.org (Postfix) with ESMTP id B68C98FC0C for ; Fri, 16 Dec 2011 15:07:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.vsb.cz (Postfix) with ESMTP id 00D151C1E8B for ; Fri, 16 Dec 2011 16:07:23 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at smtp.vsb.cz Received: from smtp.vsb.cz ([127.0.0.1]) by localhost (smtp-ha1.vsb.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JnMlaundZVqF for ; Fri, 16 Dec 2011 16:07:13 +0100 (CET) Received: from [IPv6:2001:718:1001:158:224:1dff:fe85:f221] (unknown [IPv6:2001:718:1001:158:224:1dff:fe85:f221]) by smtp.vsb.cz (Postfix) with ESMTPSA id 1DE3C1C1F73 for ; Fri, 16 Dec 2011 16:07:13 +0100 (CET) Message-ID: <4EEB5EA0.1070104@valder.cz> Date: Fri, 16 Dec 2011 16:07:12 +0100 From: Filip Valder User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:7.0.1) Gecko/20111003 Thunderbird/7.0.1 MIME-Version: 1.0 To: freebsd-cluster@freebsd.org Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha1; boundary="------------ms040201090106090703090908" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: HA storage, diskless booting, clustering - ifstated.conf X-BeenThere: freebsd-cluster@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Clustering FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Dec 2011 15:07:24 -0000 Toto je elektronicky podepsaná zpráva ve formátu MIME. --------------ms040201090106090703090908 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable # This is the only difference between the primary and secondary # HAST node. Set it accordingly. init-state primary #init-state secondary # Leave it or substitute "carp0" for the name of your CARP interface # if it varies. carp_up =3D "carp0.link.up" carp_down =3D "!carp0.link.up" # The "net" address is an address which can be used to determine # whether we have connectivity. Make sure the host is always up, or # test multiple ip's, 'or'-ing the tests. net =3D '( "ping -q -c 1 -W 1000 10.11.12.13 > /dev/null" every 10)' state primary { init { # Leave it or substitute "carp0" for the name of # your CARP interface if it varies. run "ifconfig carp0 advskew 10" # Where your carp-hast-switch resides... run "/root/bin/carp-hast-switch master" } if $carp_down || ! $net set-state secondary } state secondary { init { # Leave it or substitute "carp0" for the name of # your CARP interface if it varies. run "ifconfig carp0 advskew 100" # Where your carp-hast-switch resides... run "/root/bin/carp-hast-switch slave" } if $carp_up && $net set-state primary } --------------ms040201090106090703090908--