ZPOOL-IOSTAT(8) | System Manager's Manual | ZPOOL-IOSTAT(8) |
zpool-iostat
—
Display logical I/O statistics for the given ZFS storage
pools/vdevs
zpool |
iostat [[[-c
SCRIPT]
[-lq ]]|-rw ]
[-T u|d]
[-ghHLnpPvy ]
[[pool...]|[pool
vdev...]|[vdev...]]
[interval [count]] |
zpool
iostat
[[[-c
SCRIPT]
[-lq
]]|-rw
]
[-T
u|d]
[-ghHLnpPvy
]
[[pool...]|[pool
vdev...]|[vdev...]]
[interval [count]]-n
flag is specified the headers are displayed
only once, otherwise they are displayed periodically. If count is
specified, the command exits after count reports are printed. The first
report printed is always the statistics since boot regardless of whether
interval and count are passed.
However, this behavior can be suppressed with the
-y
flag. Also note that the units of
K,
M,
G ... that are
printed in the report are in base 1024. To get the raw values, use the
-p
flag.
-c
[SCRIPT1[,SCRIPT2]...]zpool
iostat
output. Users can run any script found
in their ~/.zpool.d directory or from the
system /etc/zfs/zpool.d directory. Script
names containing the slash (/) character are not allowed. The default
search path can be overridden by setting the ZPOOL_SCRIPTS_PATH
environment variable. A privileged user can run
-c
if they have the ZPOOL_SCRIPTS_AS_ROOT
environment variable set. If a script requires the use of a privileged
command, like smartctl(8), then it's recommended you
allow the user access to it in /etc/sudoers or
add the user to the /etc/sudoers.d/zfs file.
If -c
is passed without a script
name, it prints a list of all scripts. -c
also sets verbose mode
(-v
).
Script output should be in the form of "name=value". The column name is set to "name" and the value is set to "value". Multiple lines can be used to output multiple columns. The first line of output not in the "name=value" format is displayed without a column title, and no more output after that is displayed. This can be useful for printing error messages. Blank or NULL values are printed as a '-' to make output awk-able.
The following environment variables are set before running each script:
-T
u|d-g
-H
-L
-n
-p
-P
-L
flag.-r
-v
-y
-w
total_wait: Total IO time (queuing + disk IO time). disk_wait: Disk IO time (time reading/writing the disk). syncq_wait: Amount of time IO spent in synchronous priority queues. Does not include disk time. asyncq_wait: Amount of time IO spent in asynchronous priority queues. Does not include disk time. scrub: Amount of time IO spent in scrub queue. Does not include disk time.
-l
total_wait: Average total IO time (queuing + disk IO time). disk_wait: Average disk IO time (time reading/writing the disk). syncq_wait: Average amount of time IO spent in synchronous priority queues. Does not include disk time. asyncq_wait: Average amount of time IO spent in asynchronous priority queues. Does not include disk time. scrub: Average queuing time in scrub queue. Does not include disk time. trim: Average queuing time in trim queue. Does not include disk time.
-q
syncq_read/write: Current number of entries in synchronous priority queues. asyncq_read/write: Current number of entries in asynchronous priority queues. scrubq_read: Current number of entries in scrub queue. trimq_write: Current number of entries in trim queue.
All queue statistics are instantaneous measurements of the number of entries in the queues. If you specify an interval, the measurements will be sampled from the end of the interval.
August 9, 2019 | Linux |