1 .\" Copyright (C) 2011, Hewlett-Packard Development Company, L.P.
2 .\" Written by Stephen M. Cameron <scameron@beardog.cce.hp.com>
4 .\" %%%LICENSE_START(GPLv2_ONELINE)
5 .\" Licensed under GNU General Public License version 2 (GPLv2)
8 .\" shorthand for double quote that works everywhere.
10 .TH HPSA 4 2012-08-05 "Linux" "Linux Programmer's Manual"
12 hpsa \- HP Smart Array SCSI driver
15 modprobe hpsa [ hpsa_allow_any=1 ]
19 is a SCSI driver for HP Smart Array RAID controllers.
21 .IR "hpsa_allow_any=1" :
22 This option allows the driver to attempt to operate on
23 any HP Smart Array hardware RAID controller,
24 even if it is not explicitly known to the driver.
25 This allows newer hardware to work with older drivers.
26 Typically this is used to allow installation of
27 operating systems from media that predates the
28 RAID controller, though it may also be used to enable
30 to drive older controllers that would normally be handled by the
33 These older boards have not been tested and are
38 should still be used for these.
39 .SS Supported hardware
42 driver supports the following Smart Array boards:
55 .SS Configuration details
56 To configure HP Smart Array controllers,
57 use the HP Array Configuration Utility (either
61 or the Offline ROM-based Configuration Utility (ORCA)
62 run from the Smart Array's option ROM at boot time.
65 Logical drives are accessed via the SCSI disk driver
67 tape drives via the SCSI tape driver
70 the RAID controller via the SCSI generic driver
72 with device nodes named
78 .SS HPSA-specific host attribute files in /sys
80 .I /sys/class/scsi_host/host*/rescan
81 This is a write-only attribute.
82 Writing to this attribute will cause the driver to scan for
83 new, changed, or removed devices (e.g,. hot-plugged tape drives,
84 or newly configured or deleted logical drives, etc.)
85 and notify the SCSI midlayer of any changes detected.
86 Normally a rescan is triggered automatically
87 by HP's Array Configuration Utility (either the GUI or the
88 command-line variety);
89 thus, for logical drive changes, the user should not
90 normally have to use this attribute.
91 This attribute may be useful when hot plugging devices like tape drives,
92 or entire storage boxes containing pre-configured logical drives.
94 .I /sys/class/scsi_host/host*/firmware_revision
95 This attribute contains the firmware version of the Smart Array.
100 # \fBcd /sys/class/scsi_host/host4\fP
101 # \fBcat firmware_revision\fP
104 .SS HPSA-specific disk attribute files in /sys
106 .I /sys/class/scsi_disk/c:b:t:l/device/unique_id
107 This attribute contains a 32 hex-digit unique ID for each logical drive.
112 # \fBcd /sys/class/scsi_disk/4:0:0:0/device\fP
113 # \fBcat unique_id\fP
114 600508B1001044395355323037570F77
117 .I /sys/class/scsi_disk/c:b:t:l/device/raid_level
118 This attribute contains the RAID level of each logical drive.
123 # \fBcd /sys/class/scsi_disk/4:0:0:0/device\fP
124 # \fBcat raid_level\fP
128 .I /sys/class/scsi_disk/c:b:t:l/device/lunid
129 This attribute contains the 16 hex-digit (8 byte) LUN ID
130 by which a logical drive or physical device can be addressed.
132 are the controller, bus, target and lun of the device.
137 # \fBcd /sys/class/scsi_disk/4:0:0:0/device\fP
141 .SS Supported ioctl() operations
142 For compatibility with applications written for the
145 not all of the ioctls supported by the
147 driver are also supported by the
150 The data structures used by these ioctls are described in
151 the Linux kernel source file
152 .IR include/linux/cciss_ioctl.h .
154 .BR CCISS_DEREGDISK ", " CCISS_REGNEWDISK ", " CCISS_REGNEWD
155 These three ioctls all do exactly the same thing,
156 which is to cause the driver to rescan for new devices.
157 This does exactly the same thing as writing to the
158 hpsa-specific host "rescan" attribute.
161 Returns PCI domain, bus, device and function and "board ID" (PCI subsystem ID).
164 Returns driver version in three bytes encoded as:
166 (major_version << 16) | (minor_version << 8) |
169 .BR CCISS_PASSTHRU ", " CCISS_BIG_PASSTHRU
170 Allows "BMIC" and "CISS" commands to be passed through to the Smart Array.
171 These are used extensively by the HP Array Configuration Utility,
172 SNMP storage agents, etc.
176 .UR http://cciss.sf.net
183 .BR cciss_vol_status (8),
187 .UR http://cciss.sf.net
190 .I Documentation/scsi/hpsa.txt
192 .I Documentation/ABI/testing/sysfs-bus-pci-devices-cciss
193 in the Linux kernel source tree
195 .\" Don Brace, Steve Cameron, Tom Lawler, Mike Miller, Scott Teel
196 .\" and probably some other people.