How to configure SCSI target ID 7 on Solaris systems

Article:TECH31454  |  Created: 2010-01-02  |  Updated: 2013-10-24  |  Article URL
Article Type
Technical Solution




How to configure SCSI target ID 7 on Solaris systems


By default, the script will not build target 7 as this address is normally reserved for SCSI Host Bus Adapter (HBA) addresses. However, with a Fiber HBA, it is possible that devices may be configured on SCSI Target ID 7. To take this into consideration, one of two processes can be followed.

Process 1:

Perform the operations as you normally would, but prior to running the sg.install, modify the st.conf, sg.conf and sg.links files (usually located in /usr/openv/volmgr/bin/driver) to add support for target ID 7. To do this, add the following formatted lines as appropriate.

(NOTE: Additional SCSI Logical Unit Numbers (LUNs) might need to be taken into consideration). As an example, here are the entries that would need to be added in order to enable SCSI target ID 7 and LUNs 0 and 1:

name="st" class="scsi" target=7 lun=0;
name="st" class="scsi" target=7 lun=1;

name="sg" class="scsi" target=7 lun=0;
name="sg" class="scsi" target=7 lun=1;

type=ddi_pseudo;name=sg;addr=7,0;       sg/c\N0t7l0
type=ddi_pseudo;name=sg;addr=7,1;       sg/c\N0t7l1

Once the appropriate entries have been added to the three files above, you can proceed with the sg.install process. For further information on the and sg.install process, please see the MM Device Configuration Guide for UNIX.

Process 2:

This process will involve modifying the script so that target ID 7 will be built automatically.

Here are the steps needed to modify the script.

1. First, change to the media manager binary directory:
# cd /usr/openv/volmgr/bin

2. Create a backup copy of the script:
# cp

3. Modify the script so that target ID 7 is built. This can be done in the editor of your choice. There are three locations that will need to be modified. In each of those three locations, there will be two lines that need to be commented out. The first line is the beginning of an 'if' statement and the second line will be the end of the 'if' statement.

The first section begins on line 125 (for VERITAS NetBackup (tm) 4.5 and 5.0):

                if [ $target != 7 ] ; then
                   echo "name=\"st\" class=\"scsi\" target=$target lun=$lun;" >> $st_conf_file

The second section begins on line 142:

               if [ $i != 7 ] ; then
                       targ_list="$targ_list $i"

The third section begins on line 199:

               if [ $i != 7 ] ; then
                       targ_list="$targ_list $i"

In all three cases, comment out the "if statement" lines by adding a # at the beginning. Each section will then look like this:

The first section will become:

               #if [ $target != 7 ] ; then
                   echo "name=\"st\" class=\"scsi\" target=$target lun=$lun;" >> $st_conf_file

The second section will become:

               #if [ $i != 7 ] ; then
                       targ_list="$targ_list $i"

The third section will become:

               #if [ $i != 7 ] ; then
                       targ_list="$targ_list $i"

4. Once the modifications have been made, the normal and sg.install process can be followed and SCSI target ID 7 should be added as expected.

Legacy ID


Article URL

Terms of use for this information are found in Legal Notices