From owner-freebsd-fs@FreeBSD.ORG Mon Mar 1 20:43:30 2010 Return-Path: Delivered-To: fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1DB8E106566B for ; Mon, 1 Mar 2010 20:43:30 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (chello089077043238.chello.pl [89.77.43.238]) by mx1.freebsd.org (Postfix) with ESMTP id 3DD248FC17 for ; Mon, 1 Mar 2010 20:43:28 +0000 (UTC) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 527E945EEB; Mon, 1 Mar 2010 21:43:26 +0100 (CET) Received: from localhost (chello089077043238.chello.pl [89.77.43.238]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 39EBE45EC0; Mon, 1 Mar 2010 21:43:20 +0100 (CET) Date: Mon, 1 Mar 2010 21:43:16 +0100 From: Pawel Jakub Dawidek To: Freddie Cash Message-ID: <20100301204315.GA1946@garage.freebsd.pl> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="2oS5YaxWCcQjTEyO" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 9.0-CURRENT i386 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-0.6 required=4.5 tests=BAYES_00,RCVD_IN_SORBS_DUL autolearn=no version=3.0.4 Cc: fs@freebsd.org Subject: Re: HAST, ucarp, and ZFS X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Mar 2010 20:43:30 -0000 --2oS5YaxWCcQjTEyO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 01, 2010 at 11:57:15AM -0800, Freddie Cash wrote: > Perhaps it's just a misunderstanding on my part of the layering involved, > but I'm having an issue with the sample ucarp_up.sh script on the HAST wi= ki > page. >=20 > Here's the test setup that I have: > hast1: > glabel 4x 2 GB virtual disks (label/disk01 --> label/disk04) > hast.conf create 4 resources (disk01 --> disk04, using the glabelled > disks) > zpool create hapool raidz1 hast/disk01 .. hast/disk04 >=20 > hast2: > glabel 4x 2 GB virtual disks (label/disk01 --> label/disk04) > hast.conf create 4 resources (disk01 --> disk04) >=20 > So far so good. On hast1, I have a working ZFS pool, I can create data, > filessytems, etc, and watch network traffic as it syncs to hast2. >=20 > I can manually down hast1 and switch hast2 to "primary" and import the > hapool. I can create data, filesystems, etc. And I can manually bring > hast1 online and set it to secondary, and watch it sync back. >=20 > Where I'm stuck is how to modify the ucarp_up.sh script to work with > multiple hast resources. Do I just edit it to handle each of the 4 hast > resources in turn, or am I missing something simple, like that there shou= ld > only be a single hast resource? I'm guess it's a simple "edit the script= to > suit my setup" issue, but wanted to double-check. The scripts in share/examples/hast/ are well... just examples and unfortunately support only one resource. You have to build/modify the scripts on your own (and maybe share the results?). Note that most of hastctl(8) subcommands accept 'all' as resource name, which means that operation should be performed on all configured resources. > The production server I want to use this with has 24 harddrives in it, > configured into multiple raidz2 vdevs, as part of a single ZFS pool. Whi= ch > will mean 24 separate hast resources, if I understand things correctly. You do understand it correctly. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --2oS5YaxWCcQjTEyO Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAkuMJuMACgkQForvXbEpPzRXdQCfcbnozYRuK3rXfW/onzPB2pMw jsMAoJQnGdqMHns3bOqxbn7Rte/pDFsm =jJ9m -----END PGP SIGNATURE----- --2oS5YaxWCcQjTEyO--