'hpsa' - A SCSI-based Linux device driver for HP Smart Array Controllers
6
Log and information files
After transitioning to the hpsa driver, log files like /var/log/messages contain lines tagged with “hpsa” instead of
“cciss”.
Driver information files like /proc/driver/cciss/cciss# no longer contain controller information. Now,
/proc/scsi/scsi or the lsscsi –long command provides similar information.
Use the sysfs file system to discover and set attributes of the driver. The sysfs attribute files provide information
about the controller and logical disk devices. Use the command cat <filename> to read the values in the files.
Table 2 lists the file name and available driver attributes.
Table 2. Driver attributes.
Attribute
File name
Board ID
/sys/bus/pci/drivers/hpsa/<id>/device (controller family)
/sys/bus/pci/drivers/hpsa/<id>/subsystem_device (controller model)
/sys/bus/pci/drivers/hpsa/<id>/vendor
/sys/bus/pci/drivers/hpsa/<id>/subsystem_vendor
Controller firmware version
/sys/class/scsi_disk/c:b:t:l/device/rev
c:b:t:l represents controller, bus, target, and logical unit number (LUN)
Driver version
/sys/bus/pci/drivers/hpsa/module/version
IRQ
/sys/bus/pci/drivers/hpsa/<id>/irq
Number of logical drives
/proc/scsi/scsi
Controller firmware version
/proc/scsi/scsi
Current queue depth
/sys/class/scsi_disk/c:b:t:l/device/queue_depth
Supported number of commands on controller
/sys/class/scsi_host/host[0-9]/can_queue
Scatter-gather entries
/sys/class/scsi_host/host[0-9]/sg_tablesize
Logical drive unique ID
/sys/class/scsi_disk/c:b:t:l/device/unique_id
Logical drive RAID type
/sys/class/scsi_disk/c:b:t:l/device/raid_level
You can also control aspects of the driver behavior by using /sys attribute files, such as rescan. For example, use the
following command to scan for device changes:
echo 1 > /sys/class/scsi_host/host[0-9]/rescan (replace host[0-9] with proper host number for the controller).
A manual rescan is not normally required, but may be useful after hot plugging certain types of devices, like tape drives
or new storage enclosures, or after other types of changes to the storage configuration, such as LUN size changes.