How to configure SCSI target ID 7 on Solaris systems
| Article:TECH31454 | | | Created: 2010-01-02 | | | Updated: 2010-01-02 | | | Article URL http://www.symantec.com/docs/TECH31454 |
Problem
How to configure SCSI target ID 7 on Solaris systems
Solution
By default, the sg.build 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 sg.build 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:
st.conf:
name="st" class="scsi" target=7 lun=0;
name="st" class="scsi" target=7 lun=1;
sg.conf:
name="sg" class="scsi" target=7 lun=0;
name="sg" class="scsi" target=7 lun=1;
sg.links:
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 sg.build and sg.install process, please see the MM Device Configuration Guide for UNIX.
Process 2:
This process will involve modifying the sg.build script so that target ID 7 will be built automatically.
Here are the steps needed to modify the sg.build script.
1. First, change to the media manager binary directory:
# cd /usr/openv/volmgr/bin
2. Create a backup copy of the sg.build script:
# cp sg.build sg.build.bak
3. Modify the sg.build 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
fi
The second section begins on line 142:
if [ $i != 7 ] ; then
targ_list="$targ_list $i"
fi
The third section begins on line 199:
if [ $i != 7 ] ; then
targ_list="$targ_list $i"
fi
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
#fi
The second section will become:
#if [ $i != 7 ] ; then
targ_list="$targ_list $i"
#fi
The third section will become:
#if [ $i != 7 ] ; then
targ_list="$targ_list $i"
#fi
4. Once the modifications have been made, the normal sg.build and sg.install process can be followed and SCSI target ID 7 should be added as expected.
Process 1:
Perform the sg.build 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:
st.conf:
name="st" class="scsi" target=7 lun=0;
name="st" class="scsi" target=7 lun=1;
sg.conf:
name="sg" class="scsi" target=7 lun=0;
name="sg" class="scsi" target=7 lun=1;
sg.links:
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 sg.build and sg.install process, please see the MM Device Configuration Guide for UNIX.
Process 2:
This process will involve modifying the sg.build script so that target ID 7 will be built automatically.
Here are the steps needed to modify the sg.build script.
1. First, change to the media manager binary directory:
# cd /usr/openv/volmgr/bin
2. Create a backup copy of the sg.build script:
# cp sg.build sg.build.bak
3. Modify the sg.build 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
fi
The second section begins on line 142:
if [ $i != 7 ] ; then
targ_list="$targ_list $i"
fi
The third section begins on line 199:
if [ $i != 7 ] ; then
targ_list="$targ_list $i"
fi
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
#fi
The second section will become:
#if [ $i != 7 ] ; then
targ_list="$targ_list $i"
#fi
The third section will become:
#if [ $i != 7 ] ; then
targ_list="$targ_list $i"
#fi
4. Once the modifications have been made, the normal sg.build and sg.install process can be followed and SCSI target ID 7 should be added as expected.
|
|
Related Articles
Legacy ID
267218
Article URL http://www.symantec.com/docs/TECH31454
Terms of use for this information are found in Legal Notices









Thank you.