'\" te .\" Copyright (c) 2007, Sun Microsystems, Inc. All rights reserved. .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License. .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner] .TH dsstat 1M "2 Oct 2007" "SunOS 5.11" "System Administration Commands" .SH NAME dsstat \- report Sun StorageTek Availability Suite I/O statistics .SH SYNOPSIS .LP .nf \fBdsstat\fR \fB-m\fR \fImode\fR [\fB-r\fR \fIreport-options\fR] [\fB-d\fR \fIdisplay-options\fR] [\fB-s\fR \fIvolume-sets\fR] [\fB-f\fR | \fB-F\fR] [\fB-z\fR] [\fIinterval\fR [\fIcount\fR]] .fi .SH DESCRIPTION .sp .LP The \fBdsstat\fR command collects and reports I/O statistics for the Sun StorageTek Availability Suite products. .SH OPTIONS .sp .LP The \fBdsstat\fR supports the following options: .sp .ne 2 .mk .na \fB\fB-m\fR \fB\fImode\fR\fR\fR .ad .sp .6 .RS 4n Specifies the mode(s) of operation. Valid modes are: .sp .ne 2 .mk .na \fB\fBcache\fR\fR .ad .sp .6 .RS 4n Cache statistics .RE .sp .ne 2 .mk .na \fB\fBii\fR\fR .ad .sp .6 .RS 4n Point-in-Time Copy statistics .RE .sp .ne 2 .mk .na \fB\fBsndr\fR\fR .ad .sp .6 .RS 4n Remote Mirror statistics .RE To display statistics for multiple services simultaneously, use the \fB-m\fR switch to specify each of the modes required. For example: .sp .in +2 .nf % \fBdsstat -m ii -m sndr\fR % \fBdsstat -m ii -m sndr -m cache\fR .fi .in -2 .sp To determine which statistics are being reported from which service, use the \fIrole\fR field, described below. When cache statistics are requested as one of the multiple services, the \fBrkps\fR and \fBwkps\fR statistics is further divided into \fBcrkps\fR, \fBdrkps\fR, \fBcwkps\fR, and \fBdwkps\fR. If no \fB-m\fR switch is specified, then \fBdsstat\fR displays default statistics for all of the valid modes as described above. See "Field Descriptions," below for descriptions of these fields. .RE .sp .ne 2 .mk .na \fB\fB-r\fR \fB\fIreport-options\fR\fR\fR .ad .sp .6 .RS 4n Specifies the volume components to be displayed. Each item is represented by a single character, and multiple items can be selected. The \fIreport-options\fR vary based on the mode(s) specified above. This option is not used for \fBcache\fR mode. .sp Valid \fIreport-options\fR for \fBii\fR mode are: .sp .ne 2 .mk .na \fB\fBm\fR\fR .ad .RS 13n .rt Master volume statistics. .RS +4 .TP .ie t \(bu .el o For the "report-options for ii mode": \fBm\fR, \fBs\fR, \fBb\fR, \fBo\fR .RE .RS +4 .TP .ie t \(bu .el o For the "report-options for sndr mode": \fBb\fR, \fBn\fR .RE .RS +4 .TP .ie t \(bu .el o For the "display-options for cache mode": \fBr\fR, \fBw\fR, \fBd\fR, \fBc\fR, \fBs\fR, \fBf\fR .RE .RS +4 .TP .ie t \(bu .el o For the "display-options for ii mode": \fBr\fR, \fBw\fR, \fBt\fR, \fBs\fR, \fBp\fR, \fBf\fR .RE .RE .sp .ne 2 .mk .na \fB\fBs\fR\fR .ad .RS 13n .rt Shadow volume statistics. .RE .sp .ne 2 .mk .na \fB\fBb\fR\fR .ad .RS 13n .rt Bitmap volume statistics. .RE .sp .ne 2 .mk .na \fB\fBo\fR\fR .ad .RS 13n .rt Overflow volume statistics, if attached. .RE Valid \fIreport-options\fR for \fBsndr\fR mode are: .sp .ne 2 .mk .na \fB\fBb\fR\fR .ad .RS 13n .rt Bitmap volume statistics. .RE .sp .ne 2 .mk .na \fB\fBn\fR\fR .ad .RS 13n .rt Network volume statistics. .RE .RE .sp .ne 2 .mk .na \fB\fB-d\fR \fIdisplay-options\fR\fR .ad .sp .6 .RS 4n Specifies the statistics to be displayed. The types of statistics are represented by a single character; multiple types can be specified. .sp For \fBcache\fR mode, the valid \fIdisplay-options\fR are: .sp .ne 2 .mk .na \fB\fBr\fR\fR .ad .RS 13n .rt Detailed read statistics. .RE .sp .ne 2 .mk .na \fB\fBw\fR\fR .ad .RS 13n .rt Detailed write statistics. .RE .sp .ne 2 .mk .na \fB\fBs\fR\fR .ad .RS 13n .rt Summary statistics. .RE .sp .ne 2 .mk .na \fB\fBf\fR\fR .ad .RS 13n .rt Cache behavior flags. .RE The following \fIdisplay-options\fR are available only for cache mode, they need to be combined with the mode options (\fB-m\fR) .sp .ne 2 .mk .na \fB\fBd\fR\fR .ad .RS 13n .rt Destaged data statistics. .RE .sp .ne 2 .mk .na \fB\fBc\fR\fR .ad .RS 13n .rt Write cancellation statistics. .RE The default \fIdisplay-options\fR for \fBcache\fR are \fBsf\fR. .sp For \fBii\fR mode, the valid \fIdisplay-options\fR are: .sp .ne 2 .mk .na \fB\fBr\fR\fR .ad .sp .6 .RS 4n Detailed read statistics. .RE .sp .ne 2 .mk .na \fB\fBw\fR\fR .ad .sp .6 .RS 4n Detailed write statistics. .RE .sp .ne 2 .mk .na \fB\fBt\fR\fR .ad .sp .6 .RS 4n Timing statistics. .RE .sp .ne 2 .mk .na \fB\fBs\fR\fR .ad .sp .6 .RS 4n Summary statistics. .RE .sp .ne 2 .mk .na \fB\fBp\fR\fR .ad .sp .6 .RS 4n Percentage of volume requiring sync. .RE .sp .ne 2 .mk .na \fB\fBf\fR\fR .ad .sp .6 .RS 4n Volume type/status flags. .RE The default \fIdisplay-options\fR for \fBii\fR are \fBspf\fR. For \fBsndr\fR mode, the valid \fIdisplay-options\fR are: .sp .ne 2 .mk .na \fB\fBr\fR\fR .ad .RS 13n .rt Detailed read statistics. .RE .sp .ne 2 .mk .na \fB\fBw\fR\fR .ad .RS 13n .rt Detailed write statistics. .RE .sp .ne 2 .mk .na \fB\fBt\fR\fR .ad .RS 13n .rt Timing statistics. .RE .sp .ne 2 .mk .na \fB\fBs\fR\fR .ad .RS 13n .rt Summary statistics. .RE .sp .ne 2 .mk .na \fB\fBp\fR\fR .ad .RS 13n .rt Percentage of volume requiring sync. .RE .sp .ne 2 .mk .na \fB\fBf\fR\fR .ad .RS 13n .rt Volume type/status flags. .RE .sp .ne 2 .mk .na \fB\fBq\fR\fR .ad .RS 13n .rt Asynchronous queue statistics. .RE The following \fIdisplay-option\fR is only available for \fBsndr\fR mode, and needs to be combined with the mode options (\fB-m\fR). .sp .ne 2 .mk .na \fB\fBq\fR\fR .ad .RS 13n .rt Asynchronous queue statistics. .RE The default \fIdisplay-options\fR for \fBsndr\fR are \fBspf\fR. .sp Specifying the summary \fIdisplay-option\fR causes \fBr\fR \fBw\fR \fBt\fR \fIdisplay-options\fR to be ignored. .RE .sp .ne 2 .mk .na \fB\fB-s\fR \fB\fIvolume-sets\fR\fR\fR .ad .RS 20n .rt Filters the output to include only the specified \fIvolume-sets\fR, where \fIvolume-sets\fR is a comma-delimited list of volume names. When displaying Remote Mirror statistics, the name specified is compared to the Remote Mirror primary volume to determine if they match. Additionally, an Remote Mirror volume should be specified as \fI\fR:\fI\fR where \fI\fR is the primary or secondary host and \fI\fR is the volume name by which that host recognizes the volume set. When specifying multiple Remote Mirror volumes sets, be aware that each volume set specified is evaluated individually, using the rules above. When displaying Point-in-Time Copy statistics, the volume name specified is compared to the Point-in-Time Copy shadow volume to determine if they match. .RE .sp .ne 2 .mk .na \fB\fB-f\fR\fR .ad .RS 20n .rt Output field headers at every reporting cycle. .RE .sp .ne 2 .mk .na \fB\fB-F\fR\fR .ad .RS 20n .rt Output field headers once, when reporting begins. .RE .sp .ne 2 .mk .na \fB\fB-z\fR\fR .ad .RS 20n .rt Suppress report lines that have zero values or no activity. .RE .SH OPERANDS .sp .LP The \fBdsstat\fR command line supports the following operands: .sp .ne 2 .mk .na \fB\fIinterval\fR\fR .ad .sp .6 .RS 4n Specifies the \fIinterval\fR for each report, in seconds. If no \fIinterval\fR is specified, a single report with a one second \fIinterval\fR is output. .sp 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 \fB-f\fR or \fB-F\fR options to display the header information at the desired time. .RE .sp .ne 2 .mk .na \fB\fIcount\fR\fR .ad .sp .6 .RS 4n Specifies the number of reports to generate. If no \fIcount\fR is specified, output continues until interrupted. .RE .SS "Field Descriptions" .sp .LP Unless otherwise specified, all fields are per-second averages based on the data collected during the specified \fIinterval\fR. .sp .ne 2 .mk .na \fB\fBname\fR\fR .ad .RS 13n .rt Name of the entity being reported .RE .sp .ne 2 .mk .na \fB\fBt\fR\fR .ad .RS 13n .rt Volume type .RE .sp .ne 2 .mk .na \fB\fBs\fR\fR .ad .RS 13n .rt Volume status .RE .sp .ne 2 .mk .na \fB\fBr\fR\fR .ad .RS 13n .rt Cache read behavior .RE .sp .ne 2 .mk .na \fB\fBw\fR\fR .ad .RS 13n .rt Cache write behavior .RE .sp .ne 2 .mk .na \fB\fBpct\fR\fR .ad .RS 13n .rt Percentage of volume requiring sync .RE .sp .ne 2 .mk .na \fB\fBrole\fR\fR .ad .RS 13n .rt Role of the item being reported .RE .sp .ne 2 .mk .na \fB\fBtps\fR\fR .ad .RS 13n .rt Total number of reads + writes .RE .sp .ne 2 .mk .na \fB\fBrtps\fR\fR .ad .RS 13n .rt Number of reads .RE .sp .ne 2 .mk .na \fB\fBwtps\fR\fR .ad .RS 13n .rt Number of writes .RE .sp .ne 2 .mk .na \fB\fBkps\fR\fR .ad .RS 13n .rt Total kilobytes read + written .RE .sp .ne 2 .mk .na \fB\fBrkps\fR\fR .ad .RS 13n .rt Kilobytes read .RE .sp .ne 2 .mk .na \fB\fBwkps\fR\fR .ad .RS 13n .rt Kilobytes written .RE .sp .ne 2 .mk .na \fB\fBcrkps\fR\fR .ad .RS 13n .rt Kilobytes read from cache .RE .sp .ne 2 .mk .na \fB\fBdrkps\fR\fR .ad .RS 13n .rt Kilobytes read from disk .RE .sp .ne 2 .mk .na \fB\fBcwkps\fR\fR .ad .RS 13n .rt Kilobytes written to cache .RE .sp .ne 2 .mk .na \fB\fBdwkps\fR\fR .ad .RS 13n .rt Kilobytes written to disk .RE .sp .ne 2 .mk .na \fB\fBckps\fR\fR .ad .RS 13n .rt Kilobytes transferred to or from cache .RE .sp .ne 2 .mk .na \fB\fBdkps\fR\fR .ad .RS 13n .rt Kilobytes transferred to or from disk .RE .sp .ne 2 .mk .na \fB\fBsvt\fR\fR .ad .RS 13n .rt Service time per operation .RE .sp .ne 2 .mk .na \fB\fBhit\fR\fR .ad .RS 13n .rt Read hits during \fIinterval\fR .RE .sp .ne 2 .mk .na \fB\fBds/s\fR\fR .ad .RS 13n .rt Kilobytes destaged from cache .RE .sp .ne 2 .mk .na \fB\fBcn/s\fR\fR .ad .RS 13n .rt Number of write cancellations .RE .sp .ne 2 .mk .na \fB\fBq\fR\fR .ad .RS 13n .rt Type of asynchronous queuing being used .RE .sp .ne 2 .mk .na \fB\fBqi\fR\fR .ad .RS 13n .rt Number of items currently queued .RE .sp .ne 2 .mk .na \fB\fBqk\fR\fR .ad .RS 13n .rt Kilobytes currently queued .RE .sp .ne 2 .mk .na \fB\fBqhwi\fR\fR .ad .RS 13n .rt High water mark of queued items .RE .sp .ne 2 .mk .na \fB\fBqhwk\fR\fR .ad .RS 13n .rt High water mark of queued kilobytes .RE .sp .LP The \fBname\fR field displays only the last 16 characters of the name. .sp .LP Valid cache behaviors for \fBcache\fR are: .sp .ne 2 .mk .na \fB\fBC\fR\fR .ad .RS 13n .rt Cache reads/writes .RE .sp .ne 2 .mk .na \fB\fBD\fR\fR .ad .RS 13n .rt Disk reads/writes .RE .sp .LP Valid volume types for \fBii\fR are: .sp .ne 2 .mk .na \fB\fBI\fR\fR .ad .RS 13n .rt Independent shadow volume .RE .sp .ne 2 .mk .na \fB\fBD\fR\fR .ad .RS 13n .rt Dependent shadow volume .RE .sp .LP Valid volume status for \fBii\fR is: .sp .ne 2 .mk .na \fB\fBC\fR\fR .ad .RS 13n .rt Copy in progress .RE .sp .ne 2 .mk .na \fB\fB-\fR\fR .ad .RS 13n .rt No copy in progress .RE .sp .LP Valid volume types for \fBsndr\fR are: .sp .ne 2 .mk .na \fB\fBP\fR\fR .ad .RS 13n .rt This is the primary host of this volume set .RE .sp .ne 2 .mk .na \fB\fBS\fR\fR .ad .RS 13n .rt This is the secondary host of this volume set .RE .sp .LP Valid volume status for \fBsndr\fR is: .sp .ne 2 .mk .na \fB\fBL\fR\fR .ad .RS 13n .rt Changes to this volume are being logged .RE .sp .ne 2 .mk .na \fB\fBQ\fR\fR .ad .RS 13n .rt Volume are in queuing mode .RE .sp .ne 2 .mk .na \fB\fBR\fR\fR .ad .RS 13n .rt Replicating changes to secondary .RE .sp .ne 2 .mk .na \fB\fBSY\fR\fR .ad .RS 13n .rt Synchronization in progress. Sending data. .RE .sp .ne 2 .mk .na \fB\fBRS\fR\fR .ad .RS 13n .rt Reverse synchronization in progress. Receiving data. .RE .sp .ne 2 .mk .na \fB\fBSN\fR\fR .ad .RS 13n .rt Synchronization needed .RE .sp .ne 2 .mk .na \fB\fBRN\fR\fR .ad .RS 13n .rt Reverse synchronization needed .RE .sp .ne 2 .mk .na \fB\fBVF\fR\fR .ad .RS 13n .rt Volume failed .RE .sp .ne 2 .mk .na \fB\fBBF\fR\fR .ad .RS 13n .rt Bitmap failed .RE .sp .ne 2 .mk .na \fB\fBQF\fR\fR .ad .RS 13n .rt Queue failed .RE .sp .LP Valid queue types for \fBsndr\fR are: .sp .ne 2 .mk .na \fB\fBD\fR\fR .ad .RS 13n .rt Disk-based queuing enabled .RE .sp .ne 2 .mk .na \fB\fBM\fR\fR .ad .RS 13n .rt Memory-based queuing enabled .RE .sp .LP Volume roles for \fBsndr\fR are: .sp .ne 2 .mk .na \fB\fBnet\fR\fR .ad .RS 13n .rt Network volume statistics .RE .sp .ne 2 .mk .na \fB\fBbmp\fR\fR .ad .RS 13n .rt Bitmap volume statistics .RE .sp .LP Volume roles for \fBii\fR are: .sp .ne 2 .mk .na \fB\fBmst\fR\fR .ad .RS 13n .rt Master volume statistics .RE .sp .ne 2 .mk .na \fB\fBshd\fR\fR .ad .RS 13n .rt Shadow volume statistics .RE .sp .ne 2 .mk .na \fB\fBbmp\fR\fR .ad .RS 13n .rt Bitmap volume statistics .RE .sp .ne 2 .mk .na \fB\fBovr\fR\fR .ad .RS 13n .rt Overflow volume statistics .RE .SH EXAMPLES .LP \fBExample 1 \fRReport Cache Statistics .sp .LP 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 \fB/dev/rdsk/c1t1d0s0\fR. .sp .in +2 .nf # 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 .fi .in -2 .LP \fBExample 2 \fRReport Master, Shadow and Bitmap Statistics .sp .LP Report master, shadow and bitmap statistics for Point-in-Time Copy, using default output. Generate reports at two second intervals. .sp .in +2 .nf # 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 .fi .in -2 .LP \fBExample 3 \fRReport Network Statistics for Remote Mirror .sp .LP 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 \fB/dev/rdsk/c0t1d0s0\fR. .sp .in +2 .nf # 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 .fi .in -2 .SH EXIT STATUS .sp .LP The following exit values are returned: .sp .ne 2 .mk .na \fB\fB0\fR\fR .ad .RS 13n .rt Successful completion. .RE .sp .ne 2 .mk .na \fB\fB1\fR\fR .ad .RS 13n .rt Successful completion, no statistics to report. .RE .sp .ne 2 .mk .na \fB\fB2\fR\fR .ad .RS 13n .rt An invalid argument has been encountered. .RE .sp .ne 2 .mk .na \fB\fB3\fR\fR .ad .RS 13n .rt No memory is available to create \fBkstat\fR statistics. .RE .sp .ne 2 .mk .na \fB\fB4\fR\fR .ad .RS 13n .rt An unknown error has occurred. .RE .SH ATTRIBUTES .sp .LP See \fBattributes\fR(5) for descriptions of the following attributes: .sp .sp .TS tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) . ATTRIBUTE TYPEATTRIBUTE VALUE _ Interface StabilityEvolving .TE .SH SEE ALSO .sp .LP \fBdscfg\fR(1M), \fBsvadm\fR(1M), \fBds.log\fR(4), \fBrdc.cf\fR(4), \fBattributes\fR(5)