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;