Table of ContentsView in Frames

Viewing a list of LUNs

Whether your environment uses multipathing or not, you have several options for viewing LUNs that are mapped to the host. The sanlun lun show all command works for all environments and protocols. If you are using an iSCSI software initiator, you also have a choice between using the iscsiadm command or the iscsi command, depending on your version of Linux.

Step

  1. To view the list of LUNs mapped to your host, run the appropriate command for your system environment.
    The following table summarizes the commands and the environments that support them. For more information on the commands and their options, see the man pages.
    Note: You can use the sanlun command to display LUN information and the iscsiadm command to view iSCSI information.
    If you are using... Enter one of the following commands...
    All environments sanlun lun show all
    (iSCSI software initiator) Red Hat Enterprise Linux 5 or 6 series iscsiadm --mode session --sid=N -P 3
    (iSCSI software initiator) Red Hat Enterprise Linux 4 series iscsi-ls -l
    (iSCSI software initiator) SUSE Linux Enterprise Server 10 or 11 series
    • (SUSE Linux Enterprise Server 10 SP2):

      iscsiadm --mode session --sid=N -P 3

    • (SUSE Linux Enterprise Server 10 SP1):

      iscsiadm --mode session --sid=N -i

    The sections that follow contain examples of the type of output these commands produce with different protocols and operating systems.