From owner-freebsd-questions@FreeBSD.ORG Fri Jun 7 16:18:49 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 3A0F3537 for ; Fri, 7 Jun 2013 16:18:49 +0000 (UTC) (envelope-from c.kworr@gmail.com) Received: from mail-la0-x232.google.com (mail-la0-x232.google.com [IPv6:2a00:1450:4010:c03::232]) by mx1.freebsd.org (Postfix) with ESMTP id B712118AC for ; Fri, 7 Jun 2013 16:18:48 +0000 (UTC) Received: by mail-la0-f50.google.com with SMTP id dy20so1662082lab.37 for ; Fri, 07 Jun 2013 09:18:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=6qu/53ZRFU+tSOASwyYUF5rJIvpGknhfNrdESsoapGc=; b=wB9KaK+tz8Gow+/4KpPQ4MA0emqJIhGyBjzR2sLwTMyz/bWV+jI2BzQsLGu7ZGROmD lNTQ+cNxa+HS0s/HMc5n7fQAeCNMBZhhjzMooJKq8hy0YBFtxQqdMnnr3oIsgA4iPlak XMh6nNQfvxcObc2TTyDNPezAhWFA/wcZ/VKa9Go0jBCOaXLYtGB5a1Hl1qXHrs3BYYIF nMmJFxB5HJbnecfd0JtpLC/JzBW7x99AytBBR9yb5MI5eM3eXZN15OQDZMaFZjphgi/m Eco2t4UQnEezxZdtMM6WDkLtUwVAlwzlqWbuP8yoIcTFFWSuj/FEdO0tJkG8OYn5+fPB pUgA== X-Received: by 10.112.167.193 with SMTP id zq1mr1535911lbb.89.1370621927651; Fri, 07 Jun 2013 09:18:47 -0700 (PDT) Received: from [192.168.1.125] (mau.donbass.com. [92.242.127.250]) by mx.google.com with ESMTPSA id c5sm1268297lbe.1.2013.06.07.09.18.46 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 07 Jun 2013 09:18:47 -0700 (PDT) Message-ID: <51B207E5.70809@gmail.com> Date: Fri, 07 Jun 2013 19:18:45 +0300 From: Volodymyr Kostyrko User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:20.0) Gecko/20100101 Firefox/20.0 SeaMonkey/2.17.1 MIME-Version: 1.0 To: Quartz , FreeBSD questions Subject: Re: ZFS: raid VS copies=n References: <51B201D4.3000705@sneakertech.com> In-Reply-To: <51B201D4.3000705@sneakertech.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jun 2013 16:18:49 -0000 07.06.2013 18:52, Quartz: > Question: > > How does the ZFS option 'copies=n' and raid relate to and interact with > each other? specifically recovery in the event of a failure. For > example, is having three disks in a raid-1 configuration with copies=1 > effectively the same as having three disks in a raid-0 with copies=3? > Are the copies distributed uniformly across all drives in the pool, or > concentrated, or what? What happens with configs like a raid-z2 with > copies=2? Which / how many disks can you lose? > > (I'm aware that like a lot of other ZFS options copies=n doesn't have to > be global to the entire pool / directory structure, but for the sake of > simplicity let's assume it is in this case). copies=n tries to allocate blocks on different disks but doesn't guarantee this nor that any single disk can be used to retrieve data. -- Sphinx of black quartz, judge my vow.