From owner-freebsd-fs@FreeBSD.ORG Tue May 15 11:55:42 2012 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0C725106566B for ; Tue, 15 May 2012 11:55:42 +0000 (UTC) (envelope-from araujobsdport@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id B88178FC0C for ; Tue, 15 May 2012 11:55:41 +0000 (UTC) Received: by yenl8 with SMTP id l8so6719262yen.13 for ; Tue, 15 May 2012 04:55:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=Bv7/ifoi+hmEXqJraPD6fLPkMZoeQn/+pD27PHnPyEI=; b=ycFVHKky6Et4wnhdHnZ8oQsq4WF8dgsrp5RW7ClFblmKts1Ww5hBH/T248ebPNfC4r X38uSf1cooBAyZtfft4ln+dM92nw4F2+L2W2zrLCUERwhh3f6YL1mTMhJozRSc365EEv QIiV74mK0w0ZoNKLqnj9xoMrBw8QtY7CLz/tBW3rwW9j/Ru64TLxyZqMgpXp7/ylAfaO WhXYwafc2Wqu/g512bF4alWkcNCpkl698xjG89FAVvjIZeKhO+cmgXLEmFHN1iOBnQRz HIUfVVnYE1ngYQeLcXInHdXefCIyGg/Al9wEDc72LOhnteqId/BewXNWAmVn32ZxS3to 6M9w== MIME-Version: 1.0 Received: by 10.42.122.76 with SMTP id m12mr863852icr.38.1337082940830; Tue, 15 May 2012 04:55:40 -0700 (PDT) Received: by 10.231.31.196 with HTTP; Tue, 15 May 2012 04:55:40 -0700 (PDT) In-Reply-To: <20120515102206.GA53750@psconsult.nl> References: <20120515102206.GA53750@psconsult.nl> Date: Tue, 15 May 2012 19:55:40 +0800 Message-ID: From: Marcelo Araujo To: Paul Schenkeveld Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-fs@freebsd.org Subject: Re: Mirror of Raidz for data reliability X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: araujo@FreeBSD.org List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2012 11:55:42 -0000 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 Machines > > and 2 JBOD, every Machine are connected on those JBOD via SAS and we are > > trying to make a fail-over server. Currently every each Machine has two > 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 output > > ;): > > > > controllerA# zpool status -v araujo > > pool: araujo > > state: ONLINE > > scan: resilvered 57K in 0h0m with 0 errors on Sat May 12 14:32:29 2012 > > config: > > > > NAME STATE READ WRITE CKSUM > > araujo ONLINE 0 0 0 > > raidz1-0 ONLINE 0 0 0 > > mirror-0 ONLINE 0 0 0 > > da0 ONLINE 0 0 0 > > da3 ONLINE 0 0 0 > > mirror-1 ONLINE 0 0 0 > > da1 ONLINE 0 0 0 > > da4 ONLINE 0 0 0 > > mirror-2 ONLINE 0 0 0 > > da2 ONLINE 0 0 0 > > da5 ONLINE 0 0 0 > > > > Maybe a dumb question, how you you create the above setup? I seem unable > 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: > > # zpool create tank raidz1 mirror /dev/da0 /dev/da3 mirror /dev/da1 > /dev/da4 mirror /dev/da2 /dev/da5 > invalid vdev specification: raidz1 requires at least 2 devices > > # zpool create tank raidz1 /dev/da0 /dev/da1 /dev/da2 > # zpool attach tank /dev/da0 /dev/da3 > cannot attach /dev/da3 to /dev/da0: can only attach to mirrors and > top-level disks > > # zpool upgrade > This system is currently running ZFS pool version 28. > > All 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 new 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