From owner-freebsd-fs@FreeBSD.ORG Wed Apr 21 14:45:14 2010 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D77CF1065673 for ; Wed, 21 Apr 2010 14:45:14 +0000 (UTC) (envelope-from davide.damico@gmail.com) Received: from mail-bw0-f228.google.com (mail-bw0-f228.google.com [209.85.218.228]) by mx1.freebsd.org (Postfix) with ESMTP id 6911B8FC23 for ; Wed, 21 Apr 2010 14:45:14 +0000 (UTC) Received: by bwz28 with SMTP id 28so8288290bwz.14 for ; Wed, 21 Apr 2010 07:45:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:from:date:received :message-id:subject:to:content-type:content-transfer-encoding; bh=iqgrhXn8+PHDqZ531jUYYZ4YMi8492OzrHDRvY0OKQI=; b=JGyZk7AHZTmOkHpeFm8APXWvoUn2O0BIEw/cVINRvKzsbwcka/Ql8LQ1QwRLS/n7Fr CpnKTOuaar6vq+r3HREiEv7b3mbcP4nHDQQhKtrYuN/lOzvbfrxodroXBaCMJM0/W48S tldFx1BDQv6uIydHlinp7aQERVRQH8P72fdds= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type :content-transfer-encoding; b=Y1hX7glFNZFQ7MLDIZ/invtgyIYzdi7SNB2kLggeRnHpcAkhlyllRzyA+DqsCtVhOp 3Zu+9mRemXlLwhlooIyiELRL4zTmcn1c8Lxe2VqTI98z0T0SlmO5GoV8oHCvb+eNHped 1jNYV1FZAJqs9rBrq5S8rcB63aawvMAF5eR3E= MIME-Version: 1.0 Received: by 10.204.121.129 with HTTP; Wed, 21 Apr 2010 07:44:53 -0700 (PDT) From: "Davide D'Amico" Date: Wed, 21 Apr 2010 16:44:53 +0200 Received: by 10.204.36.208 with SMTP id u16mr7272790bkd.168.1271861113132; Wed, 21 Apr 2010 07:45:13 -0700 (PDT) Message-ID: To: freebsd-fs@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: HAST, ZFS and CARP [Re: freebsd-fs Digest, Vol 357, Issue 3] 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: Wed, 21 Apr 2010 14:45:14 -0000 > Message: 3 > Date: Tue, 20 Apr 2010 07:39:43 -0700 > From: Freddie Cash > Subject: Re: HAST and ZFS > To: freebsd-fs@freebsd.org > Message-ID: > =A0 =A0 =A0 =A0 > Content-Type: text/plain; charset=3DUTF-8 > > On Tue, Apr 20, 2010 at 7:24 AM, Davide D'Amico = wrote: > >> I'm trying to setup an active/passive cluster. >> Some questions: >> - why the use of net/ucarp rather than carp? Is it for its up/down scrip= ts? >> - I would like to use ZFS on top on HAST, so I think that in >> wiki.freebsd.org/HAST >> I should change UFS (in sh scripts) but how to replace newfs command? >> With zpool create disk da0? >> > > See the mailing list archives. =A0I posted a devd.conf and script for usi= ng > CARP instead of uCARP, for using HAST devices to create a ZFS pool. =A0Wo= rks > quite nicely, although there are no checks/fixes to prevent split-brain i= f > CARP flip-flops between the two hosts. Hi, I've read the mailling list archives (lists.freebsd.org give me an internal server error), and I've successfully created a failover cluster using hast, zfs and carp. I tried to shutdown the primary node, and than I see on he secondary node: Apr 21 15:27:45 hastb hastd: Connection from tcp4://10.8.0.3:8457 to tcp4://10.8.0.3:55949. Apr 21 15:27:45 hastb hastd: [da0s2] (primary) We act as primary for the resource and not as secondary as requested by tcp4://10.8.0.3:55949. Apr 21 15:27:45 hastb hastd: [da0s2] (primary) Remote node acts as primary for the resource and not as secondary. How could I resolve these issues? Thanks, d.