2 .\" Copyright (c) 2008, Sun Microsystems, Inc. All Rights Reserved
3 .\" 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.
4 .\" 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.
5 .\" 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]
6 .TH SSD 7D "Aug 9, 2008"
8 ssd \- Fibre Channel Arbitrated Loop disk device driver
12 \fBssd@\fR\fIport\fR\fB,\fR\fItarget\fR\fB:\fR\fIpartition\fR
18 The \fBssd\fR driver supports Fibre Channel disk devices.
21 The specific type of each disk is determined by the \fBSCSI\fR inquiry command
22 and reading the volume label stored on block 0 of the drive. The volume label
23 describes the disk geometry and partitioning; it must be present or the disk
24 cannot be mounted by the system.
27 The block-files access the disk using the system's normal buffering mechanism
28 and are read and written without regard to physical disk records. A "raw"
29 interface provides for direct transmission between the disk and the read or
30 write buffer. A single read or write call usually results in one I/O operation;
31 raw I/O is therefore more efficient when many bytes are transmitted. Block file
32 names are found in \fB/dev/dsk\fR; the names of the raw files are found in
36 I/O requests (such as \fBlseek\fR(2)) to the \fBSCSI\fR disk must have an
37 offset that is a multiple of 512 bytes (\fBDEV_BSIZE\fR), or the driver returns
38 an \fBEINVAL\fR error. If the transfer length is not a multiple of 512 bytes,
39 the transfer count is rounded up by the driver.
42 Partition 0 is normally used for the root file system on a disk, with partition
43 1 as a paging area (for example, \fBswap\fR). Partition 2 is used to back up
44 the entire disk. Partition 2 normally maps the entire disk and may also be used
45 as the mount point for secondary disks in the system. The rest of the disk is
46 normally partition 6. For the primary disk, the user file system is located
50 The device has associated error statistics. These must include counters for
51 hard errors, soft errors and transport errors. Other data may be implemented as
53 .SH DEVICE STATISTICS SUPPORT
56 The device maintains I/O statistics for the device and for partitions allocated
57 for that device. For each device/partition, the driver accumulates reads,
58 writes, bytes read, and bytes written. The driver also initiates hi-resolution
59 time stamps at queue entry and exit points to enable monitoring of residence
60 time and cumulative residence-length product for each queue.
63 Not all device drivers make per-partition IO statistics available for
64 reporting. \fBssd\fR and \fBsd\fR(7D) per-partition statistics are enabled by
65 default but may be disabled in their configuration files.
69 Refer to \fBdkio\fR(7I).
86 The partition was opened exclusively by another thread.
95 The argument was a bad address.
113 An I/O error occurred.
122 The device does not support the requested ioctl function.
131 When returned during \fBopen\fR(2), this error indicates the device does not
141 The device is a read-only device.
147 You configure the \fBssd\fR driver by defining properties in the
148 \fBssd.conf\fR file. The \fBssd\fR driver supports the following properties:
152 \fB\fBenable-partition-kstats\fR\fR
155 The default value is 1, which causes partition IO statistics to be maintained.
156 Set this value to zero to prevent the driver from recording partition
157 statistics. This slightly reduces the CPU overhead for IO, mimimizes the amount
158 of \fBsar\fR(1) data collected and makes these statistics unavailable for
159 reporting by \fBiostat\fR(1M) even though the \fB-p\fR/\fB-P\fR option is
160 specified. Regardless of this setting, disk IO statistics are always
166 In addition to the above properties, some device-specific tunables can be
167 configured in \fBssd.conf\fR using the 'ssd-config-list' global property. The
168 value of this property is a list of duplets. The formal syntax is:
172 ssd-config-list = <duplet> [, <duplet> ]* ;
176 <duplet>:= "<vid+pid>" , "<tunable-list>"
180 <tunable-list>:= <tunable> [, <tunable> ]*;
181 <tunable> = <name> : <value>
183 The <vid+pid> is the string that is returned by the target device
184 on a SCSI inquiry command.
186 The <tunable-list> contains one or more tunables to apply to
187 all target devices with the specified <vid+pid>.
189 Each <tunable> is a <name> : <value> pair. Supported
192 delay-busy: when busy, nsecs of delay before retry.
194 retries-timeout: retries to perform on an IO timeout.
202 The following is an example of a global ssd-config-list property:
205 "SUN T4", "delay-busy:600, retries-timeout:6",
206 "SUN StorEdge_3510", "retries-timeout:3";
217 Driver configuration file
223 \fB/dev/dsk/c\fIn\fR\fBt\fR\fIn\fR\fBd\fR\fIn\fR\fBs\fR\fIn\fR\fR
232 \fB/dev/rdsk/c\fIn\fR\fBt\fR\fIn\fR\fBd\fR\fIn\fR\fBs\fR\fIn\fR\fR
244 is the controller number on the system.
253 7-bit disk loop identifier, such as switch setting
271 partition \fIn\fR (0-7)
277 \fBsar\fR(1), \fBformat\fR(1M), \fBiostat\fR(1M), \fBioctl\fR(2),
278 \fBlseek\fR(2), \fBopen\fR(2), \fBread\fR(2), \fBwrite\fR(2),
279 \fBscsi\fR(4), \fBdriver.conf\fR(4), \fBcdio\fR(7I), \fBdkio\fR(7I)
282 \fIANSI Small Computer System Interface-2 (SCSI-2)\fR
285 \fIANSI X3.272-1996, Fibre Channel Arbitrated Loop (FC-AL)\fR
288 \fIFibre Channel - Private Loop SCSI Direct Attach (FC-PLDA)\fR
293 Error for command '<command name>' Error Level: Fatal Requested Block <n>,
294 Error Block: <m>, Sense Key: <sense key name>, Vendor '<vendor name>':
295 ASC = 0x<a> (<ASC name>), ASCQ = 0x<b>, FRU = 0x<c>
302 The command indicated by <command name> failed. The Requested Block is the
303 block where the transfer started and the Error Block is the block that caused
304 the error. Sense Key, ASC, and ASCQ information is returned by the target in
305 response to a request sense command.
309 Check Condition on REQUEST SENSE
316 A REQUEST SENSE command completed with a check condition. The original command
317 will be retried a number of times.
321 Label says <m> blocks Drive says <\fIn\fR> blocks
328 There is a discrepancy between the label and what the drive returned on the
329 READ CAPACITY command.
333 Not enough sense information
340 The request sense data was less than expected.
344 Request Sense couldn't get sense data
351 The REQUEST SENSE command did not transfer any data.
362 The drive was reserved by another initiator.
366 SCSI transport failed: reason 'xxxx' : {retrying|giving up}
373 The host adapter has failed to transport a command to the target for the
374 reason stated. The driver will either retry the command or, ultimately, give
379 Unhandled Sense Key <\fIn\fR>
386 The REQUEST SENSE data included an invalid sense key.
390 Unit not Ready. Additional sense code 0x<\fIn\fR>
397 The drive is not ready.
401 corrupt label - bad geometry
408 The disk label is corrupted.
412 corrupt label - label checksum failed
419 The disk label is corrupted.
423 corrupt label - wrong magic number
430 The disk label is corrupted.
441 The drive returned busy during a number of retries.
445 disk not responding to selection
452 The drive was probably powered down or died.
456 i/o to invalid geometry
463 The geometry of the drive could not be established.
467 incomplete read/write - retrying/giving up
474 There was a residue after the command completed normally.
478 logical unit not ready
485 The drive is not ready.
496 A bp with consistent memory could not be allocated.
507 Free memory pool exhausted.
511 no memory for disk label
518 Free memory pool exhausted.
522 no resources for dumping
529 A packet could not be allocated during dumping.
540 Drive went offline; probably powered down.
544 requeue of command fails<\fIn\fR>
551 Driver attempted to retry a command and experienced a transport error.
555 ssdrestart transport failed <\fIn\fR>
562 Driver attempted to retry a command and experienced a transport error.
566 transfer length not modulo <\fIn\fR>
573 Illegal request size.
577 transport rejected <\fIn\fR>
584 Host adapter driver was unable to accept a command.
595 Failure to read disk label.
599 unit does not respond to selection
606 Drive went offline; probably powered down.