From owner-freebsd-fs@FreeBSD.ORG Thu Jun 18 10:00:11 2015 Return-Path: Delivered-To: freebsd-fs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2B2D16CD for ; Thu, 18 Jun 2015 10:00:11 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from smtp.digiware.nl (smtp.digiware.nl [31.223.170.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E1443D2F for ; Thu, 18 Jun 2015 10:00:08 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from rack1.digiware.nl (unknown [127.0.0.1]) by smtp.digiware.nl (Postfix) with ESMTP id 1DB5716A404 for ; Thu, 18 Jun 2015 11:54:16 +0200 (CEST) X-Virus-Scanned: amavisd-new at digiware.nl Received: from smtp.digiware.nl ([127.0.0.1]) by rack1.digiware.nl (rack1.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EI4dtVNj8Y8p; Thu, 18 Jun 2015 11:53:57 +0200 (CEST) Received: from [IPv6:2001:4cb8:3:1:301d:d194:f8e3:4290] (unknown [IPv6:2001:4cb8:3:1:301d:d194:f8e3:4290]) by smtp.digiware.nl (Postfix) with ESMTP id 4315816A403 for ; Thu, 18 Jun 2015 11:53:57 +0200 (CEST) Message-ID: <5582952E.6020202@digiware.nl> Date: Thu, 18 Jun 2015 11:53:50 +0200 From: Willem Jan Withagen Organization: Digiware Management b.v. User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: freebsd-fs@freebsd.org Subject: Layout of zpool list -v Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Jun 2015 10:00:11 -0000 Hi, Call me picky, but then it confuses me every time. I have this mirrored set with both cache and log. Looking at it with zpool it looks like: zdata 360G 50.4G 310G - 9% 14% ........ mirror 360G 50.4G 310G - 9% 14% gpt/data0 - - - - - - gpt/data1 - - - - - - mirror 496M 800K 495M - 15% 0% gpt/log0 - - - - - - gpt/log1 - - - - - - cache - - - - - - gpt/cachedata0 31.7G 118M 31.6G - 0% 0% gpt/cachedata1 31.7G 128M 31.6G - 0% 0% Which (could) suggest that there are 2 mirrors in a raid0 config, whereas it actually is a log/mirror attached. Would it not be more informative if it looks like: (if at all possible) zdata 360G 50.4G 310G - 9% 14% ........ mirror 360G 50.4G 310G - 9% 14% gpt/data0 - - - - - - gpt/data1 - - - - - - log - - - - - - mirror 496M 800K 495M - 15% 0% gpt/log0 - - - - - - gpt/log1 - - - - - - cache - - - - - - gpt/cachedata0 31.7G 118M 31.6G - 0% 0% gpt/cachedata1 31.7G 128M 31.6G - 0% 0% Note that I've also indented the cache set. I was going to add a patch, since it does not seem too complex, but I'm really lost in the zfs/zpool code to get anywhere near the code that actually does the work... Single stepping it in gdb is sort of a pain since zpool is threaded?? If somebody could give me some pointers I'll have another go at it. Thanx, --WjW