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-1003719.1
Update Date:2010-10-28
Keywords:

Solution Type  Technical Instruction Sure

Solution  1003719.1 :   Mapping the format disks output to their respective Sun StorEdge[TM] 6320 LUN  


Related Items
  • Sun Storage 6320 System
  •  
  • Solaris SPARC Operating System
  •  
Related Categories
  • GCS>Sun Microsystems>Storage - Disk>Modular Disk - 6xxx Arrays
  •  
  • GCS>Sun Microsystems>Operating Systems>Solaris Operating System
  •  

PreviouslyPublishedAs
205242


Description
This document describes the procedure to map a format disk output to its Sun StorEdge[TM] 6230 lun. Although this is usually straight forward, it is very different while using mpxio.


Steps to Follow
There are two different scenarios:
1. While mpxio IS NOT enabled.

2. While mpxio IS enabled.

1. While mpxio IS NOT enabled.

This is straight forward, just look at the format output. The LUN number will be the 'd' number in the c#t#d#s#.

2. While mpxio IS enabled.

Please follow these steps:

a. If you have access to the system:

1. Run the format command and gather the T4 available drives:

 $ format
...
2. c4t60003BA4D31610003FD788F4000001D7d0 <SUN-T4-0300 cyl 46826 alt 2 hd 56 sec 16>
3. c4t60003BA13F2700003FD8A76F000A7884d0 <SUN-T4-0300 cyl 46826 alt 2 hd 56 sec 16>
4. c4t60003BA13F2700003FD8AF22000025C2d0 <SUN-T4-0300 cyl 46826 alt 2 hd 56 sec 16>
5. c4t60003BA13F2700003FD8CA7E0007630Bd0 <SUN-T4-0300 cyl 46826 alt 2 hd 56 sec 16>
6. c4t60003BA13F2700003FD8D4EB00017A9Bd0 <SUN-T4-0300 cyl 49160 alt 2 hd 112 sec 16>
7. c4t60003BA13F2700003FD630C8000AF254d0 <SUN-T4-0300 cyl 46826 alt 2 hd 14 sec 16>
8. c4t60003BA13F2700003FDD214C000894CCd0 <SUN-T4-0300 cyl 52668 alt 2 hd 112 sec 16>
9. c4t60003BA13F2700003FDD236A000A8B98d0 <SUN-T4-0300 cyl 46826 alt 2 hd 56 sec 16>
...

2. Now run luxadm display /dev/rdsk/c#t#d#s# | grep "Device Address" for each drive you want to map to it's LUN.
The LUN number is the one that appears after the comma. This number is in HEX!!! So it's recommended to converted it decimal while mapping.

 # luxadm display /dev/rdsk/c4t60003BA13F2700003FD8A76F000A7884d0s2 | grep "Device Address"
Device Address		20030003ba13f270,19
Device Address		20030003ba13f7ef,19

In this case, lun 0x19 is LUN 25 from the array, so we have the following tables:

 T#			HEX     Dec
=====================================
A7884		->	19  ->  25
    Disk                                    LUN #
====================================================
c4t60003BA13F2700003FD8A76F000A7884d0  ->  lun 19

You can do this with all the drives you want to map.

3. If you want to confirm that this LUN is actually mapped to this host, you can run the `lun perm list`.

So, here's the complete output of: `luxadm display /dev/rdsk/c#t#d#s#`:

   /dev/rdsk/c4t60003BA13F2700003FD8A76F000A7884d0s2
/devices/scsi_vhci/ssd@g60003ba13f2700003fd8a76f000a7884:c,raw
Controller      	/devices/pci@1f,4000/SUNW,qlc@2/fp@0,0
Device Address		20030003ba13f270,19                <=  Array's WWN, lun # in HEX
Host controller port WWN	210000e08b0f2ded           <=  Primary host port
Class			primary
State			ONLINE
Controller      	/devices/pci@1f,4000/SUNW,qlc@4/fp@0,0
Device Address		20030003ba13f7ef,19                <=  Array's WWN, lun # in HEX
Host controller port WWN	210000e08b0fb6f4           <=  Secondary host port
Class			secondary
State			STANDBY

So, we can grep the host port from the lun perm list command on the array (I chose the secondary port for this example):

 > lun perm list |grep fb6f4  (On Array 00)
18	18	210000e08b0fb6f4	a0venice        rw              none		rw
25	25	210000e08b0fb6f4	a0venice        rw              none		rw
27	27	210000e08b0fb6f4	a0venice        rw              none		rw
29	29	210000e08b0fb6f4	a0venice        rw              none		rw
30	30	210000e08b0fb6f4	a0venice        rw              none		rw
31	31	210000e08b0fb6f4	a0venice        rw              none		rw
32	32	210000e08b0fb6f4	a0venice        rw              none		rw

LUN 25 is actually mapped, so, we're fine.

b. While gathering info from explorer:

As explorer doesn't have an specific luxadm display output for each disk, the following is recommended.

1. Run format and gather the 6320 volumes that appear in the output.

 $ grep "SUN-T4" format.out
2. c4t60003BA4D31610003FD788F4000001D7d0 <SUN-T4-0300 cyl 46826 alt 2 hd 56 sec 16>
3. c4t60003BA13F2700003FD8A76F000A7884d0 <SUN-T4-0300 cyl 46826 alt 2 hd 56 sec 16>
4. c4t60003BA13F2700003FD8AF22000025C2d0 <SUN-T4-0300 cyl 46826 alt 2 hd 56 sec 16>
5. c4t60003BA13F2700003FD8CA7E0007630Bd0 <SUN-T4-0300 cyl 46826 alt 2 hd 56 sec 16>
6. c4t60003BA13F2700003FD8D4EB00017A9Bd0 <SUN-T4-0300 cyl 49160 alt 2 hd 112 sec 16>
7. c4t60003BA13F2700003FD630C8000AF254d0 <SUN-T4-0300 cyl 46826 alt 2 hd 14 sec 16>
8. c4t60003BA13F2700003FDD214C000894CCd0 <SUN-T4-0300 cyl 52668 alt 2 hd 112 sec 16>
9. c4t60003BA13F2700003FDD236A000A8B98d0 <SUN-T4-0300 cyl 46826 alt 2 hd 56 sec 16>

2. Run luxadm probe ; disks will show up. Please write down the Node WWN for the 6320 disk devices.

 $ more luxadm_probe.out
No Network Array enclosures found in /dev/es
 Found Fibre Channel device(s):
Node WWN:10000003ba4d3161  Device Type:Disk device
Logical Path:/dev/rdsk/c4t60003BA4D31610003FD788F4000001D7d0s2
Node WWN:10000003ba13f270  Device Type:Disk device
Logical Path:/dev/rdsk/c4t60003BA13F2700003FD8A76F000A7884d0s2
Node WWN:10000003ba13f270  Device Type:Disk device
Logical Path:/dev/rdsk/c4t60003BA13F2700003FD8AF22000025C2d0s2
Node WWN:10000003ba13f270  Device Type:Disk device
Logical Path:/dev/rdsk/c4t60003BA13F2700003FD8CA7E0007630Bd0s2
Node WWN:10000003ba13f270  Device Type:Disk device
Logical Path:/dev/rdsk/c4t60003BA13F2700003FD8D4EB00017A9Bd0s2
Node WWN:10000003ba13f270  Device Type:Disk device
Logical Path:/dev/rdsk/c4t60003BA13F2700003FD630C8000AF254d0s2
Node WWN:10000003ba13f270  Device Type:Disk device
Logical Path:/dev/rdsk/c4t60003BA13F2700003FDD214C000894CCd0s2
Node WWN:10000003ba13f7ef  Device Type:Disk device
Logical Path:/dev/rdsk/c4t60003BA13F2700003FDD236A000A8B98d0s2

We have the following Node WWNs:

 10000003ba4d3161
10000003ba13f270
10000003ba13f7ef

These three numbers are the WWNs from the array.

2. Run luxadm display <Node WWN> for each Node WWN you found. From this output, we'll gather the
the lun # and the address of the host ports.

 $ more luxadm_display_10000003ba13f270.out
DEVICE PROPERTIES for disk: 10000003ba13f270
Vendor:		SUN
Product ID:		T4
Revision:		0301
Serial Num:		Unsupported
Unformatted capacity:	21482.439 MBytes
Write Cache:		Enabled
Read Cache:		Enabled
Minimum prefetch:	0x0
Maximum prefetch:	0x0
Device Type:		Disk device
Path(s):
   /dev/rdsk/c4t60003BA13F2700003FD8A76F000A7884d0s2
/devices/scsi_vhci/ssd@g60003ba13f2700003fd8a76f000a7884:c,raw   <=  5 last 't' number digits A7884
Controller      	/devices/pci@1f,4000/SUNW,qlc@2/fp@0,0
Device Address		20030003ba13f270,19                <=  Array's WWN, lun # in HEX
Host controller port WWN	210000e08b0f2ded           <=  Primary host port
Class			primary
State			ONLINE
Controller      	/devices/pci@1f,4000/SUNW,qlc@4/fp@0,0
Device Address		20030003ba13f7ef,19                <=  Array's WWN, lun # in HEX
Host controller port WWN	210000e08b0fb6f4           <=  Secondary host port
Class			secondary
State			STANDBY
...

So, we know disk A7884 is lun x19 = 25, and we know that the host is seeing the LUN from it's primary and secondary paths.

The following output is only meant to show the luns I have; each LUN will appear "n" times depending on how they're mapped; in this case, lun 9 is only mapped to one port instead of two (as the others), so it will appear only once. (Command in step 2 has to be run to make the mapping):

 $ grep "Device Address" luxadm_display_10000003ba13f270.out
Device Address		20030003ba13f270,19
Device Address		20030003ba13f7ef,19
Device Address		20030003ba13f270,1b
Device Address		20030003ba13f7ef,1b
Device Address		20030003ba13f270,1e
Device Address		20030003ba13f7ef,1e
Device Address		20030003ba13f270,20
Device Address		20030003ba13f7ef,20
Device Address		20030003ba13f270,12
Device Address		20030003ba13f7ef,12
Device Address		20030003ba13f270,1d
Device Address		20030003ba13f7ef,1d
$ grep "Device Address" luxadm_display_10000003ba13f7ef.out
Device Address		20030003ba13f270,1f
Device Address		20030003ba13f7ef,1f
$ grep "Device Address" luxadm_display_10000003ba4d3161.out
Device Address		20030003ba4d3161,9

So, the LUNs we have are (in Hex):

9, 12, 19, 1b, 1d, 1e, 1f, 20

Running the command from Step 2 we can fill this table:

 T#			HEX     Dec
=====================================
A7884		->	19  ->  25
025C2		->	1b  ->  27
7630B		->	1e  ->  30
17A9B		->	20  ->  32
AF254		->	12  ->  18
894CC		->	1d  ->  29
A8B98		->	1f  ->  31
001D7		->	9   ->  9

3. If you have an array extractor, we can grep the host port from the lun perm list, just to double check. In this case we have two arrays, to identify them, just check de WWN from the "Device Address" line in the luxadm display output.

 $ grep fb6f4 lun_perm_list   (On Array 00)
18	18	210000e08b0fb6f4	a0venice        rw              none		rw
25	25	210000e08b0fb6f4	a0venice        rw              none		rw
27	27	210000e08b0fb6f4	a0venice        rw              none		rw
29	29	210000e08b0fb6f4	a0venice        rw              none		rw
30	30	210000e08b0fb6f4	a0venice        rw              none		rw
31	31	210000e08b0fb6f4	a0venice        rw              none		rw
32	32	210000e08b0fb6f4	a0venice        rw              none		rw
 $ grep fb6f4 lun_perm_list   (On Array 01)
9	9	210000e08b0fb6f4	a1venice        rw              none		rw

SO, we know we did it right, all LUNs we found with luxadm are shown to the system by the 6320.

4. Now you can have this small table to match each 6230 lun to its format entry.

    Disk                                     Array LUN #
==========================================================
2. c4t60003BA4D31610003FD788F4000001D7d0  ->  lun  9
3. c4t60003BA13F2700003FD8A76F000A7884d0  ->  lun 25
4. c4t60003BA13F2700003FD8AF22000025C2d0  ->  lun 27
5. c4t60003BA13F2700003FD8CA7E0007630Bd0  ->  lun 30
6. c4t60003BA13F2700003FD8D4EB00017A9Bd0  ->  lun 32
7. c4t60003BA13F2700003FD630C8000AF254d0  ->  lun 18
8. c4t60003BA13F2700003FDD214C000894CCd0  ->  lun 29
9. c4t60003BA13F2700003FDD236A000A8B98d0  ->  lun 31


Product
Solaris 8 Operating System
Solaris 9 Operating System
Sun StorageTek 6320 System

Internal Comments
For internal Sun use only.

Big thanks to Robert Belloni.


6320, maserati, map, mpxio, format
Previously Published As
79131

Change History
Date: 2005-09-16
User Name: 25440
Action: Update Canceled
Comment: *** Restored Published Content *** Metadata update only.
Version: 0
Date: 2005-09-16
User Name: 25440
Action: Update Started
Comment: Adding techgroup.
Version: 0

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