003 File Manager
Current Path:
/usr/src/sys/contrib/openzfs/cmd/zpool/zpool.d
usr
/
src
/
sys
/
contrib
/
openzfs
/
cmd
/
zpool
/
zpool.d
/
📁
..
📄
README
(301 B)
📄
ata_err
(7.24 KB)
📄
cmd_to
(7.24 KB)
📄
defect
(7.24 KB)
📄
dm-deps
(697 B)
📄
enc
(1.21 KB)
📄
encdev
(1.21 KB)
📄
fault_led
(1.21 KB)
📄
health
(7.24 KB)
📄
hours_on
(7.24 KB)
📄
iostat
(1.95 KB)
📄
iostat-10s
(1.95 KB)
📄
iostat-1s
(1.95 KB)
📄
label
(2.29 KB)
📄
locate_led
(1.21 KB)
📄
lsblk
(2.29 KB)
📄
media
(430 B)
📄
model
(2.29 KB)
📄
nonmed
(7.24 KB)
📄
nvme_err
(7.24 KB)
📄
off_ucor
(7.24 KB)
📄
pend_sec
(7.24 KB)
📄
pwr_cyc
(7.24 KB)
📄
r_proc
(7.24 KB)
📄
r_ucor
(7.24 KB)
📄
realloc
(7.24 KB)
📄
rep_ucor
(7.24 KB)
📄
serial
(7.24 KB)
📄
ses
(1.21 KB)
📄
size
(2.29 KB)
📄
slot
(1.21 KB)
📄
smart
(7.24 KB)
📄
smart_test
(7.24 KB)
📄
smartx
(7.24 KB)
📄
temp
(7.24 KB)
📄
test_ended
(7.24 KB)
📄
test_progress
(7.24 KB)
📄
test_status
(7.24 KB)
📄
test_type
(7.24 KB)
📄
upath
(118 B)
📄
vendor
(2.29 KB)
📄
w_proc
(7.24 KB)
📄
w_ucor
(7.24 KB)
Editing: iostat-10s
#!/bin/sh # # Display most relevant iostat bandwidth/latency numbers. The output is # dependent on the name of the script/symlink used to call it. # helpstr=" iostat: Show iostat values since boot (summary page). iostat-1s: Do a single 1-second iostat sample and show values. iostat-10s: Do a single 10-second iostat sample and show values." script=$(basename "$0") if [ "$1" = "-h" ] ; then echo "$helpstr" | grep "$script:" | tr -s '\t' | cut -f 2- exit fi if [ "$script" = "iostat-1s" ] ; then # Do a single one-second sample interval=1 # Don't show summary stats brief="yes" elif [ "$script" = "iostat-10s" ] ; then # Do a single ten-second sample interval=10 # Don't show summary stats brief="yes" fi if [ -f "$VDEV_UPATH" ] ; then # We're a file-based vdev, iostat doesn't work on us. Do nothing. exit fi if [ "$(uname)" = "FreeBSD" ]; then out=$(iostat -dKx \ ${interval:+"-w $interval"} \ ${interval:+"-c 1"} \ "$VDEV_UPATH" | tail -n 2) else out=$(iostat -kx \ ${brief:+"-y"} \ ${interval:+"$interval"} \ ${interval:+"1"} \ "$VDEV_UPATH" | awk NF | tail -n 2) fi # Sample output (we want the last two lines): # # Linux 2.6.32-642.13.1.el6.x86_64 (centos68) 03/09/2017 _x86_64_ (6 CPU) # # avg-cpu: %user %nice %system %iowait %steal %idle # 0.00 0.00 0.00 0.00 0.00 100.00 # # Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util # sdb 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 # # Get the column names cols=$(echo "$out" | head -n 1) # Get the values and tab separate them to make them cut-able. vals=$(echo "$out" | tail -n 1 | sed -r 's/[[:blank:]]+/\t/g') i=0 for col in $cols ; do i=$((i+1)) # Skip the first column since it's just the device name if [ $i -eq 1 ]; then continue fi # Get i'th value val=$(echo "$vals" | cut -f "$i") echo "$col=$val" done
Upload File
Create Folder