From owner-freebsd-fs@FreeBSD.ORG Tue May 15 10:22:14 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 DA6CA1065672 for ; Tue, 15 May 2012 10:22:14 +0000 (UTC) (envelope-from freebsd@psconsult.nl) Received: from mx1.psconsult.nl (unknown [IPv6:2001:7b8:30f:e0::5059:ee8a]) by mx1.freebsd.org (Postfix) with ESMTP id 8B0278FC16 for ; Tue, 15 May 2012 10:22:14 +0000 (UTC) Received: from mx1.psconsult.nl (mx1.iaf.psconsult.nl [80.89.238.138]) by mx1.psconsult.nl (8.14.4/8.14.4) with ESMTP id q4FAM7CU022829 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 15 May 2012 12:22:12 +0200 (CEST) (envelope-from freebsd@psconsult.nl) Received: (from paul@localhost) by mx1.psconsult.nl (8.14.4/8.14.4/Submit) id q4FAM6jT022828 for freebsd-fs@freebsd.org; Tue, 15 May 2012 12:22:07 +0200 (CEST) (envelope-from freebsd@psconsult.nl) X-Authentication-Warning: mx1.psconsult.nl: paul set sender to freebsd@psconsult.nl using -f Date: Tue, 15 May 2012 12:22:06 +0200 From: Paul Schenkeveld To: freebsd-fs@freebsd.org Message-ID: <20120515102206.GA53750@psconsult.nl> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) 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: Tue, 15 May 2012 10:22:14 -0000 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