Table of ContentsView in Frames

(Veritas) Examples of sanlun, iscsiadm, iscsi output when used to view LUNs

You can use either the sanlun command, the iscsiadm command, or the iscsi command to view the LUNs configured on your Linux host. The examples in this section show the type of output you would see if you ran one of these commands on your Linux operating system in an environment running VxDMP .

The tool you use depends on your version of Linux and what you would like to view. The sanlun command displays the host device names and the LUNs to which they are mapped. The iscsiadm command lists the available storage systems and LUNs.

The following sections provide examples of the type of output you would see if you ran one of these commands in a specific environment; for example with iSCSI and DM-Multipath on Red Hat Enterprise Linux 5 series.

  • FC running sanlun
  • FC running vxdisk
  • (Red Hat Linux) Software iSCSI running sanlun
  • (SUSE Linux 10, 11) Software iSCSI running sanlun
  • (Red Hat Linux) Software iSCSI running iscsiadm
  • (SUSE Linux 10, 11) Software iSCSI running iscsiadm
Note: The output in the examples below has been modified to better fit the screen.

Data ONTAP operating in 7-Mode with FC example of using sanlun to view LUNs

This example shows sample output from the sanlun lun show all command when it is issued in a Host Utilities environment that is running the Data ONTAP operating in 7-Mode with FC and Veritas Storage Foundation.

Note: With the Linux Host Utilities 6.0 release, the output format of the sanlun utility has changed. The format no longer maintains backward compatibility when using LUNs mapped for Data ONTAP operating in 7-Mode.
# sanlun lun show all
controller(7mode)/                 device     host                  lun
vserver(Cmode)    lun-pathname     filename   adapter    protocol   size    mode
--------------------------------------------------------------------------------
fas3040-201-25    /vol/vol1/lun1	  /dev/sdu   host1      FCP        5g      7
fas3040-201-25    /vol/vol2/lun2   /dev/sdt   host1      FCP        5g      7
fas3040-201-25    /vol/vol3/lun3   /dev/sds   host1      FCP        5g      7

If you executed the sanlun lun show all command in a Data ONTAP operating in 7-Mode FC environment, you would get the following output:

# sanlun lun show -p

                    ONTAP Path: fas6030-201-71:/vol/vol1/lun1
                           LUN: 12
                      LUN Size: 7g
           Controller_CF_State: Cluster Enabled
            Controller Partner: fas6030-201-70
                          Mode: 7
                      DMP NODE: fas60300_9
            Multipath Provider: Veritas
--------- ---------- ------- ------------ -------------------------------------
host      controller                      controller
path      path       /dev/   host         target
state     type       node    adapter      port
--------- ---------- ------- ------------ -------------------------------------
up        secondary  sdn     host3        2a
up        primary    sdbg    host3        2a
up        primary    sdes    host4        2b
up        secondary  sdcz    host4        2b

FC example of using vxdisk to view LUNs

This example shows sample output from the vxdisk list command when it is issued in a Host Utilities environment that is running the FC protocol. The vxdisk list displays the LUNs on the VxVM disks:

# vxdisk list
DEVICE      TYPE         DISK       GROUP   STATUS
fas20200_0  auto:cdsdisk data_dg01  data_dg online thinrclm shared
fas20200_1  auto:cdsdisk data_dg02  data_dg online thinrclm shared
fas20200_2  auto:cdsdisk data_dg113 data_dg online thinrclm shared
fas20200_3  auto:cdsdisk data_dg180 data_dg online thinrclm shared

Data ONTAP operating in 7-Mode with iSCSI example of using sanlun to view LUNs

This example shows sample output from the sanlun lun show all command when it is issued in a Host Utilities environment that is running the Data ONTAP operating in 7-Mode with iSCSI and Veritas Storage Foundation.

Note: With the Linux Host Utilities 6.0 release, the output format of the sanlun utility has changed. The format no longer maintains backward compatibility when using LUNs mapped for Data ONTAP operating in 7-Mode.
# sanlun lun show all
controller(7mode)/               device      host                  lun
vserver(Cmode)   lun-pathname    filename    adapter    protocol   size    mode
-------------------------------------------------------------------------------
fas3040-201-24   /vol/vol1/lun1 	/dev/sdb    host6      iSCSI      10m     7
fas3040-201-24   /vol/vol2/lun2 	/dev/sdb    host6      iSCSI      10m     7
fas3040-201-24   /vol/vol3/lun3 	/dev/sdb    host6      iSCSI      10m     7

If you executed the sanlun lun show all command in a Data ONTAP operating in 7-Mode iSCSI environment, you would get the following output:

# ./sanlun lun show -p

                    ONTAP Path: fas6030-201-70:/vol/vol1/lun1
                           LUN: 21
                      LUN Size: 7g
           Controller_CF_State: Cluster Enabled
            Controller Partner: fas6030-201-71
                          Mode: 7
                      DMP NODE: fas60300_44
            Multipath Provider: Veritas
--------- ---------- ------- ------------ --------------------------------
host      controller                      controller
path      path       /dev/   host         target
state     type       node    adapter      port
--------- ---------- ------- ------------ --------------------------------
up        iscsi          sdaq    host6        10.72.201.24
up        iscsi          sdbp    host7        10.72.201.25

(Red Hat Enterprise Linux 5) Software iSCSI example of using iscsiadm to view LUNs

This example shows sample output from the iscsiadm command when it is issued in a Host Utilities environment that is running the iSCSI protocol and Veritas Storage Foundation on a Red Hat Enterprise Linux 5 series system.

Note: This example lists the available storage systems and LUNs for a session with a specific session ID. To view the details of all the sessions, use the iscsiadm -m session -P 3 command.
# iscsiadm -m session  -P 3 -r 2
Target: iqn.1992-08.com.netapp:sn.101183016
        Current Portal: 10.72.199.71:3260,1001
        Persistent Portal: 10.72.199.71:3260,1001
                **********
                Interface:
                **********
                Iface Name: default
                Iface Transport: tcp
                Iface Initiatorname: iqn.1994-05.com.redhat:5e3e11e0104d
                Iface IPaddress: 10.72.199.119
                Iface HWaddress: default
                Iface Netdev: default
                SID: 2
                iSCSI Connection State: LOGGED IN
                iSCSI Session State: Unknown
                Internal iscsid Session State: NO CHANGE
                ************************
                Negotiated iSCSI params:
                ************************
                HeaderDigest: None
                DataDigest: None
                MaxRecvDataSegmentLength: 131072
                MaxXmitDataSegmentLength: 65536
                FirstBurstLength: 65536
                MaxBurstLength: 65536
                ImmediateData: Yes
                InitialR2T: No
                MaxOutstandingR2T: 1
                ************************
                Attached SCSI devices:
                ************************
                Host Number: 4  State: running
                scsi4 Channel 00 Id 0 Lun: 0
                        Attached scsi disk sdc      State: running
                scsi4 Channel 00 Id 0 Lun: 1
                        Attached scsi disk sde      State: running
                scsi4 Channel 00 Id 0 Lun: 2
                        Attached scsi disk sdg      State: running
                scsi4 Channel 00 Id 0 Lun: 3
                        Attached scsi disk sdi      State: running
                scsi4 Channel 00 Id 0 Lun: 4
                        Attached scsi disk sdk      State: running
                scsi4 Channel 00 Id 0 Lun: 5
                        Attached scsi disk sdm      State: running
                scsi4 Channel 00 Id 0 Lun: 6
                        Attached scsi disk sdp      State: running
                scsi4 Channel 00 Id 0 Lun: 7
                        Attached scsi disk sdq      State: running

(SUSE Linux 10, 11) Software iSCSI example of using iscsiadm command

This example shows sample output from the iscsiadm command when it is issued in a Host Utilities environment that is running the iSCSI protocol and Veritas Storage Foundation on a SUSE Linux Enterprise Server 10 or 11 system.

Note: This example lists the available storage systems and LUNs for a specific session. To view the details of all the sessions, use the iscsiadm -m session -P 3 command.
# iscsiadm -m session --sid=N -P 3 
iSCSI Transport Class version 2.0-724
iscsiadm version 2.0-868
Target: iqn.1992-08.com.netapp:sn.101180456
        Current Portal: 10.72.199.144:3260,1001
        Persistent Portal: 10.72.199.144:3260,1001
                **********
                Interface:
                **********
                Iface Name: default
                Iface Transport: tcp
                Iface Initiatorname:iqn.1996-04.de.suse:lnx.200.109
                Iface IPaddress: 10.72.200.109
                Iface HWaddress: default
                Iface Netdev: default
                SID: 1
                iSCSI Connection State: LOGGED IN
                iSCSI Session State: Unknown
                Internal iscsid Session State: NO CHANGE
                ************************
                Negotiated iSCSI params:
                ************************
                HeaderDigest: CRC32C
                DataDigest: None
                MaxRecvDataSegmentLength: 131072
                MaxXmitDataSegmentLength: 65536
                FirstBurstLength: 65536
                MaxBurstLength: 65536
                ImmediateData: Yes
                InitialR2T: No
                MaxOutstandingR2T: 1
                ************************
                Attached SCSI devices:
                ************************
                Host Number: 47 State: running
                scsi47 Channel 00 Id 0 Lun: 2
                   Attached scsi disk sdj       State: running
                scsi47 Channel 00 Id 0 Lun: 1
                   Attached scsi disk sdf       State: running
                scsi47 Channel 00 Id 0 Lun: 0
                   Attached scsi disk sdb       State: running