From owner-freebsd-stable@FreeBSD.ORG Fri Aug 6 09:36:08 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 521D41065673 for ; Fri, 6 Aug 2010 09:36:08 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 1AB0C8FC08 for ; Fri, 6 Aug 2010 09:36:07 +0000 (UTC) Received: by iwn10 with SMTP id 10so1380286iwn.13 for ; Fri, 06 Aug 2010 02:36:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=z2c1+SqCm+96S/R8tKOLQa9+zSK0/9jcw2MnD5Tah7I=; b=KDa77ifWENf5mYAonrcyTdNP1qPvSxshRNlcrgQ9lS9G9Wa5v8r/NY9gTzISS/TlBB wyHCXPF4253TjxhnccDbwfGe4QNASLbnkY9DM4gUpBYgqKK2tp0rym+zkuhdZGsieP/o isvgfN7WMvaUaqN2Aqggw0Uk9YR/7Qdqcn4Kk= 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=gEww/WISe1K05rOIDT2MScnwSEaYXcCPJGVV7naGYoYPDIuaShuo4wdi6lZeF1S8mS X2EyIpXAdH0dcsBCnnSB75RFsw7P995xjIIyRVucCYSrXZRC0ciE8tAJfvFG35cheM4G GzwkcgxWVQdwdj3qec0xgtva2gOJIw9t/Yjyw= MIME-Version: 1.0 Received: by 10.231.144.201 with SMTP id a9mr13968346ibv.67.1281087367484; Fri, 06 Aug 2010 02:36:07 -0700 (PDT) Received: by 10.231.161.208 with HTTP; Fri, 6 Aug 2010 02:36:07 -0700 (PDT) In-Reply-To: <4C57545F.2050907@langille.org> References: <4C5750A4.7050104@langille.org> <4C57545F.2050907@langille.org> Date: Fri, 6 Aug 2010 02:36:07 -0700 Message-ID: From: Freddie Cash To: Dan Langille Content-Type: text/plain; charset=UTF-8 Cc: freebsd-stable@freebsd.org Subject: Re: Where's the space? raidz2 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Aug 2010 09:36:08 -0000 On Mon, Aug 2, 2010 at 4:27 PM, Dan Langille wrote: > On 8/2/2010 7:11 PM, Dan Langille wrote: >> >> I recently altered an existing raidz2 pool from using 7 vdevs of about >> 931G to 1.81TB. In fact, the existing pool used half of each HDD. I then >> wanted to go to using [almost] all of each HDD. >> >> I offline'd each vdev, adjusted the HDD paritions using gpart, then >> replaced the vdev. After letting the resilver occur, I did the next vdev. >> >> The space available after this process did not go up as I expected. I >> have about 4TB in the pool, not the 8 or 9TB I expected. > > This fixed it: > > # zpool export storage > # zpool import storage There's a version of ZFS includes a new *autoexpand* property that could be set on the pool. With that set, the available space will be made available automatically as soon as the last disk in a vdev is replaced. I don't know the exact version or whether it's supported in FreeBSD's port of ZFS. But it will be available at some point. :) -- Freddie Cash fjwcash@gmail.com