From owner-freebsd-stable@FreeBSD.ORG Tue Mar 29 11:34:11 2011 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1069A106564A for ; Tue, 29 Mar 2011 11:34:11 +0000 (UTC) (envelope-from linuxmail@4lin.net) Received: from mail.4lin.net (mail.4lin.net [IPv6:2a01:4f8:130:6021::50]) by mx1.freebsd.org (Postfix) with ESMTP id 73BFF8FC19 for ; Tue, 29 Mar 2011 11:34:10 +0000 (UTC) Received: from localhost (angelica.4lin.net [127.0.0.1]) by mail.4lin.net (Postfix) with ESMTP id A1CAA2BF98 for ; Tue, 29 Mar 2011 13:20:48 +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 NfxvkNh-Iv-Q for ; Tue, 29 Mar 2011 13:20:45 +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 7AB362BF46 for ; Tue, 29 Mar 2011 13:20:45 +0200 (CEST) From: Denny Schierz To: stable@freebsd.org Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-ykXySr4PpJErAbcEIeif" Date: Tue, 29 Mar 2011 13:17:01 +0200 Message-ID: <1301397421.11113.250.camel@pcdenny> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Cc: Subject: way for failover zpool (no HAST needed) 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: Tue, 29 Mar 2011 11:34:11 -0000 --=-ykXySr4PpJErAbcEIeif Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable hi, my two nodes are running fine with 8.2-stable and the LSI 9200-8e and now, I want to build a failover for the Zpool (and later ISCSI target) Both nodes are connected to the same disks (jbod) and now I need a way, to get the zpool(s) running on the node with the CARP public IP. I found something about carp, hooks, devd etc. pp. My first thought was: carp -> hook -> zpool import -> devd -> ISCSI target up Problem HostA: no network: carp -> hook -> zpool export -> devd -> ISCSI target down -> OK Back to master shouldn't be a problem, I think ... Problem HostA: power off: carp -> hook -> zpool import -> devd -> ISCSI target up -> OK But a bad problem could be: Problem HostA: SAS Cntrl/cabel problem: carp is up and running ..., no reason to failover to slave ... -> bad So, I mean, I have to use devd who takes notes, that the /dev/da* disks are gone or inaccessible and inform carp or shutdown the network interface to force carp switching over to slave. So any hints are welcome :-) If it works, I will write a howto for that one :-) cu denny --=-ykXySr4PpJErAbcEIeif 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) iEYEABECAAYFAk2Rv6kACgkQKlzhkqt9P+COVQCgn7UoiN3CJ1Ig34nEdCdkN5pE wVYAnjdCGDMw2EdKX02n00xB75Vtpkoo =LCGb -----END PGP SIGNATURE----- --=-ykXySr4PpJErAbcEIeif--