From owner-freebsd-stable@freebsd.org Sun Oct 16 17:06:52 2016 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 36418C147F5 for ; Sun, 16 Oct 2016 17:06:52 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 15F591FA7 for ; Sun, 16 Oct 2016 17:06:52 +0000 (UTC) (envelope-from asomers@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 123D6C147F0; Sun, 16 Oct 2016 17:06:52 +0000 (UTC) Delivered-To: stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 11DB9C147EF for ; Sun, 16 Oct 2016 17:06:52 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-qk0-x233.google.com (mail-qk0-x233.google.com [IPv6:2607:f8b0:400d:c09::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C1F171FA6 for ; Sun, 16 Oct 2016 17:06:51 +0000 (UTC) (envelope-from asomers@gmail.com) Received: by mail-qk0-x233.google.com with SMTP id n189so201568063qke.0 for ; Sun, 16 Oct 2016 10:06:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=ihWESpVP5c1xoXPS6s4+v3R745IYQx+UwW7u+I1egoI=; b=JfCIWRqNmfOVMv7uGAmbYW/Zn6azAPjPQjgHDTTzwrNbXGst3NbIvsPVUrccgVyuMN nttLDx9ux9fPZjGHqGAYIDIPl9hB063K6PIiFAPkYZ94G6e6dcMQgGMZMudfqaqAQwYi WNEIyL9clvo0sZekgBrKramwaJfF4d0KqHOSp+1VZApX96UDRP31oL11FnVHGZPcEZjN S9ADfah8Va0b+hT0+jUfjW7kELsgRfjIV8kH65voZyL7RCvkGX289dGfGPyKS6P63qOb IJn+Ff/eLFm3ZUmmyMa0dsoPsMIePR8/7BPwdK8D6E0FbmQ0302Lu2tQkf5I2Sl7a9M5 w0qA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=ihWESpVP5c1xoXPS6s4+v3R745IYQx+UwW7u+I1egoI=; b=mugc9YTvghpQFRidU9gUw9AdKb7zNL7F35VZD3HtT1Hxt5KE05eviI4qkuhXK5uHqV YHM2qL/EXaaX/afGIjXtIsOKDXV67WcvO8lZweyW6/kUVuAsw1d2HucNUiJUhDFeJkTg 8zRxUJgvhBdChvimWSwoKcEmi+Qg0QWInPDLe1nSV7OqOhGVm5st4pW2MpLbocxtDJjw ORHxONIrczrWhHsA7QCYcTFGGcQN4Qjb5Ua+7BqfcPaclwQVU32pmhV0iDDLrsY07pZq 1gWpPwoW6U8kdnCNlwaDWBEIyk3Z5BW0OO/e18j+SU/CczuE6DkfiZRIrnfUgV0lWtd4 Qd8g== X-Gm-Message-State: AA6/9Rk6YZzXppmTyfrkGZvtqt9KrT5QyMlP9a7FiclZM0e/0lI32g82vuSJWSvNnbHkfwL6GvSl8rpbGmVi6Q== X-Received: by 10.55.164.141 with SMTP id n135mr20027842qke.222.1476637610923; Sun, 16 Oct 2016 10:06:50 -0700 (PDT) MIME-Version: 1.0 Sender: asomers@gmail.com Received: by 10.12.138.251 with HTTP; Sun, 16 Oct 2016 10:06:50 -0700 (PDT) In-Reply-To: References: From: Alan Somers Date: Sun, 16 Oct 2016 11:06:50 -0600 X-Google-Sender-Auth: yKaObTKrkGLBfaYUwnQf2bbsC98 Message-ID: Subject: Re: zfs/raidz: seems like I'm failing with math To: "Eugene M. Zheganin" Cc: "stable@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Oct 2016 17:06:52 -0000 On Sun, Oct 16, 2016 at 10:56 AM, Eugene M. Zheganin wrote: > Hi. > > FreeBSD 11.0-RC1 r303979, zfs raidz1: > > ===Cut=== > > # zpool status gamestop > pool: gamestop > state: ONLINE > scan: none requested > config: > > NAME STATE READ WRITE CKSUM > gamestop ONLINE 0 0 0 > raidz1-0 ONLINE 0 0 0 > da0 ONLINE 0 0 0 > da1 ONLINE 0 0 0 > da2 ONLINE 0 0 0 > da3 ONLINE 0 0 0 > da4 ONLINE 0 0 0 > da5 ONLINE 0 0 0 > > ===Cut=== > > 6 disks 960 Gbs each: > > ===Cut=== > > # smartctl -a /dev/da0 > smartctl 6.5 2016-05-07 r4318 [FreeBSD 11.0-RC1 amd64] (local build) > Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org > > === START OF INFORMATION SECTION === > Model Family: Samsung based SSDs > Device Model: SAMSUNG MZ7KM960HAHP-00005 > Serial Number: S2HTNX0H507466 > LU WWN Device Id: 5 002538 c402bdac1 > Firmware Version: GXM1003Q > User Capacity: 960 197 124 096 bytes [960 GB] > Sector Size: 512 bytes logical/physical > > [...] > > ===Cut=== > > But: > > ===Cut=== > > # zpool list gamestop > NAME SIZE ALLOC FREE EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT > gamestop 5,22T 4,38T 861G - 24% 83% 1.00x ONLINE - > > ===Cut=== > > Why 5.22T ? If zpool is displaying raw size, it should be 960 x 6 = 5760 Gb > = 5.65 T. If it's displaying the actual data, then it should be 960 x 5 = > 4800 Gb = 4.68 T. 5.22 T is neither of these. I'm stuck, please explain. :) > > > Thanks. > > Eugene. It's raw size, but the discrepancy is between 1000 and 1024. Smartctl is reporting base 10 size, but zpool is reporting base 1024.. 960197124096.0*6/1024**4 = 5.24 TB, which is pretty close to what zpool says. -Alan