Software >> OS >> Unix >> Solaris >> 10 >> iSCSI >> How to discover iSCSI targets on a server running MHVTL from a machine running Solaris 10

Machine with MHVTL (we call it target) (with IP 10.10.2.6 & port 3260)

Machine with Solaris 10 (we call as the initiator)

1.  Confirm that iSCSI packages are installed on the initator machine

initiator# pkginfo SUNWiscsiu SUNWiscsir
system      SUNWiscsiu Sun iSCSI Device Driver (root)
system      SUNWiscsir Sun iSCSI Management Utilities (usr)

2. Confirm that iscsi initiator service is enabled

initiator# svcs iscsi/initiator

STATE          STIME    FMRI
online         16:29:31 svc:/network/iscsi/initiator:default

3.  Telnet from initiator to the target at port 3260.  Make sure connected.

initiator# telnet 10.10.2.6 3260

4.  Set discovery address

initiator# iscsiadm add discovery-address 10.10.2.6:3260

5.  Set discovery mode to sendtargets 

initiator# iscsiadm modify discovery --sendtargets enable

6.  List the discovered targets

initiator# iscsiadm list target -S
 

Target: iqn.2001-04.com.mhvtl:vtl
        Alias: -
        TPGT: 1
        ISID: 4000002a0000
        Connections: 1
        LUN: 5
             Vendor:  STK
             Product: L700
             OS Device Name: /dev/scsi/changer/c1t0d0
        LUN: 4
             Vendor:  IBM
             Product: ULT3580-TD5
             OS Device Name: /dev/rmt/3n
        LUN: 3
             Vendor:  IBM
             Product: ULT3580-TD5
             OS Device Name: /dev/rmt/2n
        LUN: 2
             Vendor:  IBM
             Product: ULT3580-TD5
             OS Device Name: /dev/rmt/1n
        LUN: 1
             Vendor:  IBM
             Product: ULT3580-TD5
             OS Device Name: /dev/rmt/0n

7.  If mtx is not installed in your Solaris machine, download it.  E.g. for Solaris 10 x86, download the package from
     ftp.ussg.iu.edu/solaris/freeware/i386/10/mtx-1.3.12-sol10-x86-local.gz

e.g. put the file in /var/tmp

# cd /var/tmp/
# gunzip mtx-1.3.12-sol10-x86-local.gz
# pkgadd -d mtx-1.3.12-sol10-x86-local

 

8.  Use mtx to test the medium changer device we have just added
 

# /usr/local/sbin/mtx -f /dev/scsi/changer/c1t0d0 status