dsstat - report Sun StorageTek Availability Suite I/O statistics
dsstat -m mode [-r report-options] [-d display-options] [-s volume-sets] [-f | -F] [-z] [interval [count]]
The dsstat command collects and reports I/O statistics for the Sun StorageTek Availability Suite products.
The dsstat supports the following options:
-m mode
cache
ii
sndr
To display statistics for multiple services simultaneously, use the -m switch to specify each of the modes required. For example:
% dsstat -m ii -m sndr % dsstat -m ii -m sndr -m cache
To determine which statistics are being reported from which service, use the role field, described below. When cache statistics are requested as one of the multiple services, the rkps and wkps statistics is further divided into crkps, drkps, cwkps, and dwkps. If no -m switch is specified, then dsstat displays default statistics for all of the valid modes as described above. See "Field Descriptions," below for descriptions of these fields.
-r report-options
Valid report-options for ii mode are:
m
s
b
o
Valid report-options for sndr mode are:
b
n
-d display-options
For cache mode, the valid display-options are:
r
w
s
f
The following display-options are available only for cache mode, they need to be combined with the mode options (-m)
d
c
The default display-options for cache are sf.
For ii mode, the valid display-options are:
r
w
t
s
p
f
The default display-options for ii are spf. For sndr mode, the valid display-options are:
r
w
t
s
p
f
q
The following display-option is only available for sndr mode, and needs to be combined with the mode options (-m).
q
The default display-options for sndr are spf.
Specifying the summary display-option causes r w t display-options to be ignored.
-s volume-sets
-f
-F
-z
The dsstat command line supports the following operands:
interval
Due to the varying number of entries in a given set and the varying number of sets, header information might appear in the middle of a set being reported. To avoid this, use the -f or -F options to display the header information at the desired time.
count
Unless otherwise specified, all fields are per-second averages based on the data collected during the specified interval.
name
t
s
r
w
pct
role
tps
rtps
wtps
kps
rkps
wkps
crkps
drkps
cwkps
dwkps
ckps
dkps
svt
hit
ds/s
cn/s
q
qi
qk
qhwi
qhwk
The name field displays only the last 16 characters of the name.
Valid cache behaviors for cache are:
C
D
Valid volume types for ii are:
I
D
Valid volume status for ii is:
C
-
Valid volume types for sndr are:
P
S
Valid volume status for sndr is:
L
Q
R
SY
RS
SN
RN
VF
BF
QF
Valid queue types for sndr are:
D
M
Volume roles for sndr are:
net
bmp
Volume roles for ii are:
mst
shd
bmp
ovr
Example 1 Report Cache Statistics
The following example shows the display of Report Cache statistics, with detailed breakdowns of read and writes to cache/disk. Reports are generated at five second intervals. Reporting is limited to the set /dev/rdsk/c1t1d0s0.
# dsstat -m cache -d rw -s /dev/rdsk/c1t1d0s0 5 - read - - write - name ckps dkps hit ckps dkps hit dev/rdsk/c1t1d0s0 0 0 0.00 0 0 0.00 dev/rdsk/c1t1d0s0 3 2396 0.13 983 763 100.00 dev/rdsk/c1t1d0s0 2399 799 75.00 2815 2686 100.00 dev/rdsk/c1t1d0s0 3200 800 80.00 2755 2908 100.00 dev/rdsk/c1t1d0s0 3999 799 83.33 2809 2868 100.00 dev/rdsk/c1t1d0s0 4800 800 85.71 2867 2931 100.00
Example 2 Report Master, Shadow and Bitmap Statistics
Report master, shadow and bitmap statistics for Point-in-Time Copy, using default output. Generate reports at two second intervals.
# dsstat -m ii -r msb 2 name t s pct role kps tps svt dev/rdsk/c0t1d0s5 I C 96.15 mst 19921 38 22 dev/rdsk/c0t1d0s6 shd 9960 19 20 dev/rdsk/c0t1d0s7 bmp 39 77 2 dev/rdsk/c0t1d0s5 I C 94.24 mst 19623 38 22 dev/rdsk/c0t1d0s6 shd 9939 19 20 dev/rdsk/c0t1d0s7 bmp 39 77 2 dev/rdsk/c0t1d0s5 I C 92.34 mst 19969 39 22 dev/rdsk/c0t1d0s6 shd 9984 19 20 dev/rdsk/c0t1d0s7 bmp 39 78 2
Example 3 Report Network Statistics for Remote Mirror
Report network statistics for Remote Mirror, using detailed read, write statistics. Report includes volume type/status flags and percentages. Generate reports at two second intervals. Limit reporting to the set /dev/rdsk/c0t1d0s0.
# dsstat -m sndr -r n -d rwpf -s /dev/rdsk/c0t1d0s0 2 name t s pct role rkps rtps wkps wtps dev/rdsk/c0t1d0s0 P L 100.00 sec 0 0 0 0 dev/rdsk/c0t1d0s0 P SY 99.90 sec 0 0 288 9 dev/rdsk/c0t1d0s0 P SY 97.90 sec 0 0 5296 165 dev/rdsk/c0t1d0s0 P SY 95.81 sec 0 0 5184 161 dev/rdsk/c0t1d0s0 P SY 93.81 sec 0 0 5280 164 dev/rdsk/c0t1d0s0 P SY 91.71 sec 0 0 5198 162
The following exit values are returned:
0
1
2
3
4
See attributes(5) for descriptions of the following attributes:
|
dscfg(1M), svadm(1M), ds.log(4), rdc.cf(4), attributes(5)
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |