#
#
# Install  COMSTAR software

% pkg install storage-server

#
# Verify QLC device contains pciex1077,2531
% echo ::devbindings -q qlc | mdb -k
ffffc1c0086e3d10 pciex1077,2031, instance #0 (driver name: qlc)
ffffc1c0086e3a28 pciex1077,2031, instance #1 (driver name: qlc)

# Notify the system to replace the qlc driver with the the qlt (Qlogic
# Target driver) for this device.
  % cp /etc/driver_aliases /etc/driver_aliases.orig
  % update_drv -d -i '"pciex1077,2031"' qlc
  % nawk '!($1 == "qlc" && $2 == "\"pciex1077,2031\"")' /etc/driver_aliases > /etc/driver_aliases.new
  % cp /etc/driver_aliases.new /etc/driver_aliases
  % update_drv -a -i '"pciex1077,2031"' qlt
  devfsadm: driver failed to attach: qlt
  Warning: Driver (qlt) successfully added to system but failed to attach

# Reboot the system to complete qlt driver install
  % reboot

# After reboot, check that qlc devices are now in target mode
# where the qlt driver is loaded:

%  echo "::devbindings -q qlt" | mdb -k
ffffc1c0086e3d10 pciex1077,2031, instance #0 (driver name: qlt)
ffffc1c0086e3a28 pciex1077,2031, instance #1 (driver name: qlt)

# Configure Solaris Volume manager metadevices and COMSTAR LUNS
# for redo and data devices.
