Bug 174801 - zpool(8)/iostat(8): zpool list and iostat do not display disk sizes in non-top-level vdevs
Summary: zpool(8)/iostat(8): zpool list and iostat do not display disk sizes in non-to...
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 9.1-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-29 11:40 UTC by koobs
Modified: 2018-01-03 05:16 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description koobs 2012-12-29 11:40:00 UTC
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
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:00:58 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped