| Summary: | zpool(8)/iostat(8): zpool list and iostat do not display disk sizes in non-top-level vdevs | ||
|---|---|---|---|
| Product: | Base System | Reporter: | koobs <koobs.freebsd> |
| Component: | bin | Assignee: | freebsd-bugs (Nobody) <bugs> |
| Status: | Open --- | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | 9.1-RELEASE | ||
| Hardware: | Any | ||
| OS: | Any | ||
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 |
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