Date: Sat, 29 Dec 2012 11:38:17 GMT From: Kubilay Kocak <koobs.freebsd@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: kern/174801: [zfs] zpool list and iostat do not display disk sizes in non-top-level vdevs Message-ID: <201212291138.qBTBcHjr080381@red.freebsd.org> Resent-Message-ID: <201212291140.qBTBe0dN098188@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 174801
>Category: kern
>Synopsis: [zfs] zpool list and iostat do not display disk sizes in non-top-level vdevs
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sat Dec 29 11:40:00 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Kubilay Kocak
>Release: 9.1-RELEASE amd64
>Organization:
>Environment:
FreeBSD freebsd-91-amd64 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243872: Wed Dec 5 16:49:35 EST 2012 root@freebsd-9-amd64:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
zfs 'list' and 'iostat' commands only display disk/file sizes when they are configured as top level vdevs:
[root@freebsd-91-amd64:/usr/home/user/zfstest] zpool list -v
NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT
test-jbod 119M 92.5K 119M 0% 1.00x ONLINE -
/home/user/zfstest/zfs6 59.5M 36K 59.5M -
/home/user/zfstest/zfs7 59.5M 56.5K 59.4M -
test-mirror 59.5M 91K 59.4M 0% 1.00x ONLINE -
mirror 59.5M 91K 59.4M -
/home/user/zfstest/zfs4 - - - -
/home/user/zfstest/zfs5 - - - -
test-raidz 178M 177K 178M 0% 1.00x ONLINE -
raidz1 178M 177K 178M -
/home/user/zfstest/zfs1 - - - -
/home/user/zfstest/zfs2 - - - -
/home/user/zfstest/zfs3 - - - -
test-raidz2 178M 282K 178M 0% 1.00x ONLINE -
raidz2 178M 282K 178M -
/home/user/zfstest/zfs8 - - - -
/home/user/zfstest/zfs9 - - - -
/home/user/zfstest/zfs10 - - - -
test-raidz3 238M 434K 238M 0% 1.00x ONLINE -
raidz3 238M 434K 238M -
/home/user/zfstest/zfs11 - - - -
/home/user/zfstest/zfs12 - - - -
/home/user/zfstest/zfs13 - - - -
/home/user/zfstest/zfs14 - - - -
Similarly, per-vdev information for 'alloc and 'free' values are not displayed in zfs iostat output:
Expected output:
NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT
test-raidz 178M 177K 178M 0% 1.00x ONLINE -
raidz1 178M 177K 178M -
/home/user/zfstest/zfs1 59.5M value value -
/home/user/zfstest/zfs2 59.5M value value -
/home/user/zfstest/zfs3 59.5M value value -
If it is non-trivial to determine or calculate ALLOC and FREE values, SIZE only would suffice.
Possibly relevant resources:
http://svnweb.freebsd.org/base?view=revision&revision=236155
https://www.illumos.org/issues/1948
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212291138.qBTBcHjr080381>
