1 .\" Copyright (C) 2011, Hewlett-Packard Development Company, L.P.
2 .\" Written by Stephen M. Cameron <scameron@beardog.cce.hp.com>
3 .\" Licensed under GNU General Public License version 2 (GPLv2)
5 .\" shorthand for double quote that works everywhere.
7 .TH HPSA 4 2011-09-21 "Linux" "Linux Programmer's Manual"
9 hpsa \- HP Smart Array SCSI driver
12 modprobe hpsa [ hpsa_allow_any=1 ]
16 is a SCSI driver for HP Smart Array RAID controllers.
18 .IR "hpsa_allow_any=1" :
19 This option allows the driver to attempt to operate on
20 any HP Smart Array hardware RAID controller,
21 even if it is not explicitly known to the driver.
22 This allows newer hardware to work with older drivers.
23 Typically this is used to allow installation of
24 operating systems from media that predates the
25 RAID controller, though it may also be used to enable
27 to drive older controllers that would normally be handled by the
30 These older boards have not been tested and are
35 should still be used for these.
36 .SS Supported Hardware
39 driver supports the following Smart Array boards:
53 .SS Configuration Details
54 To configure HP Smart Array controllers,
55 use the HP Array Configuration Utility (either
59 or the Offline ROM-based Configuration Utility (ORCA)
60 run from the Smart Array's option ROM at boot time.
63 Logical drives are accessed via the SCSI disk driver
65 tape drives via the SCSI tape driver
68 the RAID controller via the SCSI generic driver
70 with device nodes named
76 .SS HPSA-Specific Host Attribute Files in /sys
78 .I /sys/class/scsi_host/host*/rescan
79 This is a write-only attribute.
80 Writing to this attribute will cause the driver to scan for
81 new, changed, or removed devices (e.g,. hot-plugged tape drives,
82 or newly configured or deleted logical drives, etc.)
83 and notify the SCSI midlayer of any changes detected.
84 Normally a rescan is triggered automatically
85 by HP's Array Configuration Utility (either the GUI or the
86 command-line variety);
87 thus, for logical drive changes, the user should not
88 normally have to use this attribute.
89 This attribute may be useful when hot plugging devices like tape drives,
90 or entire storage boxes containing pre-configured logical drives.
92 .I /sys/class/scsi_host/host*/firmware_revision
93 This attribute contains the firmware version of the Smart Array.
98 # \fBcd /sys/class/scsi_host/host4\fP
99 # \fBcat firmware_revision\fP
103 .SS HPSA-Specific Disk Attribute Files in /sys
105 .I /sys/class/scsi_disk/c:b:t:l/device/unique_id
106 This attribute contains a 32 hex-digit unique ID for each logical drive.
111 # \fBcd /sys/class/scsi_disk/4:0:0:0/device\fP
112 # \fBcat unique_id\fP
113 600508B1001044395355323037570F77
116 .I /sys/class/scsi_disk/c:b:t:l/device/raid_level
117 This attribute contains the RAID level of each logical drive.
122 # \fBcd /sys/class/scsi_disk/4:0:0:0/device\fP
123 # \fBcat raid_level\fP
127 .I /sys/class/scsi_disk/c:b:t:l/device/lunid
128 This attribute contains the 16 hex-digit (8 byte) LUN ID
129 by which a logical drive or physical device can be addressed.
131 are the controller, bus, target and lun of the device.
136 # \fBcd /sys/class/scsi_disk/4:0:0:0/device\fP
140 .SS Supported ioctl() operations
141 For compatibility with applications written for the
144 not all of the ioctls supported by the
146 driver are also supported by the
149 The data structures used by these ioctls are described in
150 the kernel source file
151 .IR include/linux/cciss_ioctl.h .
153 .BR CCISS_DEREGDISK ", " CCISS_REGNEWDISK ", " CCISS_REGNEWD
154 These three ioctls all do exactly the same thing,
155 which is to cause the driver to rescan for new devices.
156 This does exactly the same thing as writing to the
157 hpsa-specific host "rescan" attribute.
160 Returns PCI domain, bus, device and function and "board ID" (PCI subsystem ID).
163 Returns driver version in three bytes encoded as:
165 (major_version << 16) | (minor_version << 8) |
168 .BR CCISS_PASSTHRU ", " CCISS_BIG_PASSTHRU
169 Allows "BMIC" and "CISS" commands to be passed through to the Smart Array.
170 These are used extensively by the HP Array Configuration Utility,
171 SNMP storage agents, etc.
175 .I http://cciss.sf.net
181 .BR cciss_vol_status (8),
184 .IR http://cciss.sf.net ,
185 and the Linux kernel source files
186 .I Documentation/scsi/hpsa.txt
188 .I Documentation/ABI/testing/sysfs-bus-pci-devices-cciss
190 .\" Don Brace, Steve Cameron, Tom Lawler, Mike Miller, Scott Teel
191 .\" and probably some other people.