|
|||
PLEASE NOTE: THIS TECH NOTE AND THE METHODS OUTLINED HEREIN REPLACE THE PREVIOUS METHODS FOR BUILDING DEVICE DRIVERS ON SOLARIS INSTALLATIONS RUNNING AN EARLIER VERSION THAN SOLARIS 8 (i.e. ST AND DS DRIVERS) |
|||
| Overview sgen works in a broadly similar fashion to the st driver, in that you must enter the relevant information about the devices into a configuration file, and then run a utility that uses this configuration file to build the actual drivers. sgen is able to build drivers for many different kinds of device (including both changers and drives), and hence you only need to use the sgen utility to build drivers for all. Drivers are then built in individual directories in /dev/scsi according to device type. The examples detailed below all use scsi devices. Remember that if you are using fibre channel devices, you'll need to include separate entries in the sgen.conf file for all relevant lun addresses for an ID. |
|||
Example In this example, we'll add a changer and 2 drives. The changer is scsi id 6 and the drives are scsi ids 1 and 2. 1 Edit the file /kernel/drv/sgen.conf. A sample file appears below: # The sgen.conf file consists of two major sections - the device type config list and the scsi addresses. To enable the sgen utility to build drivers for the relevant devices, you have to edit the file to include the type of device(s) for which you want drivers, and the scsi addresses of those devices. To create a list of
device types, edit the line Sequential is used for drives, changer for autochangers. Next, you have to
uncomment the lines of the relevant scsi ids from the list at the bottom
of the file. You can of course merely use the scsi ids of the individual
devices thus: However, it is usually a good idea to uncomment all of the scsi ids. This will build device files for each scsi id, which means that you can add devices, change the ids of the current devices etc without having to rebuild the sgen drivers. |
|||
| 2 When you have edited and saved the sgen.conf file, you can use add_drv sgen to build the drivers. In some cases, you may need to remove existing device drivers first. To do this, run rem_drv sgen, then add_drv sgen. | |||
| Running add_drv sgen builds device drivers for each of the device types listed in sgen.conf. Each device type has its own directory in /dev/scsi, so using the example above, after add_drv sgen has been run, /dev/scsi/sequential and /dev/scsi/changer would be created. The actual device files would reside in these directories, and it is these that should be specified for each relevant device in the Flashnet UI. | |||
==END== |