From owner-freebsd-fs@FreeBSD.ORG Sun Jun 28 06:51:39 2009 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 00FCB106564A for ; Sun, 28 Jun 2009 06:51:39 +0000 (UTC) (envelope-from zbeeble@gmail.com) Received: from mail-bw0-f210.google.com (mail-bw0-f210.google.com [209.85.218.210]) by mx1.freebsd.org (Postfix) with ESMTP id 75E1B8FC08 for ; Sun, 28 Jun 2009 06:51:38 +0000 (UTC) (envelope-from zbeeble@gmail.com) Received: by bwz6 with SMTP id 6so263951bwz.43 for ; Sat, 27 Jun 2009 23:51:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=oHhzMtJpintARzjmy7aLnXtP3LLfxU5KxKFUJtHWTnM=; b=PmZJUKwERKHY51+z71nGTGHKRZ2i6RUCIFG+W/SmieYpY+17gY7hXQsYtM5xbKU/x9 KDP9wNioBSbBAs/yAR+7NkP8z3sibre0mkJquGKPR4ZplTKlEOigSoHViIfBa8HRXHyJ lTLibmIox6Gn/ijwcIqXOge+M3JEGmnlyO/6c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=omHRjmOMnA4Nb77mIZY9S96mR+44dTsZF7MhHtUHelpg7HYiArzbZgtb7asCY6sHXT aMHD4jl1bAEMxjNTXxeQlj5Za8LJssqAVwO8frkT3PEmT+9Ji9T8i51XiEO5QIK4Apxi pr9Cah7aVSvClTR/5u81PjG5J/YL/xmP4llBw= MIME-Version: 1.0 Received: by 10.204.121.131 with SMTP id h3mr5660322bkr.66.1246169929500; Sat, 27 Jun 2009 23:18:49 -0700 (PDT) In-Reply-To: References: <380571.31027.qm@web51002.mail.re2.yahoo.com> Date: Sun, 28 Jun 2009 02:18:49 -0400 Message-ID: <5f67a8c40906272318t2f27822dg3e30f7dc2345cb11@mail.gmail.com> From: Zaphod Beeblebrox To: Dan Naumov Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-fs@freebsd.org, Rafael Caesar Lenzi Subject: Re: Adding more disk's on ZFS array 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: Sun, 28 Jun 2009 06:51:39 -0000 On Sat, Jun 27, 2009 at 6:27 PM, Dan Naumov wrote: > On Sun, Jun 28, 2009 at 12:58 AM, Rafael Caesar > Lenzi wrote: > > > > Hi! > > How i can add more disks on ZFS raid0 or raid5 array? > > > > Thanks! > > Rafael Lenzi > > raid0 (stripe): zpool add POOLNAME DEVICENAME > raid5 (raidz): you can't > Not entirely true. For a RAID 0 stripe, yes, you can just add a disk. Be clear, however, that existing data is not striped to that disk, but the new disk is used for new data. For RAID 5 (raidz), you have two options. You can replace each disk, in turn, with a larger disk and heal the array each time. I did this, for instance, to move from 5 750G drives to 5 1.5T drives. Another option is to add another bunch of RAID 5 drives. If you have 5 existing drives RAID 5, you can add another set of dries with zpool add. According to documentation, each pool should be of the same RAID type. It doesn't, however, specify that each set of RAID 5 disks should have the same number of disks in it. This seems to mean that you could add a set of 3 disks (raid 5) to an existing raid 5 array with 5 disks.