Topics | How To | Troubleshoot | Related Topics
Device Detection on AIX MediaAgent is Slow
Unable to detect devices in Solaris
Unable to Detect Non-IBM Libraries on AIX
Non-IBM Libraries are not Configurable in an LPAR Environment
This might occur for the following reason:
Cause: On AIX MediaAgents, the presence of a number of SCSI adaptors may result in slowing down the detection process. If you know that some of these adaptors are not required by the MediaAgent, you can skip them during the detection process as described in below.
Create the following file:
<software installation path>/Base/detectdevices.skip
Use the following format to add the list of adapters that must be skipped during device detection.
adapter <adapter name>
For example:
adapter scsi2
adapter fscsi1
Note the following:
You can do this using the following commands:
Run cfgadm -al
grep/look for type as tape devices
If (cfgadm -al) displays all the devices configured on system, look for the word tape to identify tape devices. |
For example, the output of the cfgadm -al command may be as follows:
Ap_Id | Type | Receptacle | Occupant | Condition |
c0 | scsi-bus | connected | configured | unknown |
c0::dsk/c0t0d0 | disk | connected | configured | unknown |
c0::dsk/c0t10d0 | disk | connected | configured | unknown |
c0::dsk/c0t6d0 | CD-ROM | connected | configured | unknown |
c0::dsk/c0t8d0 | disk | connected | configured | unknown |
c0::dsk/c0t9d0 | disk | connected | configured | unknown |
c3 | scsi-bus | connected | unconfigured | unknown |
c6 | fc-fabric | connected | configured | unknown |
c6::100000d08000167d | tape | connected | configured | unknown |
c6::100000d080001986 | tape | connected | configured | unknown |
c6::100000e00221b69 | array-ctrl | connected | unconfigured | unknown |
c6::100000e00221d909 | disk | connected | unconfigured | unknown |
c6::2100002037194c51 | disk | connected | configured | unknown |
c6::210000203719599e | disk | connected | configured | unknown |
c7 | fc | connected | unconfigured | unknown |
c8 | fc | connected | unconfigured | unknown |
If you do not see the devices as shown in the above example, make sure that the devices are visible to the Solaris kernel before proceeding any further.
<software installation path>/WA/wa_sunqlc_add
After running the script, you will be able detect the devices from the Library and Drive Configuration window.
You can do this using the following commands:
Run cfgadm -al
grep/look for type as array-ctrl
For example, the output of the cfgadm -al command would be as follows:
c6::100000e00221b691 array-ctrl connected unconfigured unknown
If you do not see the devices as shown in the above example, make sure that the devices are visible to the Solaris kernel before proceeding any further.
/usr/kernel/drv/wa.conf
name="wa" parent="fp" target=16 lun=0 fc-port-wwn="WWPN"
Using the above example, it will be as follows:
name="wa" parent="fp" target=16 lun=0 fc-portwwn="100000e00221b691"
Add 8 entries from lun=0-7
Example:
name="wa" | parent="fp" | target=16 | lun=0 | fc-port-wwn="100000e00221b691"; |
name="wa" | parent="fp" | target=16 | lun=1 | fc-port-wwn="100000e00221b691"; |
name="wa" | parent="fp" | target=16 | lun=2 | fc-port-wwn="100000e00221b691"; |
name="wa" | parent="fp" | target=16 | lun=3 | fc-port-wwn="100000e00221b691"; |
name="wa" | parent="fp" | target=16 | lun=4 | fc-port-wwn="100000e00221b691"; |
name="wa" | parent="fp" | target=16 | lun=5 | fc-port-wwn="100000e00221b691"; |
name="wa" | parent="fp" | target=16 | lun=6 | fc-port-wwn="100000e00221b691"; |
name="wa" | parent="fp" | target=16 | lun=7 | fc-port-wwn="100000e00221b691"; |
rem_drv wa
add_drv wa
You will now be able detect the devices from the Library and Drive Configuration window.
By default the MediaAgent scans for devices with LUNs 0-7. If the devices are over these values they will not be detected. Perform the following steps to correct this problem:
/usr/kernel/drv/wa.conf
name="wa" class="scsi" target=0 lun=8;
By default, AIX does not have a driver that attaches to non-IBM libraries. The driver provided by IBM, Atape, attaches only to IBM libraries.
Arm-changer will be detected as smcX device (where X=1,2,3...).
1. | Ensure that no jobs are running in the CommCell Console. | |||
2. | Stop the Calypso services on this MediaAgent. | |||
3. | Run cfgmgr
command to configure devices currently detected by the OS. If the adapter ID is known, use the -l option to limit action to adapter. |
cfgmgr -v | ||
4. | Navigate to <Software_Installation_Path>/Base folder. | Run the following command: cd <Software_Installation_Disc>/Base |
||
5. | Determine device details for currently detected devices. This information will be used to discover the library inquiry string. | Run ./detectdevices
-add tape Messages similar to the following will be displayed ---------------------------------------- scsi3 rmt0.1 5 0 pthru_adapter tape scsi3 gnode0 5 1 pthru_adapter tape fscsi0 rmt1.1 131328 0 pthru_adapter tape fscsi0 rmt2.1 131584 0 pthru_adapter tape fscsi0 smc0 131584 1 pthru_adapter tape fscsi0 rmt3.1 131840 0 pthru_adapter tape Note down the above device details for drive: adapter - fscsi0, device - rmt1.1, target - 131328, Lun - 0 |
||
6. | Navigate to <Software_Installation_Path>/MediaAgent folder. | |||
7. | Run test inquiry (testinq) command.
|
Run
./testinq /dev/fscsi0
131328 1 /dev/fscsi0@131328,1:ADIC Scalar i500 600G|Serial# ADICA0C0035914_LLB |Device Type 8 |
||
8. | Run ksh ./removegnode.ksh | # ksh
./removegnode.ksh Before proceeding, please make sure Calypso services are shutdown Hit enter to continue 0518-307 odmdelete: 0 objects deleted. 0518-307 odmdelete: 0 objects deleted. 0518-307 odmdelete: 0 objects deleted. 0518-307 odmdelete: 0 objects deleted. |
||
9. |
|
Example of
gnode.Pdat.withatape
file entries This example illustrates entries, using Scalar i500 library for various adapter types. Entry for SCSI libraryPdAt: Entry for FC libraryPdAt: Entry for SAS libraryPdAt: |
||
10. | Run ksh ./addgnode.withatape.ksh |
ksh ./addgnode.withatape.ksh Before proceeding, please make sure Galaxy services are shutdown Hit enter to continue |
||
11. | Rerun
cfgmgr command to check if the library is detected.
Once cfgmgr has completed, check if the arm changer is detected using: lsdev -Cc tape command Arm-changers detected for non-IBM libraries are represented by gnode devices in the lsdev -Cc tape output. |
cfgmgr
–v lsdev -Cc tape Messages similar to the following will be displayed ---------------------------------------- Take note of the new gnodeX device listed below. gnode0 Available 10-70-00-5,1 Other SCSI Tape Drive gnode1 Available 20-58-02 Other FC SCSI Tape Drive rmt0 Available 10-70-00-5,0 Other SCSI Tape Drive rmt1 Available 20-58-02 LTO Ultrium Tape Drive (FCP) rmt2 Available 20-58-02 IBM 3580 Ultrium Tape Drive (FCP) rmt3 Available 20-58-02 Other FC SCSI Tape Drive smc0 Available 20-58-02 IBM 3576 Library Medium Changer (FCP) |
||
12. | Restart the Calypso services on this MediaAgent. |
This example illustrates the procedure for the Scalar i500 library (FC adapter)
# calypso stop
# cfgmgr -v
# cd <Software Installation Path>/Base
# ./detectdevices -add tape
fscsi0 rmt1.1 131328 0 pthru_adapter tape
# cd <Software Installation Path>/MediaAgent
# ./testinq /dev/fscsi0 131328 1
/dev/fscsi0@131328,1:ADIC Scalar i500 600G|Serial# ADICA0C0035914_LLB |Device Type 8
* Will need to add “Scalar i500 “ inquiry string to the gnode.Pdat.withatape file.
Insert entry into the file gnode.Pdat.withatape as given below:
PdAt:
uniquetype
= "tape/fcp/gnode"
attribute = "model_map"
deflt = "1010Scalar i500 " /* The model number should
be prefixed with 1010 and must be exactly 16 characters long
excluding the prefix*/
values = ""
width = ""
type = "R"
generic = ""
rep = "s"
nls_index = 0
# ./removegnode.ksh
# ./addgnode.withatape.ksh
Before proceeding, please make sure Galaxy services are shutdown
Hit enter to continue
# cfgmgr -v
# lsdev -Cc tape
gnode1 Available 20-58-02 Other FC SCSI Tape Drive
rmt1 Available 20-58-02 LTO Ultrium Tape Drive (FCP)
# calypso start
To configure non-IBM libraries in an LPAR environment, install the latest service pack and then follow the steps described in Unable to Detect Non-IBM Libraries on AIX procedure to detect any non-IBM libraries that are not detected.