1dsstat(1M)              System Administration Commands              dsstat(1M)
2
3
4

NAME

6       dsstat - report Sun StorageTek Availability Suite I/O statistics
7

SYNOPSIS

9       dsstat -m mode [-r report-options] [-d display-options]
10        [-s volume-sets] [-f | -F] [-z] [interval [count]]
11
12

DESCRIPTION

14       The  dsstat  command  collects  and  reports I/O statistics for the Sun
15       StorageTek Availability Suite products.
16

OPTIONS

18       The dsstat supports the following options:
19
20       -m mode
21
22           Specifies the mode(s) of operation. Valid modes are:
23
24           cache
25
26               Cache statistics
27
28
29           ii
30
31               Point-in-Time Copy statistics
32
33
34           sndr
35
36               Remote Mirror statistics
37
38           To display statistics for multiple services simultaneously, use the
39           -m switch to specify each of the modes required. For example:
40
41             % dsstat -m ii -m sndr
42             % dsstat -m ii -m sndr -m cache
43
44
45           To  determine  which  statistics are being reported from which ser‐
46           vice, use the role field, described below.  When  cache  statistics
47           are  requested  as  one of the multiple services, the rkps and wkps
48           statistics is further divided into crkps, drkps, cwkps, and  dwkps.
49           If  no -m switch is specified, then dsstat displays default statis‐
50           tics for all of the valid modes  as  described  above.  See  "Field
51           Descriptions," below for descriptions of these fields.
52
53
54       -r report-options
55
56           Specifies  the volume components to be displayed. Each item is rep‐
57           resented by a single character, and multiple items can be selected.
58           The  report-options vary based on the mode(s) specified above. This
59           option is not used for cache mode.
60
61           Valid report-options for ii mode are:
62
63           m            Master volume statistics.
64
65                            o      For the "report-options for ii mode": m, s,
66                                   b, o
67
68                            o      For  the "report-options for sndr mode": b,
69                                   n
70
71                            o      For the "display-options for  cache  mode":
72                                   r, w, d, c, s, f
73
74                            o      For  the  "display-options for ii mode": r,
75                                   w, t, s, p, f
76
77
78           s            Shadow volume statistics.
79
80
81           b            Bitmap volume statistics.
82
83
84           o            Overflow volume statistics, if attached.
85
86           Valid report-options for sndr mode are:
87
88           b            Bitmap volume statistics.
89
90
91           n            Network volume statistics.
92
93
94
95       -d display-options
96
97           Specifies the statistics to be displayed. The types  of  statistics
98           are represented by a single character; multiple types can be speci‐
99           fied.
100
101           For cache mode, the valid display-options are:
102
103           r            Detailed read statistics.
104
105
106           w            Detailed write statistics.
107
108
109           s            Summary statistics.
110
111
112           f            Cache behavior flags.
113
114           The following display-options are available only  for  cache  mode,
115           they need to be combined with the mode options (-m)
116
117           d            Destaged data statistics.
118
119
120           c            Write cancellation statistics.
121
122           The default display-options for cache are sf.
123
124           For ii mode, the valid display-options are:
125
126           r
127
128               Detailed read statistics.
129
130
131           w
132
133               Detailed write statistics.
134
135
136           t
137
138               Timing statistics.
139
140
141           s
142
143               Summary statistics.
144
145
146           p
147
148               Percentage of volume requiring sync.
149
150
151           f
152
153               Volume type/status flags.
154
155           The  default  display-options  for  ii  are spf. For sndr mode, the
156           valid display-options are:
157
158           r            Detailed read statistics.
159
160
161           w            Detailed write statistics.
162
163
164           t            Timing statistics.
165
166
167           s            Summary statistics.
168
169
170           p            Percentage of volume requiring sync.
171
172
173           f            Volume type/status flags.
174
175
176           q            Asynchronous queue statistics.
177
178           The following display-option is only available for sndr  mode,  and
179           needs to be combined with the mode options (-m).
180
181           q            Asynchronous queue statistics.
182
183           The default display-options for sndr are spf.
184
185           Specifying  the summary display-option causes r w t display-options
186           to be ignored.
187
188
189       -s volume-sets      Filters the output to include  only  the  specified
190                           volume-sets, where volume-sets is a comma-delimited
191                           list of volume names. When displaying Remote Mirror
192                           statistics,  the  name specified is compared to the
193                           Remote Mirror primary volume to determine  if  they
194                           match. Additionally, an Remote Mirror volume should
195                           be specified as <host>:<volume> where <host> is the
196                           primary  or secondary host and <volume> is the vol‐
197                           ume name by which that host recognizes  the  volume
198                           set. When specifying multiple Remote Mirror volumes
199                           sets, be aware that each volume  set  specified  is
200                           evaluated individually, using the rules above. When
201                           displaying Point-in-Time Copy statistics, the  vol‐
202                           ume name specified is compared to the Point-in-Time
203                           Copy shadow volume to determine if they match.
204
205
206       -f                  Output field headers at every reporting cycle.
207
208
209       -F                  Output field headers once, when reporting begins.
210
211
212       -z                  Suppress report lines that have zero values  or  no
213                           activity.
214
215

OPERANDS

217       The dsstat command line supports the following operands:
218
219       interval
220
221           Specifies  the interval for each report, in seconds. If no interval
222           is specified, a single report with a one second interval is output.
223
224           Due to the varying number of entries in a given set and the varying
225           number  of sets, header information might appear in the middle of a
226           set being reported. To avoid this, use the -f or -F options to dis‐
227           play the header information at the desired time.
228
229
230       count
231
232           Specifies  the number of reports to generate. If no count is speci‐
233           fied, output continues until interrupted.
234
235
236   Field Descriptions
237       Unless otherwise specified, all fields are per-second averages based on
238       the data collected during the specified interval.
239
240       name         Name of the entity being reported
241
242
243       t            Volume type
244
245
246       s            Volume status
247
248
249       r            Cache read behavior
250
251
252       w            Cache write behavior
253
254
255       pct          Percentage of volume requiring sync
256
257
258       role         Role of the item being reported
259
260
261       tps          Total number of reads + writes
262
263
264       rtps         Number of reads
265
266
267       wtps         Number of writes
268
269
270       kps          Total kilobytes read + written
271
272
273       rkps         Kilobytes read
274
275
276       wkps         Kilobytes written
277
278
279       crkps        Kilobytes read from cache
280
281
282       drkps        Kilobytes read from disk
283
284
285       cwkps        Kilobytes written to cache
286
287
288       dwkps        Kilobytes written to disk
289
290
291       ckps         Kilobytes transferred to or from cache
292
293
294       dkps         Kilobytes transferred to or from disk
295
296
297       svt          Service time per operation
298
299
300       hit          Read hits during interval
301
302
303       ds/s         Kilobytes destaged from cache
304
305
306       cn/s         Number of write cancellations
307
308
309       q            Type of asynchronous queuing being used
310
311
312       qi           Number of items currently queued
313
314
315       qk           Kilobytes currently queued
316
317
318       qhwi         High water mark of queued items
319
320
321       qhwk         High water mark of queued kilobytes
322
323
324
325       The name field displays only the last 16 characters of the name.
326
327
328       Valid cache behaviors for cache are:
329
330       C            Cache reads/writes
331
332
333       D            Disk reads/writes
334
335
336
337       Valid volume types for ii are:
338
339       I            Independent shadow volume
340
341
342       D            Dependent shadow volume
343
344
345
346       Valid volume status for ii is:
347
348       C            Copy in progress
349
350
351       -            No copy in progress
352
353
354
355       Valid volume types for sndr are:
356
357       P            This is the primary host of this volume set
358
359
360       S            This is the secondary host of this volume set
361
362
363
364       Valid volume status for sndr is:
365
366       L            Changes to this volume are being logged
367
368
369       Q            Volume are in queuing mode
370
371
372       R            Replicating changes to secondary
373
374
375       SY           Synchronization in progress. Sending data.
376
377
378       RS           Reverse synchronization in progress. Receiving data.
379
380
381       SN           Synchronization needed
382
383
384       RN           Reverse synchronization needed
385
386
387       VF           Volume failed
388
389
390       BF           Bitmap failed
391
392
393       QF           Queue failed
394
395
396
397       Valid queue types for sndr are:
398
399       D            Disk-based queuing enabled
400
401
402       M            Memory-based queuing enabled
403
404
405
406       Volume roles for sndr are:
407
408       net          Network volume statistics
409
410
411       bmp          Bitmap volume statistics
412
413
414
415       Volume roles for ii are:
416
417       mst          Master volume statistics
418
419
420       shd          Shadow volume statistics
421
422
423       bmp          Bitmap volume statistics
424
425
426       ovr          Overflow volume statistics
427
428

EXAMPLES

430       Example 1 Report Cache Statistics
431
432
433       The  following  example  shows  the display of Report Cache statistics,
434       with detailed breakdowns of read and writes to cache/disk. Reports  are
435       generated  at  five  second  intervals. Reporting is limited to the set
436       /dev/rdsk/c1t1d0s0.
437
438
439          # dsstat -m cache -d rw -s /dev/rdsk/c1t1d0s0 5
440         - read -             - write -
441         name                ckps   dkps    hit   ckps   dkps    hit
442         dev/rdsk/c1t1d0s0      0      0   0.00      0      0   0.00
443         dev/rdsk/c1t1d0s0      3   2396   0.13    983    763 100.00
444         dev/rdsk/c1t1d0s0   2399    799  75.00   2815   2686 100.00
445         dev/rdsk/c1t1d0s0   3200    800  80.00   2755   2908 100.00
446         dev/rdsk/c1t1d0s0   3999    799  83.33   2809   2868 100.00
447         dev/rdsk/c1t1d0s0   4800    800  85.71   2867   2931 100.00
448
449
450       Example 2 Report Master, Shadow and Bitmap Statistics
451
452
453       Report master, shadow and bitmap  statistics  for  Point-in-Time  Copy,
454       using default output. Generate reports at two second intervals.
455
456
457         # dsstat -m ii -r msb 2
458         name               t  s    pct role    kps   tps  svt
459         dev/rdsk/c0t1d0s5  I  C  96.15  mst  19921    38   22
460         dev/rdsk/c0t1d0s6               shd   9960    19   20
461         dev/rdsk/c0t1d0s7               bmp     39    77    2
462         dev/rdsk/c0t1d0s5  I  C  94.24  mst  19623    38   22
463         dev/rdsk/c0t1d0s6               shd   9939    19   20
464         dev/rdsk/c0t1d0s7               bmp     39    77    2
465         dev/rdsk/c0t1d0s5  I  C  92.34  mst  19969    39   22
466         dev/rdsk/c0t1d0s6               shd   9984    19   20
467         dev/rdsk/c0t1d0s7               bmp     39    78    2
468
469
470       Example 3 Report Network Statistics for Remote Mirror
471
472
473       Report network statistics for Remote Mirror, using detailed read, write
474       statistics. Report includes volume type/status flags  and  percentages.
475       Generate  reports  at  two second intervals. Limit reporting to the set
476       /dev/rdsk/c0t1d0s0.
477
478
479         # dsstat -m sndr -r n -d rwpf -s /dev/rdsk/c0t1d0s0 2
480         name               t  s    pct role   rkps  rtps   wkps  wtps
481         dev/rdsk/c0t1d0s0  P  L 100.00  sec      0     0      0     0
482         dev/rdsk/c0t1d0s0  P SY  99.90  sec      0     0    288     9
483         dev/rdsk/c0t1d0s0  P SY  97.90  sec      0     0   5296   165
484         dev/rdsk/c0t1d0s0  P SY  95.81  sec      0     0   5184   161
485         dev/rdsk/c0t1d0s0  P SY  93.81  sec      0     0   5280   164
486         dev/rdsk/c0t1d0s0  P SY  91.71  sec      0     0   5198   162
487
488

EXIT STATUS

490       The following exit values are returned:
491
492       0            Successful completion.
493
494
495       1            Successful completion, no statistics to report.
496
497
498       2            An invalid argument has been encountered.
499
500
501       3            No memory is available to create kstat statistics.
502
503
504       4            An unknown error has occurred.
505
506

ATTRIBUTES

508       See attributes(5) for descriptions of the following attributes:
509
510
511
512
513       ┌─────────────────────────────┬─────────────────────────────┐
514       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
515       ├─────────────────────────────┼─────────────────────────────┤
516       │Availability                 │SUNWscmr, SUNWscmu           │
517       ├─────────────────────────────┼─────────────────────────────┤
518       │Interface Stability          │Evolving                     │
519       └─────────────────────────────┴─────────────────────────────┘
520

SEE ALSO

522       dscfg(1M), svadm(1M), ds.log(4), rdc.cf(4), attributes(5)
523
524
525
526SunOS 5.11                        2 Oct 2007                        dsstat(1M)
Impressum