Sun Microsystems, Inc.  Oracle System Handbook - ISO 7.0 May 2018 Internal/Partner Edition
   Home | Current Systems | Former STK Products | EOL Systems | Components | General Info | Search | Feedback

Asset ID: 1-71-1966053.1
Update Date:2018-03-02
Keywords:

Solution Type  Technical Instruction Sure

Solution  1966053.1 :   How To Check World Wide Port Names (WWPN) of Tape Drives and Tape Library Attached to Linux  


Related Items
  • Sun StorageTek SL500 Modular Library System
  •  
Related Categories
  • PLA-Support>Sun Systems>TAPE>Tape Hardware>SN-TP: SL500 Library
  •  




In this Document
Goal
Solution
References


Applies to:

Sun StorageTek SL500 Modular Library System - Version All Versions to All Versions [Release All Releases]
Linux x86-64

Goal

How to view the WWPN of Tape Drives attached to Linux OS.

Solution

In Redhat and Oracle Enterprise Linux OS, Tape Drive's WWPN's do not display in the system boot log and there is no file that can show them easily.

You need to run the command 'systool'.

Command 'cat /proc/scsi/scsi' to check attached scsi devices.
Below example shows a LTO3 Drive and a L180 Robot attached to this Linux system.

[root@sky4200 log]# cat /proc/scsi/scsi
Attached devices:
Host: scsi3 Channel: 00 Id: 00 Lun: 00
  Vendor: HP       Model: Ultrium 3-SCSI   Rev: M66S
  Type:   Sequential-Access                ANSI  SCSI revision: 03
Host: scsi6 Channel: 00 Id: 00 Lun: 00
  Vendor: SEAGATE  Model: ST973401LSUN72G  Rev: 0556
  Type:   Direct-Access                    ANSI  SCSI revision: 03
Host: scsi3 Channel: 00 Id: 07 Lun: 00
  Vendor: STK      Model: L180             Rev: 0318
  Type:   Medium Changer                   ANSI  SCSI revision: 03
[root@sky4200 log]#

Command 'sg_map -i -x' to identify the /dev/sg that corresponds to which tape device.
Command 'sg_map' requires package 'sg3_utils' to be installed.

[root@sky4200 log]# which sc_map
/usr/bin/which: no sc_map in (/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
[root@sky4200 log]#
[root@sky4200 log]# yum install sg3_utils.x86_64
root@sky4200 log]#
[root@sky4200 log]# sg_map -i -x
/dev/sg0  3 0 0 0  1  /dev/nst0  HP        Ultrium 3-SCSI    M66S
/dev/sg1  6 0 0 0  0  /dev/sda  SEAGATE   ST973401LSUN72G   0556
/dev/sg2  3 0 7 0  8  STK       L180              0318
[root@sky4200 log]#

Command 'systool' shows WWPN of Tape Devices attached to Linux System.
Command 'systool' requires the libsysfs and sysfsutils packages to be installed. You need to install them first if they are not installed.

[root@sky4200 log]# which systool
/usr/bin/which: no systool in (/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
[root@sky4200 log]#
[root@sky4200 log]# yum install libsysfs.x86_64
[root@sky4200 log]# yum install sysfsutils.x86_64
[root@sky4200 log]#
[root@sky4200 log]# which systool
/usr/bin/systool
[root@sky4200 log]#
[root@sky4200 log]# systool -c fc_transport -v
Class = "fc_transport"

  Class Device = "0:0"
  Class Device path = "/sys/devices/pci0000:04/0000:04:01.0/0000:05:03.0/host3/rport-3:0-2/target3:0:0/fc_transport/target3:0:0"
    node_name           = "0x500104f0008f2f10"
    port_id             = "0x010600"
    port_name           = "0x500104f0008f2f11"
    uevent              =

    Device = "target3:0:0"
    Device path = "/sys/devices/pci0000:04/0000:04:01.0/0000:05:03.0/host3/rport-3:0-2/target3:0:0"
      uevent              = "DEVTYPE=scsi_target"


  Class Device = "0:7"
  Class Device path = "/sys/devices/pci0000:04/0000:04:01.0/0000:05:03.0/host3/rport-3:0-16/target3:0:7/fc_transport/target3:0:7"
    node_name           = "0x500104f00059f581"
    port_id             = "0x010b00"
    port_name           = "0x500104f00059f582"
    uevent              =

    Device = "target3:0:7"
    Device path = "/sys/devices/pci0000:04/0000:04:01.0/0000:05:03.0/host3/rport-3:0-16/target3:0:7"
      uevent              = "DEVTYPE=scsi_target"


[root@sky4200 log]#

 

References

<NOTE:1966051.1> - SL500 - How To Check World Wide Port Names(WWPN) of HBA Ports in Linux

Attachments
This solution has no attachment
  Copyright © 2018 Oracle, Inc.  All rights reserved.
 Feedback