Solaris: HBA driver configuration best practices

Follow

Description

This article describes how to configure fibre channel drivers and other system settings in Solaris for better performance with Infinibox.

This is a manual configuration step that is currently not supported in Host Power Tools.

Manual configuration guide

Recommended settings

  • For QLogic ports, the configuration file is located in /kernel/drv/qlc.conf.
  • For Emulex ports, the configuration file is located in /kernel/drv/emlxs.conf.
  • General system settings are in /etc/system file.

To check the current configuration, please run:

grep "device-type-scsi-options-list" /kernel/drv/scsi_vhci.conf
 
awk '/^max-frame-length|^connection-options|^fc-data-rate/' /kernel/drv/qlc.conf
awk '/^num-iocbs|^max-xfer-size|^topology|^link-speed/' /kernel/drv/emlxs.conf

And make sure the output contains the following values:

# Settings in /kernel/drv/scsi_vhci.conf:
# device-type-scsi-options-list = 			# You should make sure this line is commented, and the lines after it.

# Settings for QLogic driver
max-frame-length=2048;
connection-options=1;
fc-data-rate=2;
 
# Settings for Emulex driver
num-iocbs=2048;
max-xfer-size=1388544;
topology=6;
link-speed=0;

Manual fix

  • To disable any vendor specific options, you should comment out the following line and the lines beneath it inside /kernel/drv/scsi_vhci.conf:

    # device-type-scsi-options-list =


  • To set the QLogic driver properties, edit the lines inside /kernel/drv/qlc.conf that correspond to the recommended settings above.
  • To set the Emulex driver properties, edit the lines inside /kernel/drv/emlxs.conf that correspond to the recommended settings above.

Other settings

Various tuneable SCSI settings, can be retrieved using mdb. Note that the default values are fine. To view them, type:

echo "sd_max_throttle /U" |mdb -k
echo "fcp_offline_delay /U" |mdb -k
echo "fp_offline_ticker /U" |mdb -k

You can set them using:

set sd: sd_max_throttle = 256
set fcp:fcp_offline_delay = 20
set fp:fp_offline_ticker = 90

A reboot is required after changing any of the above settings.

Attention! Changing the above settings may break compatibility with other vendors.

The license could not be verified: License Certificate has expired!

 


Comments