![]() | Oracle System Handbook - ISO 7.0 May 2018 Internal/Partner Edition | ||
|
|
![]() |
||||||||||||||||
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
In this Document
Applies to:Sun StorageTek SL500 Modular Library System - Version All Versions to All Versions [Release All Releases]Linux x86-64 GoalHow to view the WWPN of Tape Drives attached to Linux OS. SolutionIn 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. [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. [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. [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 LinuxAttachments This solution has no attachment |
||||||||||||||||
|