This section describes how to set up the ETERNUS LT230 tape library
Disabling the st driver
Note
To build a tape server in cluster, do not disable the st driver in this step, but the device should be recognized by the st driver as well.
Execute the ls command to display the device file
# ls -l /dev/rmt/*[0-9] lrwxrwxrwx 1 root root 40 Feb 27 15:07 /dev/rmt/0 -> ../../devices/pci@16,2000/scsi@1/st@5,0: lrwxrwxrwx 1 root root 50 Feb 27 15:07 /dev/rmt/1 -> ../../devices/pci@17,4000/fibre-channel@4/st@1,0: ... |
Check the displayed device file to see if the st driver recognizes the LT250 device.
../../devices/pci@17,4000/fibre-channel@4/st@1,0: 1 2 3 1:"devices/pci@17,4000/fibre-channel@4" = This is the physical path name that indicates where the HBA is installed. 2:"st" = Indicates that the LT250 is controlled by the st driver 3:"1,0" = Hexadecimal display indicating "Target ID (LOOP ID),LUN" |
From these contents, check whether the physical path is an HBA connected to the LT250, and whether the target ID (LOOP ID) and LUN information match the LT250 drive. Then determine whether or not the LT250 drive is controlled by the st driver.
Note
If LT250 is not included in the drive being controlled by the st driver, steps 3-5 of the steps below are not required.
If there are programs that access the drive, stop all of those programs.
If the LT250 is controlled by the st driver, comment out the target definition that corresponds to the LT250 drive in /kernel/drv/st.conf
Point
To comment out the target definition, insert "#" at the start of the part that matches the target ID (LOOP ID) and LUN of the LT250 drive.
Note
Make sure that the definition is not commented out if there is a driver on the server.
Delete the device files of the LT230 drive that are controlled by the st driver.
The following is an example of how to delete the device files confirmed in Step 1 and 2.
# rm -i /dev/rmt/* rm: remove /dev/rmt/0 (yes/no)? n rm: remove /dev/rmt/0b (yes/no)? n ... rm: remove /dev/rmt/1 (yes/no)? y rm: remove /dev/rmt/1b (yes/no)? y ... |
Note
Make sure that another file is not deleted by mistake while executing the rm command.
Robot settings
Enter the Target ID of the LT250 robot in the /usr/kernel/drv/lb.conf file. Refer to the sample lb.conf file and enter the robot SCSI ID as the Target ID. In the following coding example, the SCSI ID is 4.
# # -------------------------------------------------------------- # IBM Tivoli Storage Manager for Sun Solaris Server # Licensed Materials - Property of IBM # 5765-303 (C) Copyright IBM Corporation 1999. # All rights reserved. # Refer to Copyright Instructions Form Number G120-2083 # -------------------------------------------------------------- ... name="lb" class="scsi" target=4 lun=0; |
Note
In the /usr/kernel/drv/lb.conf file, the "name" value "lb", the "class" value "scsi", and the "lun" value of 0 are fixed values.
Register the lb driver.
#/opt/tivoli/tsm/devices/bin/autoconf |
IBM Tape Driver settings
Enter the Target ID and LUN ID of the drive in the /usr/kernel/drv/IBMtape.conf file. However, these values are normally set during installation and usually need not be changed. Simply check the contents.
############################################################################### ############################################################################### ## ## ## IBM SCSI Tape & Medium Changer Device Driver for Solaris 8, 9 and 10 ## ## (C) COPYRIGHT IBM Corporation, 1994 - ## ## ## ## IBMtape.conf - Configuration File ## ## Licensed Materials - Property of IBM ## ## All Rights Reserved ## ## ## ## US Government Users Restricted Rights - Use, duplication, or ## ## disclosure restricted by GSA ADP Schedule Contract with IBM Corp. ## ## ## ############################################################################### ############################################################################### # An example entry for high numbers of target and lun # name="IBMtape" class="scsi" target=200 lun=3; # An example entry for QLogic HBA running qla HBA driver # name="IBMtape" parent="qla2100" target=0; # for qla2100 only # name="IBMtape" parent="qla2200" target=0; # for qla2200 only # name="IBMtape" parent="qla2300" target=0; # for qla2300 only # An example entry for AMCC JNI HBA # name="IBMtape" parent="jnic146x" target=0; # An example entry for Emulex HBA # name="IBMtape" parent="lpfc" target=0; name="IBMtape" parent="pseudo" instance=16383; name="IBMtape" class="scsi" target=0 lun=0 block_size=0 buffering=1 immediate=0 trailer=0 sili=0; name="IBMtape" class="scsi" target=0 lun=1 block_size=0 buffering=1 immediate=0 trailer=0 sili=0; ... name="IBMtape" class="scsi" target=255 lun=0 block_size=0 buffering=1 immediate=0 trailer=0 sili=0; name="IBMtape" class="scsi" target=255 lun=1 block_size=0 buffering=1 immediate=0 trailer=0 sili=0; |
HBA driver settings
Set the robot and driver's alias name, port and fcp-bind-target in the /kernel/drv/fjpfca.conf file. For the Target ID of the robot, use the target ID that was set in the /usr/kernel/drv/lb.conf file.
# # All Rights Reserved, Copyright (c) FUJITSU LIMITED 2000 # #ident "@(#)$Id: fjpfca.conf,v 3.1.1.1 2001/04/20 11:19:47 hiroki Exp $ FUJITSU" ... alias= "CTRL:0x200100e0000e100c", "DRV00:0x201000e0000e100d", "DRV01:0x201100e0000e100d"; ... port= "fjpfca0:nport", "fjpfca1:nport"; ... fcp-bind-target= "fjpfca0t4:CTRL", " fjpfca1t2:DRV00", " fjpfca0t3:DRV01"; |
Note
These settings apply if the Fujitsu-made HBA driver (FJSVpfca) is used. If using a different HBA driver (for example Emulex or NetMarks), refer to the HBA manual applicable for the product.
In addition, these settings only apply for fiber channel switch connection (FC-S connection).
For direct connections (FC-AL connections), the settings must use Target Id set on the LT library. For details, refer to "ETERNUS SF TSM ETERNUS LT Library Operator's Guide".
Creating a device file
Reboot the server.
# touch /reconfigure # /usr/sbin/shutdown -y -i6 -g0 |
After the server is rebooted, execute the ls command to display the device file (lb).
# ls -l /dev/rmt/?lb lrwxrwxrwx 1 root root 40 Feb 27 15:07 /dev/rmt/0lb -> ../../devices/pci@16,2000/scsi@1/st@5,0: lrwxrwxrwx 1 root other 51 Feb 27 16:50 /dev/rmt/5lb -> ../../devices/pci@17,4000/fibre-channel@4/lb@4,0:lb # |
Check the displayed device file to see if the lb driver recognizes the LT250 drive.
../../devices/pci@17,4000/fibre-channel@4/lb@4,0:lb 1 2 3 1: "devices/pci@17,4000/fibre-channel@4" =This is the physical path name that indicates where the HBA is installed. 2: "lb" =Indicates that the LT250 is controlled by the st driver 3: "4,0" = "Hexadecimal display indicating" Target ID (LOOP ID),LUN" |
From these contents, check whether the physical path is an HBA connected to the LT250, check whether or not the target ID (LOOP ID) and LUN information match the LT250 robot, and if the LT250 robot is controlled by the lb driver.
Execute the ls command to display the device file (st).
# ls -l /dev/rmt/?st lrwxrwxrwx 1 root root 56 Feb 27 16:50 /dev/rmt/1st -> ../../devices/pci@17,4000/fibre-channel@4/IBMtape@0,0:st lrwxrwxrwx 1 root root 56 Feb 27 16:50 /dev/rmt/2st -> ../../devices/pci@17,4000/fibre-channel@4/IBMtape@1,0:st# |
Check the displayed device file to see if the IBM tape driver recognizes the LT250 drive.
../../devices/pci@17,4000/fibre-channel@4/IBMtape@0,0:st 1 2 3 1: "devices/pci@17,4000/fibre-channel@4" =This is the physical path name that indicates where the HBA is installed. 2: "BMtape" =Indicates that the LT250 is controlled by the st driver 3: "0,0" = Hexadecimal display indicating "Target ID (LOOP ID),LUN" |
From these contents, check whether the physical path is an HBA connected to the LT250, check whether or not the target ID (LOOP ID) and LUN information match the LT250 drive, and if the LT250 drive is controlled by the IBM tape driver.
Disabling the st driver
Note
The SCSI-ID or LU for the robot or the drive of the ETERNUS LT library may differ depending on the model of the device or settings. For details, refer to the manual of the hardware or contact a Fujitsu Engineer (CE).
Execute the ls command to display the device file.
# ls -l /dev/rmt/*[0-9] lrwxrwxrwx 1 root root 40 Feb 27 15:07 /dev/rmt/0 -> ../../devices/pci@16,2000/scsi@1/st@5,0: lrwxrwxrwx 1 root root 50 Feb 27 15:07 /dev/rmt/1 -> ../../devices/pci@17,4000/fibre-channel@4/st@1,0: ... |
Check the displayed device file to see if the st driver recognizes the LT250 device.
../../devices/pci@17,4000/fibre-channel@4/st@1,0: 1 2 3 1: "devices/pci@17,4000/fibre-channel@4" = This is the physical path name that indicates where the HBA is installed. 2: "st" = Indicates that the LT250 is controlled by the st driver 3: "1,0" = Hexadecimal display indicating "Target ID (LOOP ID),LUN" |
From these contents, check whether the physical path is an HBA connected to the LT250, check whether or not the target ID (LOOP ID) and LUN information match the LT250 drive, and if the LT250 drive is controlled by the st driver.
Note
If the LT250 is not included in the drives controlled by the st driver, steps 3 to 5 below are not required.
If there are programs that access the drive, stop all those programs.
If the LT250 is controlled by the st driver, comment out the target definition that corresponds to the LT250 drive in /kernel/drv/st.conf.
Point
To comment out the target definition, insert "#" at the start of the part that matches the target ID (LOOP ID) and LUN of the LT250 drive.
Note
If the server has in-built drives, ensure that you do not comment out the definitions for the in-built drives.
Delete the device file of the LT250 drive that is controlled by the st driver.
The following is an example of how to delete the device file confirmed in Step 1 and 2.
# rm -i /dev/rmt/* rm: remove /dev/rmt/0 (yes/no)? n rm: remove /dev/rmt/0b (yes/no)? n ... rm: remove /dev/rmt/1 (yes/no)? y rm: /dev/rmt/1b (yes/no)? y ... |
Note
When executing the rm command, be careful not to accidentally delete other files.
Robot settings
Enter the Target ID of the LT250 robot in the /usr/kernel/drv/lb.conf file. Refer to the sample lb.conf file and enter the robot SCSI ID as the Target ID. In the following coding example, the SCSI ID is 0.
# # -------------------------------------------------------------- # IBM Tivoli Storage Manager for Sun Solaris Server # Licensed Materials - Property of IBM # 5765-303 (C) Copyright IBM Corporation 1999. # All rights reserved. # Refer to Copyright Instructions Form Number G120-2083 # -------------------------------------------------------------- ... name="lb" class="scsi" target=0 lun=0; |
Note
In the /usr/kernel/drv/lb.conf file, the "name" value "lb", the "class" value "scsi", and the "lun" value of 0 are fixed values.
Register the lb driver.
#/opt/tivoli/tsm/devices/bin/autoconf |
IBM Tape Driver settings
Enter the Target ID and LUN ID of the drive in the /usr/kernel/drv/IBMtape.conf file. However, these values are normally set during installation and usually need not be changed. Simply check the contents.
############################################################################### ############################################################################### ## ## ## IBM SCSI Tape & Medium Changer Device Driver for Solaris 8, 9 and 10 ## ## (C) COPYRIGHT IBM Corporation, 1994 - ## ## ## ## IBMtape.conf - Configuration File ## ## Licensed Materials - Property of IBM ## ## All Rights Reserved ## ## ## ## US Government Users Restricted Rights - Use, duplication, or ## ## disclosure restricted by GSA ADP Schedule Contract with IBM Corp. ## ## ## ############################################################################### ############################################################################### # An example entry for high numbers of target and lun # name="IBMtape" class="scsi" target=200 lun=3; # An example entry for QLogic HBA running qla HBA driver # name="IBMtape" parent="qla2100" target=0; # for qla2100 only # name="IBMtape" parent="qla2200" target=0; # for qla2200 only # name="IBMtape" parent="qla2300" target=0; # for qla2300 only # An example entry for AMCC JNI HBA # name="IBMtape" parent="jnic146x" target=0; # An example entry for Emulex HBA # name="IBMtape" parent="lpfc" target=0; name="IBMtape" parent="pseudo" instance=16383; name="IBMtape" class="scsi" target=0 lun=0 block_size=0 buffering=1 immediate=0 trailer=0 sili=0; name="IBMtape" class="scsi" target=0 lun=1 block_size=0 buffering=1 immediate=0 trailer=0 sili=0; ... name="IBMtape" class="scsi" target=255 lun=0 block_size=0 buffering=1 immediate=0 trailer=0 sili=0; name="IBMtape" class="scsi" target=255 lun=1 block_size=0 buffering=1 immediate=0 trailer=0 sili=0; |
Creating a device file
Reboot the server.
# touch /reconfigure # /usr/sbin/shutdown -y -i6 -g0 |
After the server is rebooted, execute the ls command to display the device file (lb).
# ls -l /dev/rmt/?lb lrwxrwxrwx 1 root root 40 Feb 27 15:07 /dev/rmt/0lb -> ../../devices/pci@16,2000/scsi@1/st@5,0: lrwxrwxrwx 1 root other 51 Feb 27 16:50 /dev/rmt/3lb -> ../../ devices/pci@1f,4000/FJSV,ulsa@3/lb@0,0:lb # |
Check the displayed device file to see if the lb driver recognizes the LT250 driver
../../devices/pci@1f,4000/FJSV,ulsa@3/lb@0,0:lb 1 2 3 1: "devices/pci@1f,4000/FJSV,ulsa@3" =This is the physical path name that indicates where the HBA is installed. 2: "lb" = Indicates that the LT250 is controlled by the lb driver 3: "0,0" =Hexadecimal display indicating "Target ID (LOOP ID),LUN" |
From these contents, check whether the physical path is an HBA connected to the LT250, check whether or not the target ID (LOOP ID) and LUN information match the LT250 robot, and if the LT250 robot is controlled by the lb driver.
Execute the ls command to display the device file (st).
# ls -l /dev/rmt/?st lrwxrwxrwx 1 root root 56 Feb 27 16:50 /dev/rmt/1st -> ../../devices/pci@1f,4000/FJSV,ulsa@3/IBMtape@1,0:st lrwxrwxrwx 1 root root 56 Feb 27 16:50 /dev/rmt/2st -> ../../devices/pci@1f,4000/FJSV,ulsa@3/IBMtape@2,0:st # |
Check the displayed device file to see if the IBM tape driver recognizes the LT250 drive.
../../devices/pci@1f,4000/FJSV,ulsa@3/IBMtape@1,0:st 1 2 3 1: "devices/pci@1f,4000/FJSV,ulsa@3" = This is the physical path name that indicates where the HBA is installed. 2: "IBMtape" = Indicates that the LT250 is controlled by the st driver 3: "1,0" = Hexadecimal display indicating "Target ID (LOOP ID),LUN" |
From these contents, check whether the physical path is an HBA connected to the LT250, check whether or not the target ID (LOOP ID) and LUN information match the LT250 drive, and if the LT250 drive is controlled by the IBM tape driver.