StoreEver Tape Storage
1748028 Members
5062 Online
108757 Solutions
New Discussion

How to find WWN no for SAN tape device

 
SOLVED
Go to solution
Arunabha Banerjee
Valued Contributor

How to find WWN no for SAN tape device

I want to find WWN no for a particular tape device connected to SAN.

 

The details as follows:

 

tape    102  0/4/1/1.198.0.255.6.5.1   stape    CLAIMED     DEVICE       HP      Ultrium 3-SCSI
                           /dev/rmt/102m           /dev/rmt/102mn          /dev/rmt/c15t5d1BEST    /dev/rmt/c15t5d1BESTn
                           /dev/rmt/102mb          /dev/rmt/102mnb         /dev/rmt/c15t5d1BESTb   /dev/rmt/c15t5d1BESTnb

autoch    8  0/4/1/1.198.0.255.6.5.0  schgr    CLAIMED     DEVICE       HP      ESL E-Series
                           /dev/rac/c15t5d0

# lssf /dev/rmt/102m
stape card instance 15 SCSI target 5 SCSI LUN 1 at&t best density available at address 0/4/1/1.198.0.255.6.5.1 /dev/rmt/102m

# ioscan -fnC fc
Class     I  H/W Path  Driver S/W State   H/W Type     Description
=================================================================
fc        3  0/4/1/1   fcd  CLAIMED     INTERFACE    HP A6826-60001 2Gb Dual Port PCI/PCI-X Fibre Channel Adapter (FC Port 2)
                      /dev/fcd3

# fcdutil /dev/fcd3

                           Vendor ID is = 0x001077
                           Device ID is = 0x002312
            PCI Sub-system Vendor ID is = 0x00103c
                   PCI Sub-system ID is = 0x0012ba
                               PCI Mode = PCI-X 133 MHz
                       ISP Code version = 3.3.166
                       ISP Chip version = 3
                               Topology = PTTOPT_FABRIC
                             Link Speed = 2Gb
                     Local N_Port_id is = 0xc6001a
                  Previous N_Port_id is = 0xc6001a
            N_Port Node World Wide Name = 0x500110a000100bfb
            N_Port Port World Wide Name = 0x500110a000100bfa
            Switch Port World Wide Name = 0x2001000dec1451c0
            Switch Node World Wide Name = 0x20c6000dec1451c1
                           Driver state = ONLINE
                       Hardware Path is = 0/4/1/1
                     Maximum Frame Size = 2048
         Driver-Firmware Dump Available = YES
         Driver-Firmware Dump Timestamp = Sat May 14 02:12:19 2011
                         Driver Version = @(#) libfcd.a HP Fibre Channel ISP 23xx & 24xx Driver B.11.23.07 /ux/core/isu/FCD/kern/src/common/wsio/fcd_init.c:Sep 14 2006,17:08:33

# fcdutil /dev/fcd3 devstat all | grep -E '(Nport|Failed)'
Device Statistics for Nport_id 0xc60021
Device Statistics for Nport_id 0xc60022
Device Statistics for Nport_id 0xc60026
Device Statistics for Nport_id 0xc60027
Device Statistics for Nport_id 0xc60028
Device Statistics for Nport_id 0xc60031
Device Statistics for Nport_id 0xc60054
Device Statistics for Nport_id 0xc60055
Device Statistics for Nport_id 0xc60056
Device Statistics for Nport_id 0xc60057
Device Statistics for Nport_id 0xc60058
Device Statistics for Nport_id 0xc6005c
Device Statistics for Nport_id 0xc6005d
Device Statistics for Nport_id 0xc60065

Status output from netbackup command:

55  KPG-ESL712-01-R1-... hcart3 TLD(8)  DRIVE=1
      /dev/rmt/c15t5d1BESTnb                                           DOWN

HP LLT output:

54 HP ESL E-Series (Address: 13.5.0[8-15/0/4/1/1.198.0.255.6.5.0])
55   Drive 1:HP Ultrium 3-SCSI (Address: 13.5.1[102-15/0/4/1/1.198.0.255.6.5.1])

The following is identity information for the selected device. You can use commands to select functionality to perform on this device.

Product ID               : ESL E-Series
Model Name               : ESL E-Series Library
* Internal Serial Number : US50650027
Drive Technology         : LTO
Firmware Rev             : 6.23
Target ID                : 5
Target LUN               : 0
Number of Drives         : 11
Number of Slots          : 668

* May not match external serial number

The following is identity information for the selected device. You can use commands to select functionality to perform on this device.

Drive Index              : 1
Product ID               : Ultrium 3-SCSI
Drive Technology         : LTO
Mech. Serial Number      : HU10639DYJ
Firmware Rev             : L67W/ESL E FC
Target ID                : 5
Target LUN               : 1
OBDR Capability          : Not Supported
WORM Capability          : Supported

 Please help...

AB
17 REPLIES 17
Torsten.
Acclaimed Contributor

Re: How to find WWN no for SAN tape device

Since this is an ESLe library - sure there are native FC drives? There are also SCSI drives translated to FC via the NSRs.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Arunabha Banerjee
Valued Contributor

Re: How to find WWN no for SAN tape device

Hi Torsten,

Thanks for your reply. Can you please explain. I am not so aware about SAN / TAPE Library configuration.
AB
Johan Guldmyr
Honored Contributor

Re: How to find WWN no for SAN tape device

In some of HP's tape libraries you connect the tape drives directly to the SAN.
Another way is that the tape drive connects via SCSI to an NSR(network storage router (tm)) in the ESL. This NSR connects to the SAN. For this there is no wwn of the tape drive as it's only using on a SCSI bus.

 

However, wouldn't the tape drive still have a wwn? (part of the emulation/translation of the NSR?)

Or with the NSRs is only the robotics presented?

Eric_de_Lange
Frequent Advisor

Re: How to find WWN no for SAN tape device

L67W indicates a 2GB FC model of the LTO-3 drive installed in a ESL-E

The drive is native FC and therefore is directly connected to the SAN and does have a WWN.

 

On HP-UX use following fcmsutil <adapter> get remote all

This shows you the port id of the device(s)

from there you can correlate the WWN info further.

 

The ESL-E is managed by a Command View TL station. This will have the WWN's for each of the drives as well.

 

hope this helps out.

-Eric

 

 

 

Arunabha Banerjee
Valued Contributor

Re: How to find WWN no for SAN tape device

Actually SAN team asking tape WWN no for zoning. I will ask SAN team to provide the details and will revert back to you. Thanks for your explanation.
AB
Arunabha Banerjee
Valued Contributor

Re: How to find WWN no for SAN tape device

 

Hi Eric,

 

I have tried to collect the WWN no for tape device in the below way. But no luck...

 

 

# lssf /dev/rmt/c15t5d1BESTb
stape card instance 15 SCSI target 5 SCSI LUN 1 berkeley best density available at address 0/4/1/1.198.0.255.6.5.1 /dev/rmt/c15t5d1BESTb

From the HDW path the san(port info)
0/4/1/1   ---> HBA
198.0.255 ---> san(n_port id) info
6.5.1     ---> scsi target lun

Now we need to convert these numers into hex 198.0.255

198 -> c6
0   -> 0
255 -> ff

And finally with fcmsutil we can find the nport id using our hex conversion c60ff:

# fcmsutil /dev/fcd3 get remote all | grep -E '(N_Port_id)'
                    Target N_Port_id is = 0xc60021
                    Target N_Port_id is = 0xc60022
                    Target N_Port_id is = 0xc60026
                    Target N_Port_id is = 0xc60027
                    Target N_Port_id is = 0xc60028
                    Target N_Port_id is = 0xc60031
                    Target N_Port_id is = 0xc60054
                    Target N_Port_id is = 0xc60055
                    Target N_Port_id is = 0xc60056
                    Target N_Port_id is = 0xc60057
                    Target N_Port_id is = 0xc60058
                    Target N_Port_id is = 0xc6005c
                    Target N_Port_id is = 0xc6005d
                    Target N_Port_id is = 0xc60065

But I am not getting anything similer to "c60ff"

 

 

AB
Eric_de_Lange
Frequent Advisor

Re: How to find WWN no for SAN tape device

it may not be logged into the SAN due to an error ?

I would check physically with the ESL-E and the drives

 

-Eric

 

Arunabha Banerjee
Valued Contributor

Re: How to find WWN no for SAN tape device

After checking dmesg I got below error. I have no idea what does it mean.

 

# dmesg | grep -e "SCSI TAPE"
SCSI TAPE: dev = 0xcd0491c0 I/O error during close
SCSI TAPE: dev = 0xcd0486c0 I/O error during close
SCSI TAPE: dev = 0xcd0880c0 I/O error during close
SCSI TAPE: dev = 0xcd0f5180 Failed open - st_san_safe enabled
SCSI TAPE: dev = 0xcd0f5180 Failed open - st_san_safe enabled
SCSI TAPE: dev = 0xcd062180 Failed open - st_san_safe enabled

SCSI TAPE: dev = 0xcd0f5180 Failed open - st_san_safe enabled pointing to /dev/rmt/c15t5d1BESTb

# ls -l /dev/rmt | grep f5180
crw-rw-rw-   2 bin        bin        205 0x0f5180 Sep  5  2009 102mb
crw-rw-rw-   2 bin        bin        205 0x0f5180 Sep  5  2009 c15t5d1BESTb

But device status still claimed in ioscan output.

HBA / FC link is working fine.

fcdutil /dev/fcd3

                           Vendor ID is = 0x001077
                           Device ID is = 0x002312
            PCI Sub-system Vendor ID is = 0x00103c
                   PCI Sub-system ID is = 0x0012ba
                               PCI Mode = PCI-X 133 MHz
                       ISP Code version = 3.3.166
                       ISP Chip version = 3
                               Topology = PTTOPT_FABRIC
                             Link Speed = 2Gb
                     Local N_Port_id is = 0xc6001a
                  Previous N_Port_id is = 0xc6001a
            N_Port Node World Wide Name = 0x500110a000100bfb
            N_Port Port World Wide Name = 0x500110a000100bfa
            Switch Port World Wide Name = 0x2001000dec1451c0
            Switch Node World Wide Name = 0x20c6000dec1451c1
                           Driver state = ONLINE
                       Hardware Path is = 0/4/1/1
                     Maximum Frame Size = 2048
         Driver-Firmware Dump Available = YES
         Driver-Firmware Dump Timestamp = Sat May 14 02:12:19 2011
                         Driver Version = @(#) libfcd.a HP Fibre Channel ISP 23xx & 24xx Driver B.11.23.07 /ux/core/isu/FCD/kern/src/common/wsio/fcd_init.c:Sep 14 2006,17:08:33

 

AB
Eric_de_Lange
Frequent Advisor

Re: How to find WWN no for SAN tape device

st_san_safe blocks access to rewind-on-close device files. This is done to avoid tapes from accidentally being overwritten in SAN environments. I am not sure how that ties into your current issue though, sorry.