Sun Microsystems, Inc.  Sun System Handbook - ISO 3.4 June 2011 Internal/Partner Edition
   Home | Current Systems | Former STK Products | EOL Systems | Components | General Info | Search | Feedback

Asset ID: 1-71-1013016.1
Update Date:2011-05-24
Keywords:

Solution Type  Technical Instruction Sure

Solution  1013016.1 :   How to decode Port World Wide Names (PWWNs) and Procedure to Determine and Map the CU & LDEV Information to a LUN Number  


Related Items
  • Sun Storage 9985 System
  •  
  • Sun Storage 9990 System
  •  
  • Sun Storage 9970 System
  •  
  • Sun Storage 9960 System
  •  
  • Sun Storage 9980 System
  •  
Related Categories
  • GCS>Sun Microsystems>Storage - Disk>Datacenter Disk
  •  

PreviouslyPublishedAs
217817
Procedure for decoding PWWNs and determining CU:LDEV vs LUN assignment

Applies to:

Sun Storage 9985 System - Version: Not Applicable and later   [Release: N/A and later ]
Sun Storage 9990 System - Version: Not Applicable and later    [Release: N/A and later]
Sun Storage 9970 System - Version: Not Applicable and later    [Release: N/A and later]
Sun Storage 9960 System - Version: Not Applicable and later    [Release: N/A and later]
Sun Storage 9980 System - Version: Not Applicable and later    [Release: N/A and later]
All Platforms
Reviewed for currency 15-May-2011

Goal

Decode the PWWN from Oracle StorageTek 99xx storage subsystems and/or determine LUN (host device) versus CU:LDEV (subsystem internal device) assignment.

Solution

Decode the Port World Wide Nodename

Steps to Follow
1. The PWWN reported back to the host has the following format:

50060E80TTSSSSCP

Table 1: HDS PWWN Field breakdown

Field

Description

5

IEEE registered WWN starts with 5 (0101)

00060E8

or

0060E80

IEEE Organizationally Unique ID (OUI) assigned to HDS

 

TT

Subsystem Type:

02=9900 Series (9910/9960)

03=9900V Series (9970/9980)

04=9990

05=9985V/9990V

14=9985

SSSS

Subsystem Serial Number (Hex)

CP

Channel Adaper (CHA) Cluster (CL)-Port.

The Subsystem Type determines how to decode.

See details below

Table 2: CP Value for 9900 Series

Field

Description

C

Cluster:

0 = Cluster-1 (CL-1)

1 = Cluster-2 (CL-2)

P

Port: 9910/9960 use 4-Port CHA only. Max 4 CHAs/Cluster

0 to F (hex) corresponds to ports A to R ( Letters I and O not used)

Example: 500060e802791812

Type=02 = 9900 series

Serial number = 0x7918 = 31000

CP= 12 = CL-2 port C

Physical location:

CL-2 CHA card is located in card slot V (CHA-V)

Table 3: 4-Port CHA card port locations (SE9900 & SE9900V)

CL-1

CL-2

CHA-1P

CHA-1Q

CHA-1R

CHA-1S

CHA-2V

CHA-2W

CHA-2X

CHA-2Y

A

E

J

N

A

E

J

N

B

F

K

P

B

F

K

P

C

G

L

Q

C

G

L

Q

D

H

M

R

D

H

M

R

Table 4: CP Value for 9900V Series (9980 and 9970)

Field

Description

C

Cluster:

0 = CL-1 Upper

*2 = CL-1 Lower

1 = CL-2 Upper

*3 = CL-2 Lower

*Note:

9970/9980 use 4-Port & 8-Port CHA.

2 & 3 Applies to 8-Port CHA only.

Maximum of 4 CHAs per cluster.

P

Port:

0 to F correspond to ports A to R ( Letters I and O not used)

Example: 50060e8003f52d04

Type=03 = 9900V

Serial Number = 0xf52d = 62765

CP=04 = CL-1 port E.

For 4-Port CHA cards, the port assignments are the same as the 9900 Series in Table 3.

Table 5: 8-Port CHA card port locations


CL-1 or CL-2

Slot location

CHA-1P or CHA-2V

CHA-1Q or CHA-2W

CHA-1R or CHA-2X

CHA-1S or CHA-2Y

Port 0

A Upper

E Upper

J Upper

N Upper

Port 1

a Lower

e Lower

j Lower

n Lower

Port 2

B Upper

F Upper

K Upper

P Upper

Port 3

b Lower

f Lower

k Lower

p Lower

Port 4

C Upper

G Upper

L Upper

Q Upper

Port 5

c Lower

g Lower

l Lower

q Lower

Port 6

D Upper

H Upper

M Upper

R Upper

Port 7

d Lower

h Lower

m Lower

r Lower

Table 6: CP Value for 9990 Series (9990 and 9985)

Field

Description

C

Cluster Number

Rule:

C = 0 ,2, 4, 6 the port is in Cluster 1 (CL-1) then

add 1 to translate to logical port

C = 1, 3, 5, 7 the port is in Cluster 2 (CL-2) then

add 1 to translate to logical port

P

Port : 16-Port CHA only. Max 8 CHA/CL

0 to F correspond to ports A to R ( Letters I and O not used)

Note:

  1. For Basic and Additional 1 to 3 boards:

    The logical ports are in increasing order -- A to R

  2. For Additional 4 to 7 boards:

    The logical ports are in decreasing order -- R to A

Example : 50060e8004275531

Type 04 = 9990

Serial number 0x2755 = 10069

CP = 31 = Cluster-2 logical port 4B

Looking at Table 7, the physical port location is in CL-2 basic CHA (CHA-2Q) port 6

Table 7: 9990 CHA port locations

CL-1 Basic

slot CHA-1E

WWN

CL-2 Basic

slot CHA-2Q

Physical

Port

Logical

Port

CP

Logical

Port

Physical

Port

1

1A

00

-

-

-

-

10

2A

1

2

3A

20

-

-

-

-

30

4A

2

3

5A

40

-

-

-

-

50

6A

3

4

7A

60

-

-

-

-

70

8A

4

5

1B

01

-

-

-

-

11

2B

5

6

3B

21

-

-

-

-

31

4B

6

7

5B

41

-

-

-

-

51

6B

7

8

7B

61

-

-

-

-

71

8B

8

9

1C

02

-

-

-

-

12

2C

9

10

3C

22

-

-

-

-

32

4C

10

11

5C

42

-

-

-

-

52

6C

11

12

7C

62

-

-

-

-

72

8C

12

13

1D

03

-

-

-

-

13

2D

13

14

3D

23

-

-

-

-

33

4D

14

15

5D

43

-

-

-

-

53

6D

15

16

7D

63

-

-

-

-

73

8D

16

2. How to determine the CU:LDEV information, from the output of  format -e  command or  iostat -E  command.

     2.1 Let's say you have more than one subsystem attached to your host or you just need to find CU and/or LDEV information of a disk, from the O/S point of view:

# format -e

select disk

format> scsi

scsi> inquiry

You will see an output such as..

Inquiry:

 00 00 02 02 77 00 00 02 48 49 54 41 43 48 49 20 ....w...HITACHI
 4f 50 45 4e 2d 39 20 20 20 20 20 20 2d 53 55 4e OPEN-9 -SUN
 32 31 30 39 30 34 35 30 39 44 35 44 30 30 41 45 210904509D5D00AE
00 00 00 00 01 02 01 01 00 00 00 00 00 00 00 00 ................
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
 02 05 05 00 04 00 ff 00 21 01 00 e0 8b 27 a2 b5 ........!....'..
 20 01 00 e0 8b 27 a2 b5 00 00 00 ....'.....

The number we want is 210904509D5D00AE .

2109 The first 4 digits represent the Microcode version of the sub-system.

0450 Next 4 digits are not explained at this time.

9D5D This is the subsystem serial/mfg number in hex .

00 This is the CU number in the subsystem.

AE This is the LDEV ID within the above CU group.

     2.2 Alternate method is to run/view the output from the  iostat -E  command, helpful when reviewing Explorer files:

sd60     Soft Errors: 0 Hard Errors: 0 Transport Errors: 0

Vendor: HITACHI Product: OPEN-L 
-SUN Revision
:
2109

Serial No:

04509D5D00AE

Size: 36.45GB <36449648640 bytes>

Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0

Illegal Request: 0 Predictive Failure Analysis: 0

The - SUN Revision: 2109 is the Microcode version .

The Serial No: 04509D5D00AE is decoded similar to item 2.1 above.

3. How to determine the CU:LDEV information from an MPxIO controlled device, using the output of  format  command.

# format

 14. c7t50060E800000000000009D5D0000

00AE

d0
 /scsi_vhci/ssd@g50060e800000000000009d5d000000ae
 15. c7t50060E800000000000009D5D0000

00AF

d0
 /scsi_vhci/ssd@g50060e800000000000009d5d000000af

The Four characters immediately preceding the "d" map out the CU and LDEV ID of the LUN.  

In this case disk #14 is CU: 00 LDEV: AE , and disk #15 is CU:00 LDEV: AF .

4. Using the output of    luxadm display   to:

Map  CU:LDEVs  to a SCSI LUN number

Map a MPxIO  controller number back to the  physical controller  numbers.

The output below is derived from the explorer:

$ more luxadm_display_500060e8027d3d04.out

DEVICE PROPERTIES for disk: 500060e8027d3d04  <--The HDS port WWN being displayed

  Vendor:               HITACHI

  Product ID:           OPEN-E      -SUN

  Revision:             0119

  Serial Num:           04007D3D000A

  Unformatted capacity: 13893.047 MBytes

  Write Cache:          Enabled

  Read Cache:           Enabled

    Minimum prefetch:   0x0

    Maximum prefetch:   0x0

  Device Type:          Disk device

  Path(s):

  /dev/rdsk/ c2 t500060E80000000000007D3D0000 000A d0s2

  /devices/scsi_vhci/ssd@g500060e80000000000007d3d0000000a:c,raw

    Controller            /devices/ssm@0,0/pci@1a,600000/SUNW,qlc@1/fp@0,0

    Device Address              500060e8 027d3d04,80

    Note: Using the decoding instructions above:

                    02 = 9960               d3d4 = Serial Number in Hex =  54228

                    04 = Cluster 1 port E

                   80 = LUN number in Hex =  LUN 128

    Host controller port WWN    210000e08b927965

    Class                       primary

    State                       ONLINE

   

    Controller            /devices/ssm@0,0/pci@1b,600000/SUNW,qlc@1/fp@0,0

    Device Address              500060e8027d3d 14 ,80

      Note: Same LUN (80) mapped to Cluster 2 port E (Refer to Table 3)

    Host controller port WWN    210000e08b92e265

    Class                       primary

    State                       ONLINE

Note: Conclusions from the above output:

c2t500060E80000000000007D3D0000000Ad0s2 maps to these physical controllers:

/devices/ssm@0,0/pci@1a,600000/SUNW,qlc@1/fp@0,0

/devices/ssm@0,0/pci@1b,600000/SUNW,qlc@1/fp@0,0

From the explorer output, we can also map these paths to their physical controller number:

    $ from ls-l_dev_cfg.out

    c7 -> ../../devices/ssm@0,0/pci@1a,600000/SUNW,qlc@1/fp@0,0:fc

    c8 -> ../../devices/ssm@0,0/pci@1b,600000/SUNW,qlc@1/fp@0,0:fc

CU:LDEV 00:0A = LUN 128


 

 

@ Internal Comments
Note: Vendor PWWN can be decoded online at: http://decoder.aus

http://decoder.aus

HDS, 9900, 9910, 9960, 9900V, 9970, 9980, 9990, 9985, wwn decode, wwpn decode, cu, ldev, cu:ldev, world, wide, name, wwnn, wwpn, wwn
Previously Published As
87799

Change History
Date: 2007-11-02
User Name: 31620
Action: Approved
Comment: Verified Metadata - ok
Verified Keywords - ok
Verified still correct for audience - currently set to contract
Audience left at contract as per FvF at
http://kmo.central/howto/content/voyager-contributor-standards.html
Checked review date - added 1yr to make it 2008-11-15
Checked for TM - ok as presented
Publishing under the current publication rules of 18 Apr 2005:
Version: 13
Date: 2007-10-30
User Name: 100761
Action: Approved
Comment: Doc verified and is ready to be published. Thanks Andy for fixing the parsing issue.
- Srinivas.

Attachments
This solution has no attachment
  Copyright © 2011 Sun Microsystems, Inc.  All rights reserved.
 Feedback