From owner-freebsd-fs@FreeBSD.ORG Wed May 16 23:43:25 2012 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 C5DBE106564A for ; Wed, 16 May 2012 23:43:25 +0000 (UTC) (envelope-from gkontos.mail@gmail.com) Received: from mail-vb0-f54.google.com (mail-vb0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 72A988FC08 for ; Wed, 16 May 2012 23:43:25 +0000 (UTC) Received: by vbmv11 with SMTP id v11so1638808vbm.13 for ; Wed, 16 May 2012 16:43:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=D6tkf7UjNkS/APEiZ5bDy5S9YNqfTOegrVp/+S0UhbA=; b=WrrZz+GY9x3/LNPvD34JXv6pqwEPjACsmK5WZg2WtLl2wa5rEuJfrnvV9sCh2fwv3x hqby4hiWsXVvq09rrQfFuXFDlWVYHiLAFJ2EZ3i6/JbhZ8/wxfRpZ8RzpyeV2u6e+SR6 9tbj2VW/O+qRGx2l4EMQaJJ0GFWWbVTJkRjR+G0lk1ABuyNxgEM91aSNeiF//VrivrNZ muX/+7ZuzPpxpnw7MpDoMvkx4Hr4Pgh+U9awkVeX40xRM0Gq0HFxZcaJ1WWmbPIit2B7 9SUyruAZKkp+zzcbPVTdlT5BSI4lNNwcv21P+26MuqhBVSr3LopsgXnWksMtJp6/94Mq tGfg== MIME-Version: 1.0 Received: by 10.221.1.80 with SMTP id np16mr3712340vcb.33.1337211801707; Wed, 16 May 2012 16:43:21 -0700 (PDT) Received: by 10.220.8.202 with HTTP; Wed, 16 May 2012 16:43:21 -0700 (PDT) In-Reply-To: References: <20120515102206.GA53750@psconsult.nl> Date: Thu, 17 May 2012 02:43:21 +0300 Message-ID: From: George Kontostanos To: freebsd-fs@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: Mirror of Raidz for data reliability 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, 16 May 2012 23:43:25 -0000 On Tue, May 15, 2012 at 2:55 PM, Marcelo Araujo w= rote: > 2012/5/15 Paul Schenkeveld > >> On Mon, May 14, 2012 at 01:35:51AM +0800, Marcelo Araujo wrote: >> > Hi All, >> > >> > Me and a co-work are working in a new feature for ZFS, we have 2 Machi= nes >> > and 2 JBOD, every Machine are connected on those JBOD via SAS and we a= re >> > trying to make a fail-over server. Currently every each Machine has tw= o >> SAS >> > cables, each one connected in both JBOD. >> > >> > We have worked last week to figure out, how we could make the data be >> > always alive in case one JBOD dies, and let me show you my console out= put >> > ;): >> > >> > controllerA# zpool status -v araujo >> > =A0 pool: araujo >> > =A0state: ONLINE >> > =A0scan: resilvered 57K in 0h0m with 0 errors on Sat May 12 14:32:29 2= 012 >> > config: >> > >> > =A0 =A0 =A0 =A0 NAME =A0 =A0 =A0 =A0 =A0STATE =A0 =A0 READ WRITE CKSUM >> > =A0 =A0 =A0 =A0 araujo =A0 =A0 =A0 =A0ONLINE =A0 =A0 =A0 0 =A0 =A0 0 = =A0 =A0 0 >> > =A0 =A0 =A0 =A0 =A0 raidz1-0 =A0 =A0ONLINE =A0 =A0 =A0 0 =A0 =A0 0 =A0= =A0 0 >> > =A0 =A0 =A0 =A0 =A0 =A0 mirror-0 =A0ONLINE =A0 =A0 =A0 0 =A0 =A0 0 =A0= =A0 0 >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 da0 =A0 =A0 ONLINE =A0 =A0 =A0 0 =A0 =A0 0= =A0 =A0 0 >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 da3 =A0 =A0 ONLINE =A0 =A0 =A0 0 =A0 =A0 0= =A0 =A0 0 >> > =A0 =A0 =A0 =A0 =A0 =A0 mirror-1 =A0ONLINE =A0 =A0 =A0 0 =A0 =A0 0 =A0= =A0 0 >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 da1 =A0 =A0 ONLINE =A0 =A0 =A0 0 =A0 =A0 0= =A0 =A0 0 >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 da4 =A0 =A0 ONLINE =A0 =A0 =A0 0 =A0 =A0 0= =A0 =A0 0 >> > =A0 =A0 =A0 =A0 =A0 =A0 mirror-2 =A0ONLINE =A0 =A0 =A0 0 =A0 =A0 0 =A0= =A0 0 >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 da2 =A0 =A0 ONLINE =A0 =A0 =A0 0 =A0 =A0 0= =A0 =A0 0 >> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 da5 =A0 =A0 ONLINE =A0 =A0 =A0 0 =A0 =A0 0= =A0 =A0 0 >> > >> >> Maybe a dumb question, how you you create the above setup? =A0I seem una= ble >> to create a raidz consisting of mirrors neither can I attach a second >> physical drive to an existing one in a raidz of three single drives: >> >> =A0# zpool create tank raidz1 mirror /dev/da0 /dev/da3 mirror /dev/da1 >> /dev/da4 mirror /dev/da2 /dev/da5 >> =A0invalid vdev specification: raidz1 requires at least 2 devices >> >> =A0# zpool create tank raidz1 /dev/da0 /dev/da1 /dev/da2 >> =A0# zpool attach tank /dev/da0 /dev/da3 >> =A0cannot attach /dev/da3 to /dev/da0: can only attach to mirrors and >> top-level disks >> >> =A0# zpool upgrade >> =A0This system is currently running ZFS pool version 28. >> >> =A0All pools are formatted using this version. >> >> Kind regards, >> >> Paul Schenkeveld >> > > Hey Paul, > > Yes, I'm using the latest version with code modification, it might be a n= ew > feature. > The currently ZFS doesn't support this kind of set, that was I ask, if > there is another way that I supposed to don't know and could do the same > thing. > > If it make sense, maybe, I'll put more effort to bring this kind of stuff > as a new feature. However, it is not so simple that I could made in few > days as well as have this feature only on FreeBSD, it will make the code > inconsistent between our ZFS port and Illumos-gate. > > But is interesting. > > Best Regards, > -- > Marcelo Araujo > araujo@FreeBSD.org > _______________________________________________ > freebsd-fs@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" If you have 2 machines then your best bet would be HAST. If you are worried about data replication you can always use lagg with 2 or more interfaces. --=20 George Kontostanos Aicom telecoms ltd http://www.aisecure.net