Re: How to find WWN no for SAN tape device (9692 Views)
Reply
Valued Contributor
Arunabha Banerjee
Posts: 88
Registered: ‎04-22-2009
Message 1 of 18 (9,721 Views)
Accepted Solution

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...

Please use plain text.
Acclaimed Contributor
Torsten.
Posts: 23,211
Registered: ‎10-02-2001
Message 2 of 18 (9,718 Views)

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! star in the left column!   
Please use plain text.
Valued Contributor
Arunabha Banerjee
Posts: 88
Registered: ‎04-22-2009
Message 3 of 18 (9,715 Views)

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.
Please use plain text.
Honored Contributor
Johan Guldmyr
Posts: 3,834
Registered: ‎06-14-2009
Message 4 of 18 (9,710 Views)

Re: How to find WWN no for SAN tape device

[ Edited ]

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?



Click the Kudos Star if this was a good post.
Please use plain text.
Frequent Advisor
Eric_de_Lange
Posts: 63
Registered: ‎08-09-2011
Message 5 of 18 (9,706 Views)

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

 

 

 

Please use plain text.
Valued Contributor
Arunabha Banerjee
Posts: 88
Registered: ‎04-22-2009
Message 6 of 18 (9,705 Views)

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.
Please use plain text.
Valued Contributor
Arunabha Banerjee
Posts: 88
Registered: ‎04-22-2009
Message 7 of 18 (9,702 Views)

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"

 

 

Please use plain text.
Frequent Advisor
Eric_de_Lange
Posts: 63
Registered: ‎08-09-2011
Message 8 of 18 (9,699 Views)

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

 

Please use plain text.
Valued Contributor
Arunabha Banerjee
Posts: 88
Registered: ‎04-22-2009
Message 9 of 18 (9,697 Views)

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

 

Please use plain text.
Frequent Advisor
Eric_de_Lange
Posts: 63
Registered: ‎08-09-2011
Message 10 of 18 (9,695 Views)

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.

Please use plain text.
Acclaimed Contributor
Torsten.
Posts: 23,211
Registered: ‎10-02-2001
Message 11 of 18 (9,692 Views)

Re: How to find WWN no for SAN tape device

What do you want to do, if you know the WWN? You can use the serial number of the drive, then compare it with command view TL output.

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! star in the left column!   
Please use plain text.
Valued Contributor
Arunabha Banerjee
Posts: 88
Registered: ‎04-22-2009
Message 12 of 18 (9,692 Views)

Re: How to find WWN no for SAN tape device

I am also not sure. So what will be the main issue? Need to check physical connection between ESL-E and drives? What you suggest?
Please use plain text.
Valued Contributor
Arunabha Banerjee
Posts: 88
Registered: ‎04-22-2009
Message 13 of 18 (9,691 Views)

Re: How to find WWN no for SAN tape device

Hi Torsten,

 

I want to know WWN no. I have serial no which I got from hp_ltt tool.

 

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

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

Cartridge Information (for cartridge currently in drive):
There is no media in this drive.

 

Please use plain text.
Acclaimed Contributor
Torsten.
Posts: 23,211
Registered: ‎10-02-2001
Message 14 of 18 (9,688 Views)

Re: How to find WWN no for SAN tape device

[ Edited ]

The most easy way would be to use command view TL.

 

With 11.23 you can only use "fcmsutil", starting with 11.31 you can do

 

# scsimgr get_info -D /dev/rtape/tape2_BEST


         STATUS INFORMATION FOR LUN : /dev/rtape/tape2_BEST
 
Generic Status Information
 
SCSI services internal state                  = UNOPEN
Device type                                   = Sequential_Access
EVPD page 0x83 description code               = 1
EVPD page 0x83 description association        = 0
EVPD page 0x83 description type               = 3
World Wide Identifier (WWID)                  = 0x50060b000059f20a
Serial number                                 = HU10617K90
Vendor id                                     = HP       
Product id                                    = Ultrium 3-SCSI

...


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! star in the left column!   
Please use plain text.
Valued Contributor
Arunabha Banerjee
Posts: 88
Registered: ‎04-22-2009
Message 15 of 18 (9,683 Views)

Re: How to find WWN no for SAN tape device

Hi Torsten,

 

Thanks. I will check and confirm ...

Please use plain text.
Honored Contributor
Johan Guldmyr
Posts: 3,834
Registered: ‎06-14-2009
Message 16 of 18 (9,673 Views)

Re: How to find WWN no for SAN tape device

"Actually SAN team asking tape WWN no for zoning."

 

Is the tape drive already zoned with your server?

 

If so, the SAN team should be able to find the WWN either in the SAN-switch or in the Library's Command View TL.

If not, then you cannot find the WWN of the tape drive on the server.



Click the Kudos Star if this was a good post.
Please use plain text.
Acclaimed Contributor
Torsten.
Posts: 23,211
Registered: ‎10-02-2001
Message 17 of 18 (9,666 Views)

Re: How to find WWN no for SAN tape device

I edited my last reply ...

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! star in the left column!   
Please use plain text.
Valued Contributor
Arunabha Banerjee
Posts: 88
Registered: ‎04-22-2009
Message 18 of 18 (9,654 Views)

Re: How to find WWN no for SAN tape device

scsimgr is working perfectly with HP-UX 11.31. But in my case OS version is HP-UX 11.23. I am unable to find exact command syntax to use with fcmsutil to get WWN details for tape device.

Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation