From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 23 04:55:05 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C198B106567A for ; Tue, 23 Jun 2009 04:55:05 +0000 (UTC) (envelope-from artemb@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.31]) by mx1.freebsd.org (Postfix) with ESMTP id 72EF38FC17 for ; Tue, 23 Jun 2009 04:55:05 +0000 (UTC) (envelope-from artemb@gmail.com) Received: by yw-out-2324.google.com with SMTP id 9so1656148ywe.13 for ; Mon, 22 Jun 2009 21:55:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=xYQUJBlTMpxNP447VB5Eau3CE7mJUWxaV86xJGdW8oo=; b=JbIdxfsA2nouXgahIVFin90Y/wSfB90fZB5tLRclX6VJFCJvpUUAru5uzb7k0p2Pzb ZDjgMwBwYznq4aAF4osfk3UnPAxF1/Yf8t1Jz39AUnAym85LM70KIemnlLnWyPdWez5Q uvIoGp+3w+NBPXwkPJueTrmurHoMy/UfBjihs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=PuKghgS5tKOgDZZhMGyPnMMWf+x1UxAOA7rwhsnAyfNX5L/ZDet+wh6eGPGl1IMLpl Ix6b+CX6nD7mhrIuqCghFHzOk5LxUeW0FBZbzdNy054kM1Q1/6k+RxOQRH0VnQoTtFS7 zuKfY42Kme4gwdQMGx5mVXAyA9QyqDOR74DfA= MIME-Version: 1.0 Sender: artemb@gmail.com Received: by 10.90.25.7 with SMTP id 7mr5862443agy.107.1245731306478; Mon, 22 Jun 2009 21:28:26 -0700 (PDT) In-Reply-To: <20090623003117.GA94466@logik.internal.network> References: <20090623003117.GA94466@logik.internal.network> Date: Mon, 22 Jun 2009 21:28:26 -0700 X-Google-Sender-Auth: e48fd354272025e8 Message-ID: From: Artem Belevich To: xorquewasp@googlemail.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: ZFS filesystem not showing total size? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jun 2009 04:55:06 -0000 On Mon, Jun 22, 2009 at 5:31 PM, wrote: > ad11: 953869MB at ata5-slave SATA300 .. > ad14: 476940MB at ata7-master SATA300 > ad16: 476940MB at ata8-master SATA300 .. ># zpool create storage raidz ad11 ad14 ad16 > I seem to have less storage than I'd expect. Is there something wrong > with this setup? You've created raidz pool from 2x500G hard drives and one 1T hard drive. RAIDZ needs elements of the array to be of the same size, so you're effectively wasting half of your 1T drive (ad11). Total raw capacity of the pool is 476G*3 = ~ 1.36T with 2/3of it (913G) usable for user data -- exactly what zfs shows you. Obvious fix would be to build the pool from the drives of the same size. You may try concatenating or striping ad14+ad16 with geom and create mirrored pool with ad11 -- usable size would be a bit larger than what you have. Resulting pool should be faster than RAIDZ. Another option would be to get another 1T drive and build RAIDZ pool with 2x1T + (striped 2x500G) for a total usable size of ~2T. I'd advise against splitting 1T drive into two partitions and use them as two elements of RAIDZ pool -- this would effectively kill redundancy that RAIDZ is supposed to provide. If your 1T drive dies, your whole pool would go down with it. Performance would also suck as 1T drive will be constantly seeking. --Artem